Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2022 23:17:07 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Larry Rosenman <ler@lerctr.org>
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:  <CAN6yY1vRp00bqrZeMWBN2L=wzF1trev6xHwy4r7Dyd9%2B4Mir0w@mail.gmail.com>
In-Reply-To: <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000da85cc05da003eb5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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:
> >> >
> >> >   ifconfig_eth0_ipv6=3D"inet6 fe80::53:1 -auto_linklocal accept_rtad=
v"
> >>
> >> 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
> >>
> options=3Dc01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCS=
UM,TSO4,VLAN_HWTSO,LINKSTATE>
> >>      ether a4:ba:db:29:66:95
> >>      inet 192.168.200.4 netmask 0xfffffc00 broadcast 192.168.203.255
> >>      inet 192.168.200.5 netmask 0xfffffc00 broadcast 192.168.203.255
> >
> >>      inet6 fe80::a6ba:dbff:fe29:6695%bce0 prefixlen 64 scopeid 0x2
> >
> > It seems -auto_linklocal is not working for you.
> >
> >>      inet6 fe80::53:1%bce0 prefixlen 64 scopeid 0x2
> >>      inet6 2600:1700:210:b18f:a6ba:dbff:fe29:6695 prefixlen 64 autocon=
f
> >>      media: Ethernet autoselect (1000baseT <full-duplex>)
> >>      status: active
> >>      nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV>
> >>
> >> grep bce0 /etc/rc.conf:
> >> ifconfig_bce0=3D"inet 192.168.200.4/22 "
> >> ifconfig_bce0_alias0=3D"inet 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"
> > ifconfig_bce0_alias1=3D"inet 192.168.200.5/22"
> > ifconfig_bce0_ipv6=3D"inet6 accept_rtadv"
> >
> Thank You so much.  That works here too.  I wonder if this deserves a
> document somewhere?
> It's NOT intuitively obvious that:
> a) Order in /etc/rc.conf matters
> b) the fe80 address influences the global address
>

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
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

--000000000000da85cc05da003eb5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Fri, Mar 11, 2022 at 8:00 PM=
 Larry Rosenman &lt;<a href=3D"mailto:ler@lerctr.org">ler@lerctr.org</a>&gt=
; wrote:<br></div></div><div class=3D"gmail_quote"><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex">On 03/11/2022 9:36 pm, Hajimu UMEMOTO wrote:<br>
&gt; Hi,<br>
&gt; <br>
&gt; On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote:<br>
&gt; <br>
&gt;&gt; &gt; Something like this should work for you:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;=C2=A0 =C2=A0ifconfig_eth0_ipv6=3D&quot;inet6 fe80::53:1 -auto=
_linklocal accept_rtadv&quot;<br>
&gt;&gt; <br>
&gt;&gt; Nope, didn&#39;t work on my home net:<br>
&gt; <br>
&gt; It&#39;s strange to me.<br>
&gt; That setting is actually working on my box.<br>
&gt; <br>
&gt;&gt; =E2=9D=AF ifconfig bce0<br>
&gt;&gt; bce0: flags=3D8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; m=
etric 0 mtu<br>
&gt;&gt; 1500<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 options=3Dc01bb&lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN=
_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE&gt;<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 ether a4:ba:db:29:66:95<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 inet 192.168.200.4 netmask 0xfffffc00 broadcas=
t 192.168.203.255<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 inet 192.168.200.5 netmask 0xfffffc00 broadcas=
t 192.168.203.255<br>
&gt; <br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 inet6 fe80::a6ba:dbff:fe29:6695%bce0 prefixlen=
 64 scopeid 0x2<br>
&gt; <br>
&gt; It seems -auto_linklocal is not working for you.<br>
&gt; <br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 inet6 fe80::53:1%bce0 prefixlen 64 scopeid 0x2=
<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 inet6 2600:1700:210:b18f:a6ba:dbff:fe29:6695 p=
refixlen 64 autoconf<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 media: Ethernet autoselect (1000baseT &lt;full=
-duplex&gt;)<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 status: active<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 nd6 options=3D3&lt;PERFORMNUD,ACCEPT_RTADV&gt;=
<br>
&gt;&gt; <br>
&gt;&gt; grep bce0 /etc/rc.conf:<br>
&gt;&gt; ifconfig_bce0=3D&quot;inet <a href=3D"http://192.168.200.4/22" rel=
=3D"noreferrer" target=3D"_blank">192.168.200.4/22</a> &quot;<br>
&gt;&gt; ifconfig_bce0_alias0=3D&quot;inet <a href=3D"http://192.168.200.5/=
22" rel=3D"noreferrer" target=3D"_blank">192.168.200.5/22</a> &quot;<br>
&gt;&gt; ifconfig_bce0_ipv6=3D&quot;inet6 fe80::53:1 accept_rtadv -auto_lin=
klocal&quot;<br>
&gt; <br>
&gt; I&#39;m using DHCP for IPv4 address.<br>
&gt; When ifconfig_bce0_alias0 is set, it does not work.<br>
&gt; It seems that ifconfig_bce0_alias0 does up bce0 before set<br>
&gt; -auto_linklocal.<br>
&gt; After some testing, following setting works here.<br>
&gt; <br>
&gt; ifconfig_bce0=3D&quot;inet6 fe80::53:1 -auto_linklocal&quot;<br>
&gt; ifconfig_bce0_alias0=3D&quot;inet <a href=3D"http://192.168.200.4/22" =
rel=3D"noreferrer" target=3D"_blank">192.168.200.4/22</a>&quot;<br>
&gt; ifconfig_bce0_alias1=3D&quot;inet <a href=3D"http://192.168.200.5/22" =
rel=3D"noreferrer" target=3D"_blank">192.168.200.5/22</a>&quot;<br>
&gt; ifconfig_bce0_ipv6=3D&quot;inet6 accept_rtadv&quot;<br>
&gt; <br>
Thank You so much.=C2=A0 That works here too.=C2=A0 I wonder if this deserv=
es a <br>
document somewhere?<br>
It&#39;s NOT intuitively obvious that:<br>
a) Order in /etc/rc.conf matters<br>
b) the fe80 address influences the global address<br></blockquote><div><br>=
</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D=
"gmail_default">I don&#39;t see how &#39;a&#39; is possible. All rc.conf do=
es is defne a bunch of environmental variables. I don&#39;t see any way the=
 order is relevant other than that a later definition of a variable overrid=
ing an earlier one. What am I missing here?<br></div></div>-- <br><div dir=
=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><=
div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid her=
der and retired Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gma=
il.com" target=3D"_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerp=
rint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div=
></div></div></div></div>

--000000000000da85cc05da003eb5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vRp00bqrZeMWBN2L=wzF1trev6xHwy4r7Dyd9%2B4Mir0w>