From nobody Sat Mar 12 07:52:35 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 011ED1A18475 for ; Sat, 12 Mar 2022 07:52:44 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) (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 "*.lerctr.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFw566xjCz4Vcy for ; Sat, 12 Mar 2022 07:52:42 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Content-Type:MIME-Version:Subject:References:In-Reply-To: Message-ID:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YJsDcS7sXD9AeLw6/8SmgRKDnEinn0it0faSg6g4wKg=; b=anJLUcJzzeItaFfisRqufovWOc a6RE7IjrCopZS9ncC3OZd/bR6Yql+gZHtII+wD4ZwPloq0L6K63gCSlAIbln4L2nwLZd1KwFp8ls7 x3xQ55jwXtrGZh79SDikVwctfxxvYGmQX8zXn4+YAImFk4XFWVeojkc71XFfLXRXQg2vDBQQOQgSE GexDQSeY1SDiwuiko9wHYL9SujiYgWZGAjfULydObfDYRHLIFGM5eBWzkpQ9fz3Z2mEExjDT9sXPJ b+vixP/jaR8JS8IgRVMSK5v9DBOWeC7f35Djrc8v8rgMdz9LYqvV0idD0N1PrBipOCj1fqbi8TDe3 n8nUjTbA==; Received-SPF: softfail (thebighonker.lerctr.org: transitioning domain of lerctr.org does not designate 2607:fb91:1202:dd55:646d:933f:e75c:4fb8 as permitted sender) client-ip=2607:fb91:1202:dd55:646d:933f:e75c:4fb8; envelope-from=ler@lerctr.org; helo=dummy.faircode.eu; Received: from [2607:fb91:1202:dd55:646d:933f:e75c:4fb8] (port=34974 helo=dummy.faircode.eu) by thebighonker.lerctr.org with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nSwYI-0001Jf-0B; Sat, 12 Mar 2022 01:52:38 -0600 Date: Sat, 12 Mar 2022 07:52:35 +0000 (UTC) From: Larry Rosenman To: Kevin Oberman Cc: Hajimu UMEMOTO , Michael Sierchio , Freebsd net Message-ID: <35755596-6479-414c-a0d8-3f4004d1d61b@lerctr.org> In-Reply-To: References: <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> <86h7836gy3.wl-ume@mahoroba.org> <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> <86fsnn6dwe.wl-ume@mahoroba.org> <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org> Subject: Re: IPv6: How does one have the system use a prefix gotten from rtsol with a static host part? 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 Content-Type: multipart/alternative; boundary="----=_Part_3_209682390.1647071555189" X-Correlation-ID: <35755596-6479-414c-a0d8-3f4004d1d61b@lerctr.org> X-Rspamd-Queue-Id: 4KFw566xjCz4Vcy X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b=anJLUcJz; dmarc=pass (policy=none) header.from=lerctr.org; spf=pass (mx1.freebsd.org: domain of ler@lerctr.org designates 192.147.25.65 as permitted sender) smtp.mailfrom=ler@lerctr.org X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[lerctr.org:s=ler2019]; FREEFALL_USER(0.00)[ler]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[lerctr.org:+]; DMARC_POLICY_ALLOW(-0.50)[lerctr.org,none]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8166, ipnet:192.147.25.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_3_209682390.1647071555189 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable *From: *Kevin Oberman *To: *Larry Rosenman *CC: *Hajimu UMEMOTO ; Michael Sierchio ; Freebsd net *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 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 metric 0 mt= u >>>> 1500 >>>>=C2=A0 =C2=A0 =C2=A0 options=3Dc01bb >>>>=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 ) >>>>=C2=A0 =C2=A0 =C2=A0 status: active >>>>=C2=A0 =C2=A0 =C2=A0 nd6 options=3D3 >>>> >>>> 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 =20 =20
=20
=20
=20
=20

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= >
Date: Mar 12, 2022 1:18:07 AM
Su= bject: Re: IPv6: How does one have the system use a prefix gotten = from rtsol with a static host part?

=20
=20
=20
=20
=20
On Fri, Mar 11, 2022 at 8:00 PM Larry Rosenman <ler@lerctr.org> wrote:=20
=20
=20
=20
=20
On 03/11/2022 9:36 pm, Hajimu UMEMOTO wrote:=20
> Hi,=20
>=20
> On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote:= =20
>=20
>> > Something like this should work for you:=20
>> >=20
>> >   ifconfig_eth0_ipv6=3D"inet6 fe80::53:= 1 -auto_linklocal accept_rtadv"=20
>>=20
>> Nope, didn't work on my home net:=20
>=20
> It's strange to me.=20
> That setting is actually working on my box.=20
>=20
>> =E2=9D=AF ifconfig bce0=20
>> bce0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MUL= TICAST> metric 0 mtu=20
>> 1500=20
>>      options=3Dc01bb<RXCSUM,TXCSUM,V= LAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>= =20
>>      ether a4:ba:db:29:66:95=20
>>      inet 192.168.200.4 netmask 0xfffffc00 broadcast 192.168.203.255
>>      inet 192.168.200.5 netmask 0xfffffc00 broadcast 192.168.203.255
>=20
>>      inet6 fe80::a6ba:dbff:fe29:6695%bc= e0 prefixlen 64 scopeid 0x2=20
>=20
> It seems -auto_linklocal is not working for you.=20
>=20
>>      inet6 fe80::53:1%bce0 prefixlen 64= scopeid 0x2=20
>>      inet6 2600:1700:210:b18f:a6ba:dbff= :fe29:6695 prefixlen 64 autoconf=20
>>      media: Ethernet autoselect (1000ba= seT <full-duplex>)=20
>>      status: active=20
>>      nd6 options=3D3<PERFORMNUD,ACCE= PT_RTADV>=20
>>=20
>> grep bce0 /etc/rc.conf:=20
>> ifconfig_bce0=3D"inet 192.168.200.4/22 = "=20
>> ifconfig_bce0_alias0=3D"inet 192.168.200.5/22 "=20
>> ifconfig_bce0_ipv6=3D"inet6 fe80::53:1 accept_rtadv -a= uto_linklocal"=20
>=20
> I'm using DHCP for IPv4 address.=20
> When ifconfig_bce0_alias0 is set, it does not work.=20
> It seems that ifconfig_bce0_alias0 does up bce0 before set= =20
> -auto_linklocal.=20
> After some testing, following setting works here.=20
>=20
> ifconfig_bce0=3D"inet6 fe80::53:1 -auto_linklocal"=20
> ifconfig_bce0_alias0=3D"inet 192.168.200.4/22"=20
> ifconfig_bce0_alias1=3D"inet
192.168.200.5/22"=20
> ifconfig_bce0_ipv6=3D"inet6 accept_rtadv"=20
>=20
Thank You so much.  That works here too.  I wonder if= this deserves a=20
document somewhere?=20
It's NOT intuitively obvious that:=20
a) Order in /etc/rc.conf matters=20
b) the fe80 address influences the global address=20
=20
=20
=20
=20
=20
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
=20
=20
=20
=20
=20
Yeah, y= ou're right.  But the other point about the fe80 address is not obviou= s.=20
=20 ------=_Part_3_209682390.1647071555189--