Date: Sat, 12 Mar 2022 07:52:35 +0000 (UTC) From: Larry Rosenman <ler@lerctr.org> To: Kevin Oberman <rkoberman@gmail.com> Cc: Hajimu UMEMOTO <ume@mahoroba.org>, Michael Sierchio <kudzu@tenebras.com>, Freebsd net <freebsd-net@freebsd.org> Subject: Re: IPv6: How does one have the system use a prefix gotten from rtsol with a static host part? Message-ID: <35755596-6479-414c-a0d8-3f4004d1d61b@lerctr.org> In-Reply-To: <CAN6yY1vRp00bqrZeMWBN2L=wzF1trev6xHwy4r7Dyd9%2B4Mir0w@mail.gmail.com> References: <d6a474ebfda77c4c8a678044d87b51ee@lerctr.org> <CAHu1Y71AP6cn2f5zyqU_ud-wyrQYXufM1TF=M6ssYFodxEKSNQ@mail.gmail.com> <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> <86h7836gy3.wl-ume@mahoroba.org> <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> <86fsnn6dwe.wl-ume@mahoroba.org> <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org> <CAN6yY1vRp00bqrZeMWBN2L=wzF1trev6xHwy4r7Dyd9%2B4Mir0w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_3_209682390.1647071555189 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable *From: *Kevin Oberman <rkoberman@gmail.com> *To: *Larry Rosenman <ler@lerctr.org> *CC: *Hajimu UMEMOTO <ume@mahoroba.org>; Michael Sierchio <kudzu@tenebras.c= om>; Freebsd net <freebsd-net@freebsd.org> *Date: *Mar 12, 2022 1:18:07 AM *Subject: *Re: IPv6: How does one have the system use a prefix gotten from = rtsol with a static host part? > On Fri, Mar 11, 2022 at 8:00 PM Larry Rosenman <ler@lerctr.org> wrote: >> On 03/11/2022 9:36 pm, Hajimu UMEMOTO wrote: >>> Hi, >>> >>> On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote: >>> >>>> > Something like this should work for you: >>>> > >>>> >=C2=A0 =C2=A0ifconfig_eth0_ipv6=3D"inet6 fe80::53:1 -auto_linklocal a= ccept_rtadv" >>>> >>>> Nope, didn't work on my home net: >>> >>> It's strange to me. >>> That setting is actually working on my box. >>> >>>> =E2=9D=AF ifconfig bce0 >>>> bce0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mt= u >>>> 1500 >>>>=C2=A0 =C2=A0 =C2=A0 options=3Dc01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGG= ING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE> >>>>=C2=A0 =C2=A0 =C2=A0 ether a4:ba:db:29:66:95 >>>>=C2=A0 =C2=A0 =C2=A0 inet 192.168.200.4 netmask 0xfffffc00 broadcast 19= 2.168.203.255 >>>>=C2=A0 =C2=A0 =C2=A0 inet 192.168.200.5 netmask 0xfffffc00 broadcast 19= 2.168.203.255 >>> >>>>=C2=A0 =C2=A0 =C2=A0 inet6 fe80::a6ba:dbff:fe29:6695%bce0 prefixlen 64 = scopeid 0x2 >>> >>> It seems -auto_linklocal is not working for you. >>> >>>>=C2=A0 =C2=A0 =C2=A0 inet6 fe80::53:1%bce0 prefixlen 64 scopeid 0x2 >>>>=C2=A0 =C2=A0 =C2=A0 inet6 2600:1700:210:b18f:a6ba:dbff:fe29:6695 prefi= xlen 64 autoconf >>>>=C2=A0 =C2=A0 =C2=A0 media: Ethernet autoselect (1000baseT <full-duplex= >) >>>>=C2=A0 =C2=A0 =C2=A0 status: active >>>>=C2=A0 =C2=A0 =C2=A0 nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV> >>>> >>>> grep bce0 /etc/rc.conf: >>>> ifconfig_bce0=3D"inet 192.168.200.4/22[http://192.168.200.4/22] " >>>> ifconfig_bce0_alias0=3D"inet 192.168.200.5/22[http://192.168.200.5/22]= " >>>> ifconfig_bce0_ipv6=3D"inet6 fe80::53:1 accept_rtadv -auto_linklocal" >>> >>> I'm using DHCP for IPv4 address. >>> When ifconfig_bce0_alias0 is set, it does not work. >>> It seems that ifconfig_bce0_alias0 does up bce0 before set >>> -auto_linklocal. >>> After some testing, following setting works here. >>> >>> ifconfig_bce0=3D"inet6 fe80::53:1 -auto_linklocal" >>> ifconfig_bce0_alias0=3D"inet 192.168.200.4/22[http://192.168.200.4/22]" >>> ifconfig_bce0_alias1=3D"inet 192.168.200.5/22[http://192.168.200.5/22]" >>> ifconfig_bce0_ipv6=3D"inet6 accept_rtadv" >>> >> Thank You so much.=C2=A0 That works here too.=C2=A0 I wonder if this des= erves a >> document somewhere? >> It's NOT intuitively obvious that: >> a) Order in /etc/rc.conf matters >> b) the fe80 address influences the global address >=20 > I don't see how 'a' is possible. All rc.conf does is defne a bunch of env= ironmental variables. I don't see any way the order is relevant other than = that a later definition of a variable overriding an earlier one. What am I = missing here? Yeah, you're right.=C2=A0 But the other point about the fe80 address is not= obvious. ------=_Part_3_209682390.1647071555189 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html>=20 <head></head>=20 <body> <div style=3D"font-family:sans-serif">=20 </div> <div>=20 <br>=20 <div>=20 <p><strong>From: </strong><span>Kevin Oberman <<a href=3D"mailto:rko= berman@gmail.com">rkoberman@gmail.com</a>></span><br><strong>To: </stron= g><span>Larry Rosenman <<a href=3D"mailto:ler@lerctr.org">ler@lerctr.org= </a>></span><br><strong>CC: </strong><span>Hajimu UMEMOTO <<a href=3D= "mailto:ume@mahoroba.org">ume@mahoroba.org</a>>; Michael Sierchio <<a= href=3D"mailto:kudzu@tenebras.com">kudzu@tenebras.com</a>>; Freebsd net= <<a href=3D"mailto:freebsd-net@freebsd.org">freebsd-net@freebsd.org</a>= ></span><br><strong>Date: </strong>Mar 12, 2022 1:18:07 AM<br><strong>Su= bject: </strong>Re: IPv6: How does one have the system use a prefix gotten = from rtsol with a static host part?<br></p>=20 </div>=20 <blockquote style=3D"border-left:3px solid #ccc; padding-left:3px;margin= -top:0; margin-bottom:0">=20 <div dir=3D"ltr">=20 <div dir=3D"ltr">=20 <div class=3D"gmail_default" style=3D"font-size:small;font-family:tah= oma,sans-serif"> On Fri, Mar 11, 2022 at 8:00 PM Larry Rosenman <<a href=3D"mailt= o:ler@lerctr.org"><span>ler@lerctr.org</span></a>> wrote:=20 <br>=20 </div>=20 </div>=20 <div class=3D"gmail_quote">=20 <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"> On 03/11/2022 9:36 pm, Hajimu UMEMOTO wrote:=20 <br> > Hi,=20 <br> >=20 <br> > On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote:= =20 <br> >=20 <br> >> > Something like this should work for you:=20 <br> >> >=20 <br> >> > ifconfig_eth0_ipv6=3D"inet6 fe80::53:= 1 -auto_linklocal accept_rtadv"=20 <br> >>=20 <br> >> Nope, didn't work on my home net:=20 <br> >=20 <br> > It's strange to me.=20 <br> > That setting is actually working on my box.=20 <br> >=20 <br> >> =E2=9D=AF ifconfig bce0=20 <br> >> bce0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MUL= TICAST> metric 0 mtu=20 <br> >> 1500=20 <br> >> options=3Dc01bb<RXCSUM,TXCSUM,V= LAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>= =20 <br> >> ether a4:ba:db:29:66:95=20 <br><span> >> inet <a href=3D"192.168.200.= 4">192.168.200.4</a> netmask 0xfffffc00 broadcast <a href=3D"192.168.203.25= 5">192.168.203.255</a> </span> <br><span> >> inet <a href=3D"192.168.200.= 5">192.168.200.5</a> netmask 0xfffffc00 broadcast <a href=3D"192.168.203.25= 5">192.168.203.255</a> </span> <br> >=20 <br> >> inet6 fe80::a6ba:dbff:fe29:6695%bc= e0 prefixlen 64 scopeid 0x2=20 <br> >=20 <br> > It seems -auto_linklocal is not working for you.=20 <br> >=20 <br> >> inet6 fe80::53:1%bce0 prefixlen 64= scopeid 0x2=20 <br> >> inet6 2600:1700:210:b18f:a6ba:dbff= :fe29:6695 prefixlen 64 autoconf=20 <br> >> media: Ethernet autoselect (1000ba= seT <full-duplex>)=20 <br> >> status: active=20 <br> >> nd6 options=3D3<PERFORMNUD,ACCE= PT_RTADV>=20 <br> >>=20 <br> >> grep bce0 /etc/rc.conf:=20 <br> >> ifconfig_bce0=3D"inet <a href=3D"http://192.168.200.4/= 22" rel=3D"noreferrer" target=3D"_blank"><span>192.168.200.4/22</span></a> = "=20 <br> >> ifconfig_bce0_alias0=3D"inet <a href=3D"http://192.168= .200.5/22" rel=3D"noreferrer" target=3D"_blank"><span>192.168.200.5/22</spa= n></a> "=20 <br> >> ifconfig_bce0_ipv6=3D"inet6 fe80::53:1 accept_rtadv -a= uto_linklocal"=20 <br> >=20 <br> > I'm using DHCP for IPv4 address.=20 <br> > When ifconfig_bce0_alias0 is set, it does not work.=20 <br> > It seems that ifconfig_bce0_alias0 does up bce0 before set= =20 <br> > -auto_linklocal.=20 <br> > After some testing, following setting works here.=20 <br> >=20 <br> > ifconfig_bce0=3D"inet6 fe80::53:1 -auto_linklocal"=20 <br> > ifconfig_bce0_alias0=3D"inet <a href=3D"http://192.168.200= .4/22" rel=3D"noreferrer" target=3D"_blank"><span>192.168.200.4/22</span></= a>"=20 <br> > ifconfig_bce0_alias1=3D"inet <a href=3D"http://192.168.200= .5/22" rel=3D"noreferrer" target=3D"_blank"><span>192.168.200.5/22</span></= a>"=20 <br> > ifconfig_bce0_ipv6=3D"inet6 accept_rtadv"=20 <br> >=20 <br> Thank You so much. That works here too. I wonder if= this deserves a=20 <br> document somewhere?=20 <br> It's NOT intuitively obvious that:=20 <br> a) Order in /etc/rc.conf matters=20 <br> b) the fe80 address influences the global address=20 <br>=20 </blockquote>=20 <div>=20 <br>=20 </div>=20 <div style=3D"font-size:small;font-family:tahoma,sans-serif" class=3D= "gmail_default"> I don't see how 'a' is possible. All rc.conf does is defne a bunch = of environmental variables. I don't see any way the order is relevant other= than that a later definition of a variable overriding an earlier one. What= am I missing here?=20 <br>=20 </div>=20 </div>=20 </div>=20 </blockquote>=20 </div> <span dir=3D"ltr" style=3D"margin-top:0; margin-bottom:0;">Yeah, y= ou're right. But the other point about the fe80 address is not obviou= s.</span>=20 <br> =20 </body> </html> ------=_Part_3_209682390.1647071555189--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35755596-6479-414c-a0d8-3f4004d1d61b>