From nobody Tue Jun 21 17:10:04 2022 X-Original-To: freebsd-net@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 B2C1985A313 for ; Tue, 21 Jun 2022 17:10:15 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gilb.zs64.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSCgp3pbcz3kRh for ; Tue, 21 Jun 2022 17:10:14 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 9E5F842A234 for ; Tue, 21 Jun 2022 17:10:06 +0000 (UTC) From: Stefan Bethke Content-Type: multipart/signed; boundary="Apple-Mail=_A0B313E5-F218-43BD-84F2-ACEE65E66C05"; protocol="application/pgp-signature"; micalg=pgp-sha512 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: fib 1 DHCP and RA default route Message-Id: <6B824787-2D1D-4811-8EB3-0C59E253DBE3@lassitu.de> Date: Tue, 21 Jun 2022 19:10:04 +0200 To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3696.100.31) X-Rspamd-Queue-Id: 4LSCgp3pbcz3kRh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 2a00:14b0:4200:32e0::1ea as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [-2.55 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.929]; FREEFALL_USER(0.00)[stb]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_SHORT(-0.71)[-0.713]; NEURAL_SPAM_LONG(1.00)[0.996]; DMARC_NA(0.00)[lassitu.de]; MLMMJ_DEST(0.00)[freebsd-net]; SIGNED_PGP(-2.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:13135, ipnet:2a00:14b0::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_A0B313E5-F218-43BD-84F2-ACEE65E66C05 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I'm setting up a new router that has both an ADSL/PPPoE and a cable = modem upstream. I've configured mpd5 for the PPPoE connection, and I'd = like to have the cable modem provide a second, independent connection = through FIB 1 over igb2. rc.conf (partially): ifconfig_igb2_descr=3D"Cable Modem" ifconfig_igb2=3D"DHCP fib 1" ifconfig_igb2_ipv6=3D"inet6 accept_rtadv defaultif" gateway_enable=3D"YES" ipv6_gateway_enable=3D"YES" pf_enable=3D"YES" dhclient_flags=3D"-b" dhcp6c_enable=3D"YES" dhcp6c_interfaces=3D"igb2" dhcp6c_fib=3D1 I think this should be sufficient to receive both an IPv4 and IPv6 = address and a default route, however, neither one is added. When I = manually add them, they are removed after a while. $ ifconfig igb2 igb2: flags=3D8863 metric 0 mtu = 1500 description: Cable Modem = options=3D4e527bb ether 00:0d:b9:xx:xx:62 inet6 fe80::20d:b9ff:fe58:5262%igb2 prefixlen 64 scopeid 0x3 inet6 2a02:8108:0:90:xxxx:8eb4:28c2:6315 prefixlen 128 inet 31.16.xxx.4 netmask 0xffffff00 broadcast 31.16.xxx.255 fib: 1 media: Ethernet autoselect (1000baseT ) status: active nd6 = options=3D8023 $ setfib 1 netstat -rnfinet Routing tables (fib: 1) Internet: Destination Gateway Flags Netif Expire 31.16.xxx.0/24 link#3 U igb2 31.16.xxx.4 link#3 UHS lo0 127.0.0.1 link#4 UHS lo0 $ setfib 1 netstat -rnfinet6 Routing tables (fib: 1) Internet6: Destination Gateway Flags = Netif Expire ::/96 ::1 UGRS = lo0 ::1 link#4 UHS = lo0 ::ffff:0.0.0.0/96 ::1 UGRS = lo0 2a02:8108:0:90:xxxx:8eb4:28c2:6315 link#3 UHS = lo0 2a02:8108:xxxx:9d00::/64 link#17 U = br103 2a02:8108:xxxx:9d00:0:ff:fe00:367 link#17 UHS = lo0 fe80::/10 ::1 UGRS = lo0 fe80::%igb2/64 link#3 U = igb2 fe80::20d:b9ff:fe58:5262%igb2 link#3 UHS = lo0 ff02::/16 ::1 UGRS = lo0 For IPv6, I thought that setting defaultif would make the kernel add the = default route when an appropriate RA is received, and on my old router, = that was working; I can't seem to see what difference I have in the = config, apart from using FIB 1 instead of the default. And for IPv4, I see that I get the default router through DHCP, but = somehow /sbin/dhclient-script is not adding a default route. If I add it = manually, it will be removed eventually. Any suggestions? Stefan -- Stefan Bethke Fon +49 151 14070811 --Apple-Mail=_A0B313E5-F218-43BD-84F2-ACEE65E66C05 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEJ+hF98o4r3eU/HiPD885WK4W4sEFAmKx+20ACgkQD885WK4W 4sFkRQf+OAPVYw/hjKLaBp/6TelWOfBbZiBVrgA0l78C2ftB9SDXItg1I/evnF7/ b3wJYV+hvFuACbr2RW/Q+mrys9g98T1asp+lxaLC1EgW0/xmeOI9ujFMGR//FK9e cDsGr6M2vbW8rFEhavtfpNG+zKpgqiF6qB4gY3B/eHBlBlEgf9BOo3Mto80CFXTW hO793ZY78T26jLWj2sMs0/AZGC35uZTO7r/iwQgYtW3HvCiCkaSMEh6PJE68xzhA iOZabbw8DRpCzCUk5WmZZJMXk+G4TaqDMQ7Pp0vhE97d6Ar+0Ki/kQ4UgEMamcGm IeZhF2JKW5a+sHVTxndzBqkfFyXR+A== =z348 -----END PGP SIGNATURE----- --Apple-Mail=_A0B313E5-F218-43BD-84F2-ACEE65E66C05--