Re: CURRENT: can not add device to bridge: ifconfig: BRDGADD igb0: Invalid argument

From: A FreeBSD User <freebsd_at_walstatt-de.de>
Date: Tue, 20 May 2025 11:08:23 UTC
Am Tage des Herren Tue, 20 May 2025 11:32:57 +0200
"Patrick M. Hausen" <pmh@hausen.com> schrieb:

> Sorry,  missed a detail:
> 
> > Am 20.05.2025 um 11:29 schrieb Patrick M. Hausen <pmh@hausen.com>:
> > 
> > Hi all,
> >   
> >> Am 20.05.2025 um 11:24 schrieb A FreeBSD User <freebsd@walstatt-de.de>:
> >> I need a IPv6 prefix on bridge0. With the "wrong/faulty" concept I simply used 
> >> 
> >> rtsold_flags="-iu igb0"
> >> 
> >> within /etc/rc.conf. Changing this line to
> >> rtsold_flags="-iu bridge0" while bridge0 is up and running doesn't work, neither does
> >> "rtsol bridge0" show any results.  
> > 
> > Do you also have
> > 
> > ifconfig_bridge0_ipv6="inet6 accept_rtadv auto_linklocal"
> > 
> > ?  
> 
> To get a stable SLAAC address it also helps to have in
> 
> 	/boot/loader.conf:	if_bridge_load="YES"
> 	/etc/sysctl.conf:	net.link.bridge.inherit_mac=1
> 
> This way the bridge IF clones the MAC address of the first member IF and
> SLAAC works as intended.
> 
> HTH,
> Patrick

In my case(es), if_bridge is statically compiled into the CURRENT kernel. Since I have to
(mis)use dyndns v6 services to identify my hosts via MAC portion, first bridge-attached device
is the NIC I usually was using for attaching to the network (em0 or igb0, depending on the
CURRENT host, I have several ones).

Regards,
oh

-- 

A FreeBSD user