Skip site navigation (1)Skip section navigation (2)
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 &lt;<a href=3D"mailto:rko=
berman@gmail.com">rkoberman@gmail.com</a>&gt;</span><br><strong>To: </stron=
g><span>Larry Rosenman &lt;<a href=3D"mailto:ler@lerctr.org">ler@lerctr.org=
</a>&gt;</span><br><strong>CC: </strong><span>Hajimu UMEMOTO &lt;<a href=3D=
"mailto:ume@mahoroba.org">ume@mahoroba.org</a>&gt;; Michael Sierchio &lt;<a=
 href=3D"mailto:kudzu@tenebras.com">kudzu@tenebras.com</a>&gt;; Freebsd net=
 &lt;<a href=3D"mailto:freebsd-net@freebsd.org">freebsd-net@freebsd.org</a>=
&gt;</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 &lt;<a href=3D"mailt=
o:ler@lerctr.org"><span>ler@lerctr.org</span></a>&gt; 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> &gt; Hi,=20
       <br> &gt;=20
       <br> &gt; On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote:=
=20
       <br> &gt;=20
       <br> &gt;&gt; &gt; Something like this should work for you:=20
       <br> &gt;&gt; &gt;=20
       <br> &gt;&gt; &gt;&nbsp; &nbsp;ifconfig_eth0_ipv6=3D"inet6 fe80::53:=
1 -auto_linklocal accept_rtadv"=20
       <br> &gt;&gt;=20
       <br> &gt;&gt; Nope, didn't work on my home net:=20
       <br> &gt;=20
       <br> &gt; It's strange to me.=20
       <br> &gt; That setting is actually working on my box.=20
       <br> &gt;=20
       <br> &gt;&gt; =E2=9D=AF ifconfig bce0=20
       <br> &gt;&gt; bce0: flags=3D8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MUL=
TICAST&gt; metric 0 mtu=20
       <br> &gt;&gt; 1500=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; options=3Dc01bb&lt;RXCSUM,TXCSUM,V=
LAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE&gt;=
=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; ether a4:ba:db:29:66:95=20
       <br><span> &gt;&gt;&nbsp; &nbsp; &nbsp; 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> &gt;&gt;&nbsp; &nbsp; &nbsp; 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> &gt;=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; inet6 fe80::a6ba:dbff:fe29:6695%bc=
e0 prefixlen 64 scopeid 0x2=20
       <br> &gt;=20
       <br> &gt; It seems -auto_linklocal is not working for you.=20
       <br> &gt;=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; inet6 fe80::53:1%bce0 prefixlen 64=
 scopeid 0x2=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; inet6 2600:1700:210:b18f:a6ba:dbff=
:fe29:6695 prefixlen 64 autoconf=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; media: Ethernet autoselect (1000ba=
seT &lt;full-duplex&gt;)=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; status: active=20
       <br> &gt;&gt;&nbsp; &nbsp; &nbsp; nd6 options=3D3&lt;PERFORMNUD,ACCE=
PT_RTADV&gt;=20
       <br> &gt;&gt;=20
       <br> &gt;&gt; grep bce0 /etc/rc.conf:=20
       <br> &gt;&gt; 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> &gt;&gt; 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> &gt;&gt; ifconfig_bce0_ipv6=3D"inet6 fe80::53:1 accept_rtadv -a=
uto_linklocal"=20
       <br> &gt;=20
       <br> &gt; I'm using DHCP for IPv4 address.=20
       <br> &gt; When ifconfig_bce0_alias0 is set, it does not work.=20
       <br> &gt; It seems that ifconfig_bce0_alias0 does up bce0 before set=
=20
       <br> &gt; -auto_linklocal.=20
       <br> &gt; After some testing, following setting works here.=20
       <br> &gt;=20
       <br> &gt; ifconfig_bce0=3D"inet6 fe80::53:1 -auto_linklocal"=20
       <br> &gt; 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> &gt; 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> &gt; ifconfig_bce0_ipv6=3D"inet6 accept_rtadv"=20
       <br> &gt;=20
       <br> Thank You so much.&nbsp; That works here too.&nbsp; 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.&nbsp; 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>