Re: if_bridge(): IPv6 EUI-64 seemingly not working

From: FreeBSD User <freebsd_at_walstatt-de.de>
Date: Thu, 12 Jun 2025 05:33:01 UTC
On Thu, 12 Jun 2025 04:58:30 +0100
Lexi Winter <ivy@freebsd.org> wrote:

> A FreeBSD User:
> > When it comes to obtain an IPv6, CURRENT, in contrast to 14-STABLE,
> > fails to set the host part according EUI-64. The resulting 64 host
> > bit, which are considered to contain the 48 bit of the MAC, do
> > contain anything but not anything similar to ANY of the attached
> > NIC/NICs.   
> 
> please show the output of 'ifconfig' for the bridge interface and all
> interfaces which are members of the bridge.
> 
> > A bug or a "feature (due to simple dumb misconfiguration)?  
> 
> this is not intentional, it should still work as it did before.

Seems, linklocal address is the benfeactor ...

> 
[... sysctl net.link.bridge for the record if appropriate ...]
net.link.bridge.ipfw: 0
net.link.bridge.member_ifaddrs: 0
net.link.bridge.log_mac_flap: 1
net.link.bridge.allow_llz_overlap: 0
net.link.bridge.inherit_mac: 1
net.link.bridge.log_stp: 1
net.link.bridge.pfil_local_phys: 0
net.link.bridge.pfil_member: 0
net.link.bridge.ipfw_arp: 0
net.link.bridge.pfil_bridge: 0
net.link.bridge.pfil_onlyip: 0
[...]

 $ ifconfig bridge0
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>
 metric 0 mtu 1500 description: vlan101-uplink
        options=0
        ether 4c:52:62:2b:05:eb
        inet 192.168.201.10 netmask 0xffffff00 broadcast 192.168.101.255
        inet6 fe80::5a9c:fcff:fe00:393a%bridge0 prefixlen 64 scopeid 0x6
        inet6 fd60:b403:201::10 prefixlen 64
        inet6 fd60:b403:201:0:5a9c:fcff:fe00:393a prefixlen 64 autoconf
 pltime 14400 vltime 86400 inet6 fd60:b403:101:0:1cef:d312:32c5:fdae
 prefixlen 64 autoconf temporary pltime 14400 vltime 86400 id
 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20
 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id
 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: igb0
 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 1
 priority 128 path cost 20000 groups: bridge
        maclabel mls/low(low-low)
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>


 $ ifconfig igb0
igb0: \
flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> \
metric 0 mtu 1500
options=4e503bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
ether 4c:52:62:2b:05:eb 
media: Ethernet autoselect (1000baseT <full-duplex>) 
status: active
maclabel mls/low(low-low) nd6
options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Also, some netgraph modules are compiled statically into the kernel -
for the record, if that matters, but disabled so far. 
###############################################################################
security.mac.mls.enabled=0
security.mac.portacl.enabled=0
security.mac.bsdextended.enabled=0
security.mac.ipacl.ipv6=0
security.mac.ipacl.ipv4=0
security.mac.do.enabled=0
###############################################################################