[Bug 170847] [rc] static IPv6 addresses+vlans don't work ala rc(5)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Oct 2024 00:22:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=170847 Tatsuki Makino <tatsuki_makino@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tatsuki_makino@hotmail.com --- Comment #4 from Tatsuki Makino <tatsuki_makino@hotmail.com> --- This will be a configuration for the 14.1-STABLE generation, but... Since /etc/rc.conf is a configuration sh script, most sh syntax can be used. However, it cannot use most external commands. It's because it's read before the file system is mounted. VLANs with 802.1Q seem to have a negative impact on link local addresses. This is because, basically, there is only one MAC address of the parent. The following has already happened > inet6 fe80::207:43ff:fe07:3f71%cxgb1 prefixlen 64 scopeid 0x2 > inet6 fe80::207:43ff:fe07:3f71%cxgb1.223 prefixlen 64 scopeid 0xe It seems that it is better to avoid this, and the configures to avoid it are as follows. vlans_cxgb1="vlan0" # for this explain clarity, it will be vlan0 if ! : ; then ifconfig_vlan0="inet6 fe80::589c:fcff:fe00:1 prefixlen 64 -ifdisabled -auto_linklocal" # however, it does not indicate that this interface is IPv6 interface. ifconfig_vlan0_alias0="inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" elif : ; then ifconfig_vlan0="down" ifconfig_vlan0_ipv6="inet6 fe80::589c:fcff:fe00:1 prefixlen 64 -auto_linklocal" ifconfig_vlan0_alias0="inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" else ifconfig_vlan0="down" ifconfig_vlan0_ipv6="inet6 down -auto_linklocal" ifconfig_vlan0_alias0="inet6 fe80::589c:fcff:fe00:1 prefixlen 64" ifconfig_vlan0_alias1="inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" fi I've written multiple examples using conditional branching. The common denominator is that it does not automatically add a link-local address, and that the interface is kept down until a link-local address is assigned. And the link-local address should be the first address to be assigned. In my environment, this seems to stabilize neighbor discovery. -- You are receiving this mail because: You are the assignee for the bug.