Date: Thu, 18 Jul 2024 17:48:22 +0200 From: Santiago Martinez <sm@codenetworks.net> To: freebsd-net@freebsd.org Subject: Re: Multiple Fibs and INET6 Message-ID: <D34B5A01-9770-4BCF-B427-796F443303E0@codenetworks.net> In-Reply-To: <da781b66-4ab3-426f-bf56-f453030c6e61@codenetworks.net> References: <da781b66-4ab3-426f-bf56-f453030c6e61@codenetworks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-2F3EF50F-171F-4DA5-8688-F58A1AB937F5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone, Did anyone had the chance to take a look? For me it=E2=80=99s a bug but before filling the PR want to know what=E2=80=99= s your view or if it=E2=80=99s a limitation or bug by design. Br Santi > On 12 Jul 2024, at 19:06, Santiago Martinez <sm@codenetworks.net> wrote: >=20 > =EF=BB=BF > Hi Everyone. >=20 > While adding -F ( fib as used in netstat ) to ping and ping6 I have found s= omething that from my understanding is not correct. > Please can you advise? > I have the following setup : >=20 > -- two fibs (0 and 1)=20 > -- two loop-backs (lo0 and lo1). > -- Lo1 has been assigned to fib1 > -- net.add_addr_allfibs =3D 0 > My interface output looks like this: >=20 > ifconfig lo0 | grep inet6 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >=20 > ifconfig lo1 | grep inet6 > inet6 fe80::1%lo1 prefixlen 64 scopeid 0x3 >=20 >=20 > If I do a netstat -rn -6 -F0 I get the following which is was i expected.= >=20 > Internet6: > Destination Gateway Flags N= etif Expire > ::/96 link#2 URS = lo0 > ::1 link#2 UHS = lo0 > ::ffff:0.0.0.0/96 link#2 URS = lo0 > fe80::%lo0/10 link#2 URS = lo0 > fe80::%lo0/64 link#2 U = lo0 > fe80::1%lo0 link#2 UHS = lo0 > ff02::/16 link#2 URS = lo0 >=20 >=20 > Now, netstat -rn -6 -F1 shows "fe80::1%lo0" which should not be there a= nd "fe80::1%lo1" is missing which should be there. > Internet6: > Destination Gateway Flags N= etif Expire > fe80::%lo1/64 link#3 U = lo1 > fe80::1%lo0 link#2 UHS = lo0 >=20 >=20 > What output I was expecting was: > Internet6: > Destination Gateway Flags N= etif Expire > fe80::%lo1/64 link#3 U = lo1 > fe80::1%lo1 link#3 UHS = lo1 >=20 >=20 >=20 > This makes the ping -6 -F0 fe80::1%lo0 to work but ping -6 -F1 fe80::1%l0= 1 to fail which I wanted to use as test case. >=20 > Thanks in advance. >=20 > Santiago >=20 --Apple-Mail-2F3EF50F-171F-4DA5-8688-F58A1AB937F5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">Hi e= veryone,</div><div dir=3D"ltr">Did anyone had the chance to take a look?</di= v><div dir=3D"ltr">For me it=E2=80=99s a bug but before filling the PR want t= o know what=E2=80=99s your view or if it=E2=80=99s a limitation or bug by de= sign.</div><div dir=3D"ltr">Br</div><div dir=3D"ltr">Santi</div><div dir=3D"= ltr"><br></div><div dir=3D"ltr"><br><blockquote type=3D"cite">On 12 Jul 2024= , at 19:06, Santiago Martinez <sm@codenetworks.net> wrote:<br><br></bl= ockquote></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF =20 <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8"= > =20 =20 <p>Hi Everyone.</p> While adding -F ( fib as used in netstat ) to ping and ping6 I have found something that from my understanding is not correct.<br> Please can you advise?<br> <p>I have the following setup :</p> -- two fibs (0 and 1) <br> -- two loop-backs (lo0 and lo1).<br> -- Lo1 has been assigned to fib1<br> --<span style=3D"color:#000000;background-color:#ffffff;"> net.add_addr_allfibs =3D 0</span> <p><span style=3D"color:#000000;background-color:#ffffff;">My interface output looks like this:<br> </span><span style=3D"font-family:monospace"></span></p> <p><span style=3D"font-family:monospace"></span></p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;ba= ckground-color:#ffffff;">ifconfig lo0 | grep inet6 </span><br> inet6 ::1 prefixlen 128 <br> inet6 fe80::1%lo0 prefixle= n 64 scopeid 0x2 <br> </span></p> <p><span style=3D"font-family:monospace">ifconfig lo1 | grep inet6 <br> inet6 fe80::1%lo1 prefixle= n 64 scopeid 0x3<br> <br> </span></p> <p>If I do a netstat -rn -6 -F0 I get the following which is was i= expected.<br> </p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;ba= ckground-color:#ffffff;">Internet6: </span><br> Destination &n= bsp; = Gateway &n= bsp; Flags = Netif Expire <br> ::/96 &n= bsp; = link#2 &n= bsp; URS &n= bsp; lo0 <br> ::1 &nbs= p; &n= bsp; link#2 &n= bsp; UHS &n= bsp; lo0 <br> ::ffff:0.0.0.0/96 &n= bsp; link#2 &n= bsp; URS &n= bsp; lo0 <br> fe80::%lo0/10 = link#2 &n= bsp; URS &n= bsp; lo0 <br> fe80::%lo0/64 = link#2 &n= bsp; U &nbs= p; lo0 <br> fe80::1%lo0 &n= bsp; = link#2 &n= bsp; UHS &n= bsp; lo0 <br> ff02::/16 &nbs= p; &n= bsp; link#2 &n= bsp; URS &n= bsp; lo0<br> <br> </span></p> Now, netstat -rn -6 -F1 shows "fe80::1%lo0" which shou= ld not be there and "fe80::1%lo1" is missing which should be there. <p></p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;ba= ckground-color:#ffffff;">Internet6: </span><br> Destination &n= bsp; = Gateway &n= bsp; Flags = Netif Expire <br> fe80::%lo1/64 = link#3 &n= bsp; U &nbs= p; lo1 <br> <b>fe80::1%lo0  = ; &nb= sp;link#2 = UHS &= nbsp; lo0</b><br> <br> </span></p> What output I was expecting was: <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;ba= ckground-color:#ffffff;">Internet6: </span><br> Destination &n= bsp; = Gateway &n= bsp; Flags = Netif Expire <br> fe80::%lo1/64 = link#3 &n= bsp; U &nbs= p; lo1 <br> <b>fe80::1%lo1  = ; li= nk#3 = UHS  = ; lo1</b></span></p> <p><br> </p> <p>This makes the ping -6 -F0 fe80::1%lo0 to work but ping -6 -F1 fe80::1%l01 to fail which I wanted to use as test case.<span style=3D"= font-family:monospace"><br> </span></p> <p>Thanks in advance.</p> Santiago <p><span style=3D"font-family:monospace"><br> </span></p> =20 </div></blockquote></body></html>= --Apple-Mail-2F3EF50F-171F-4DA5-8688-F58A1AB937F5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D34B5A01-9770-4BCF-B427-796F443303E0>