Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2025 23:30:24 +0100
From:      Lexi Winter <ivy@FreeBSD.org>
To:        A FreeBSD User <freebsd@walstatt-de.de>
Cc:        "Patrick M. Hausen" <pmh@hausen.com>, Kristof Provost <kp@FreeBSD.org>, Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>, Alexander Leidinger <Alexander@Leidinger.net>, rgrimes@freebsd.org, FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: CURRENT: can not add device to bridge: ifconfig: BRDGADD igb0: Invalid argument
Message-ID:  <aC0CgBBWrodf6pa8@ragweed.eden.le-fay.org>
In-Reply-To: <20250520112428.3de8301e@thor.sb211.local>
References:  <20250518180658.2e58d55a@thor.sb211.local> <192c8e37-4a85-4916-9986-0a556333a527@plan-b.pwste.edu.pl> <20250518182404.3a760da9@thor.sb211.local> <1ca30cdfb783848eafce24b77f10c0a5@Leidinger.net> <310d460a-d372-47c8-8275-2908bb8417ad@plan-b.pwste.edu.pl> <7A4E0DDE-77F7-4CDC-8C52-BE938298E105@FreeBSD.org> <aCrxeWv2FmAdEMkB@ragweed.eden.le-fay.org> <C3DAAC11-7029-4964-BA19-AE7AB2D941DA@hausen.com> <20250520112428.3de8301e@thor.sb211.local>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
A FreeBSD User:
> 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.

unfortunately, i cannot reproduce this.

test1# ifconfig bridge0 create
test1# ifconfig bridge0 inet6 -ifdisabled auto_linklocal accept_rtadv addm epair2b up
test1# rtsol bridge0
test1# ifconfig bridge0
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
	options=0
	ether ea:1f:5d:1b:70:9d
	inet6 fe80::e81f:5dff:fe1b:709d%bridge0/64 scopeid 0xc
	inet6 2001:db8:100:0:e81f:5dff:fe1b:709d/64 autoconf pltime 604800 vltime 2592000
	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: epair2b flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
	        ifmaxaddr 0 port 11 priority 128 path cost 2000
	groups: bridge
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
test1#

note that there is an existing, unrelated bug[0] where the bridge will
not correctly set auto_linklocal and accept_rtadv by default, so you
need to do this explicitly.

if that isn't the issue, can you please show the output of 
	% ifconfig bridge0
prior to running rtsol?

also, i understand from your other post that you need a specific
MAC address on the bridge to get the right SLAAC IP address.
in that case, you will need to either change the lladdr of the
bridge, or set net.link.bridge.inherit_mac=1 to make the bridge
inherit the address of the first member.

[0] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254445

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaC0CfwAKCRD1nT63mIK/
YA2aAQDyo+qBmzR+014D1RoyftQwb3ZorvFh6hPDLGufTXx7JwEAqz51Onx77uzf
jWNAvgCeNtGVvUMgkOGmxrTh8ZsgPQc=
=BU8i
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aC0CgBBWrodf6pa8>