[Bug 258949] IPv4 alias on Chelsio T6225-CR, ping: sendto: No route to host

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Oct 2021 16:15:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258949

            Bug ID: 258949
           Summary: IPv4 alias on Chelsio T6225-CR, ping: sendto: No route
                    to host
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jasonmader@gmail.com

FreeBSD 13.0-RELEASE-p4

I haven't been able to recreate this on anything other than a system with the
Chelsio T6225-CR, but an IPv4 alias only (IPv6 aliases work fine) with a /32
netmask such as, 129.174.130.141/32, doesn't work,

cc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000      
options=6e80723<RXCSUM,TXCSUM,JUMBO_MTU,TSO4,TSO6,LRO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWRXTSTMP,NOMAP>
        inet 129.174.130.140 netmask 0xffffffe0 broadcast 129.174.130.159
        inet 129.174.130.141 netmask 0xffffffff broadcast 129.174.130.141

PING 129.174.130.141 (129.174.130.141): 56 data bytes
ping: sendto: No route to host

But change the netmask to /31 and the ping will work.

ifconfig_cc0="inet 129.174.130.140/27 mtu 9000"
ifconfig_cc0_alias0="inet 129.174.130.141/32"

Internet:
Destination        Gateway            Flags     Netif Expire
129.174.130.128/27 link#1             U           cc0
129.174.130.140    link#1             UHS         lo0
129.174.130.141    link#1             UH          cc0

On FreeBSD 11.2 with an Intel interface it would have looked like,

129.174.130.128/27 link#1             U           ix0
129.174.130.140    link#1             UHS         lo0
129.174.130.141    link#1             UHS         lo0
129.174.130.141/32 link#1             U           ix0

t6nex0: <Chelsio T6225-CR> mem
0xdb200000-0xdb27ffff,0xda000000-0xdaffffff,0xdb684000-0xdb685fff irq 120 at
device 0.4 on pci12
cc0: <port 0> on t6nex0
cc1: <port 1> on t6nex0
t6nex0: PCIe gen3 x8, 2 ports, 22 MSI-X interrupts, 70 eq, 21 iq

-- 
You are receiving this mail because:
You are the assignee for the bug.