From nobody Mon Oct 18 18:08:30 2021 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CD6431805B36 for ; Mon, 18 Oct 2021 18:08:33 +0000 (UTC) (envelope-from nrhuff+fbq@nrhuff.com) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HY4cc6rStz3hDZ for ; Mon, 18 Oct 2021 18:08:32 +0000 (UTC) (envelope-from nrhuff+fbq@nrhuff.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CC5303201C78 for ; Mon, 18 Oct 2021 14:08:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 18 Oct 2021 14:08:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nrhuff.com; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=LzL91QhPxzxDceu2nXryJgykU3ZraIBQZUaxHgEyXa8=; b=J8YTb4AV WxBJ9IvPdQPujjG84IT5nlft6o3ijXyBbN7zEAn8t7KpSSYBKcQefFiw8AilU49+ oz7fMpi9Qty0WYbm6FayxKmfxQcqzdEYScBQucNLJUDpyH+lw5KUSp1F2PzmtEuG lPyl5md3xqc6BtSGh/jptFGqQICuaEdxM3povADZdeb1/w+fKqwmnktZHx974JRS JYjDl1ImAdHgLqx6SI+eyP1A1Tpd7Hv8fIr4TASK3PF/hN3ivzth6RvoOtaVq+Gf dX3u64yCHUvWL3HPXwTXkGFQb/gF03dITcvBr6QlQPAJwxnsa8DG3o0AkErvUXHk dB/Upptt5uSJtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=LzL91QhPxzxDceu2nXryJgykU3Zra IBQZUaxHgEyXa8=; b=eSlKPt2BBaomPwmKT/IFsjShjkQSN+prnbAERVIYCKYYX DpkaxFdBFqrZz7uoYpKt2gR3K39LQpomn9r5bgbiXZLThtsF6ed4p4uDVcgRxSlL r7xP5ModnQx6MfkMLziyB7HHzrOISEDq25i62vor5C4Dy0feKTpgiGmHqEj2QVmr yDIwmZvbGxafzYMzCRPVfQG/riDiWBDCy4/CQvpfaM2eEfWVrfzsZRYGL3FWA9y/ bMMJfpq2aY+mWbYxuTdShnyj7JpebWv1oG4lJ86dI8QGVNABAzgwTudeu7kysKce CFvajmVrbKUXUg+2N7hCBp2+fGZ9fVB8D92i4A+Kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvtddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepnhhrhhhufhhfodhfsghqsehnrhhhuhhffhdrtghomhenucggtffr rghtthgvrhhnpeeiteejieefgfeuhedvfedtffeuteehjeelfeekheeiuedvgeevgfduge etjeefieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehnrhhhuhhffhdofhgsqhesnhhrhhhufhhfrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 18 Oct 2021 14:08:31 -0400 (EDT) From: nrhuff+fbq@nrhuff.com To: freebsd-questions@freebsd.org Subject: IPv6 bridge routing issue on boot Date: Mon, 18 Oct 2021 12:08:30 -0600 Message-ID: <87pms2nr35.fsf@discord.nrhuff.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4HY4cc6rStz3hDZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nrhuff.com header.s=fm2 header.b=J8YTb4AV; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=eSlKPt2B; dmarc=none; spf=pass (mx1.freebsd.org: domain of nrhuff@nrhuff.com designates 64.147.123.24 as permitted sender) smtp.mailfrom=nrhuff@nrhuff.com X-Spamd-Result: default: False [-0.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[nrhuff.com:s=fm2,messagingengine.com:s=fm1]; RWL_MAILSPIKE_POSSIBLE(0.00)[64.147.123.24:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(0.70)[0.704]; DKIM_TRACE(0.00)[nrhuff.com:+,messagingengine.com:+]; NEURAL_SPAM_LONG(1.00)[1.000]; FROM_NO_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_NA(0.00)[nrhuff.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; TAGGED_FROM(0.00)[fbq]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.24:from] X-ThisMailContainsUnwantedMimeParts: N I am running into some weird behavior with bridge devices and IPv6 on Boot. I have a system with three bridge devices 2 of which get IPv6 addresses from DHCPv6 and one that is statically assigned. The two bridges that are configured by dhcpd function fine. The bridge that is statically addressed comes up, but the directly connected network route doesn't get added. # uname -a FreeBSD router 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 # ifconfig -a -g bridge bridge0: flags=8843 metric 0 mtu 1500 ether 58:9c:fc:10:ff:d5 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::17bf:5f9b:57c1:8d65%bridge0 prefixlen 64 scopeid 0x6 inet6 xxxx:xxxx:4b7f:2100::1 prefixlen 64 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: igb3 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: igb2 flags=143 ifmaxaddr 0 port 3 priority 128 path cost 2000000 member: igb1 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 groups: bridge nd6 options=1 jailpub: flags=8843 metric 0 mtu 1500 ether 58:9c:fc:10:ff:b1 inet6 fe80::b559:d5ee:5947:4033%jailpub prefixlen 64 scopeid 0x7 inet6 xxxx:xxxx:4b7f:2101::1 prefixlen 64 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: vwpuba flags=143 ifmaxaddr 0 port 9 priority 128 path cost 2000 groups: bridge nd6 options=1 jailpriv: flags=8843 metric 0 mtu 1500 ether 58:9c:fc:10:a3:14 inet6 fd09:fce8:b9e8:7d96::1 prefixlen 64 inet6 fe80::5a9c:fcff:fe10:a314%jailpriv prefixlen 64 scopeid 0x8 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: vwpriva flags=143 ifmaxaddr 0 port 11 priority 128 path cost 2000 groups: bridge nd6 options=21 # netstat -6 -r -n Routing tables Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 default fe80::201:5cff:fe95:4e46%igb0 UG igb0 ::1 link#5 UHS lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 xxxx:xxxx:4002:300::/64 fe80::201:5cff:fe95:4e46%igb0 UG igb0 xxxx:xxxx:4002:300:b971:8222:f615:cdbb link#1 UHS lo0 xxxx:xxxx:4b7f:2100::/64 link#6 U bridge0 xxxx:xxxx:4b7f:2100::/56 ::1 UGR lo0 xxxx:xxxx:4b7f:2100::1 link#6 UHS lo0 xxxx:xxxx:4b7f:2101::/64 link#7 U jailpub xxxx:xxxx:4b7f:2101::1 link#7 UHS lo0 fd09:fce8:b9e8:7d96::1 link#8 UHS lo0 fe80::/10 ::1 UGRS lo0 fe80::%igb0/64 link#1 U igb0 fe80::2e0:67ff:fe23:2878%igb0 link#1 UHS lo0 fe80::%lo0/64 link#5 U lo0 fe80::1%lo0 link#5 UHS lo0 fe80::%bridge0/64 link#6 U bridge0 fe80::17bf:5f9b:57c1:8d65%bridge0 link#6 UHS lo0 fe80::%jailpub/64 link#7 U jailpub fe80::b559:d5ee:5947:4033%jailpub link#7 UHS lo0 fe80::%jailpriv/64 link#8 U jailpriv fe80::5a9c:fcff:fe10:a314%jailpriv link#8 UHS lo0 ff02::/16 ::1 UGRS lo0 Both jailpub and jailpriv have /64 routes. There is no route for fd09:fce8:b9e8:7d96::/64. If I do # /etc/rc.d/netif restart jailpriv # netstat -rn6 Routing tables Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 default fe80::201:5cff:fe95:4e46%igb0 UG igb0 ::1 link#5 UHS lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 2600:6c67:4002:300::/64 fe80::201:5cff:fe95:4e46%igb0 UG igb0 2600:6c67:4002:300:b971:8222:f615:cdbb link#1 UHS lo0 2600:6c67:4b7f:2100::/64 link#6 U bridge0 2600:6c67:4b7f:2100::/56 ::1 UGR lo0 2600:6c67:4b7f:2100::1 link#6 UHS lo0 2600:6c67:4b7f:2101::/64 link#7 U jailpub 2600:6c67:4b7f:2101::1 link#7 UHS lo0 fd09:fce8:b9e8:7d96::/64 link#8 U jailpriv fd09:fce8:b9e8:7d96::1 link#8 UHS lo0 fe80::/10 ::1 UGRS lo0 fe80::%igb0/64 link#1 U igb0 fe80::2e0:67ff:fe23:2878%igb0 link#1 UHS lo0 fe80::%lo0/64 link#5 U lo0 fe80::1%lo0 link#5 UHS lo0 fe80::%bridge0/64 link#6 U bridge0 fe80::17bf:5f9b:57c1:8d65%bridge0 link#6 UHS lo0 fe80::%jailpub/64 link#7 U jailpub fe80::b559:d5ee:5947:4033%jailpub link#7 UHS lo0 fe80::%jailpriv/64 link#8 U jailpriv fe80::5a9c:fcff:fe10:a314%jailpriv link#8 UHS lo0 ff02::/16 ::1 UGRS lo0 This route fd09:fce8:b9e8:7d96::/64 link#8 U jailpriv shows up and everything works. My /etc/rc.conf contains dhclient_program="/usr/local/sbin/dhcpcd" ifconfig_igb0="DHCP" ifconfig_igb0_ipv6="up" ifconfig_igb1="up" ifconfig_igb2="up" ifconfig_igb3="up" cloned_interfaces="bridge0 bridge1 bridge2 epair0 epair1" ifconfig_bridge0="inet 192.168.1.1 netmask 255.255.255.0 addm igb1 addm igb2 addm igb3 up" ifconfig_bridge1="up" ifconfig_bridge1_name="jailpub" ifconfig_bridge2_name="jailpriv" ifconfig_epair0a_name="vwpuba" ifconfig_epair0b_name="vwpubb" ifconfig_epair1a_name="vwpriva" ifconfig_epair1b_name="vwprivb" ifconfig_vwpriva="up" ifconfig_vwpuba="up" ifconfig_jailpub="addm vwpuba up" ifconfig_jailpriv="addm vwpriva up" ifconfig_jailpriv_ipv6="inet6 fd09:fce8:b9e8:7d96::1/64 auto_linklocal" Has anyone seen this and am I doing something wrong or is this a bug. Figured I should check before filing a bug report.