From nobody Sat Mar 12 07:17:07 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 7D4581A122FC for ; Sat, 12 Mar 2022 07:17:54 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFvJx4Xbfz4RHf for ; Sat, 12 Mar 2022 07:17:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oo1-xc2d.google.com with SMTP id w3-20020a4ac183000000b0031d806bbd7eso13186622oop.13 for ; Fri, 11 Mar 2022 23:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uZW9cN9PP2Wh116UcQsPNtF+lp7g8HAKB7duzbgOTsY=; b=LIxgM/wOHx4tMnzrufhZoRJnRPYUTiPijGcvs3z8rFx+7COe96TOkrwkahe0TylPDL y5Fl5q3T7yQSUqjHDG50ylsOtEoavS/BjcZ26eXLIjbFETPgfliI+pRy0psfHqahZmFn 6fhfaMjIf9yRvgRcIar8XXS6OdCaKVTwLnWZTY6gfc4RjJXfbP6cZeei0tI/ud99lqil C+6CW0wD/PDQv2fQkntOL4ktg30k7U5of9Y/4qTQ+/SWOIPIsKie132lmTj1VEYHkQ5g RBljFKuFtgwCwAP5QtJ4juZcmZ27DnTWNDkCBZ43eLTF8m7PKSfVlQ7ZJcF+AspBI63T d6Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uZW9cN9PP2Wh116UcQsPNtF+lp7g8HAKB7duzbgOTsY=; b=DmHlpeYPNhPoo/7r+xFEOpVIB3SJ7DejJiIQzx2PBSPi+UBLNEPgcVhZ6FZWkg3kUE 7xGl/GsAGMb8KixsT6gpTeQbmGXmyGLCMoDULb2FxQKnkX7Fc6vFymQySTYGvtxdcIQQ XivB8vAKHY1svLovoWkuGdI6jqbA+jC1zG3+ZbcYD7wfiA+pnrGXLiKZ4ZCE5it/aQF1 MYzWoMM/ozMcBgh605QEACZzUtGRZ5pAI5/g7v/ixc8UZworoN9HVykl8tLDQsOyc+Zj p0N+/I42mRVcMkZqWSNETK1CZ1zfBAhh2AecAEI0pN9LgFANbA9TDl2Sw6zLnD1ewWrB R+cQ== X-Gm-Message-State: AOAM530qfpw8wDHHAk5bnGALCZ3ADPh2inTGYQYPukLEuwjvhcy6kKAY 18ETF0eb8YHVNy3aOJfXL5LH8fajIjP3eiOR6iMr34Re X-Google-Smtp-Source: ABdhPJxmAK8Hd06KAacbHy8aZxbW/f1tKTFKBHE03XMHmfHaZ/J9moVwgAfuPMd7jwrYPofHbypY3LdF7ZhRLfWnU10= X-Received: by 2002:a05:6870:32ce:b0:d9:a0ee:44b3 with SMTP id r14-20020a05687032ce00b000d9a0ee44b3mr7735699oac.142.1647069472915; Fri, 11 Mar 2022 23:17:52 -0800 (PST) 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 References: <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> <86h7836gy3.wl-ume@mahoroba.org> <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> <86fsnn6dwe.wl-ume@mahoroba.org> <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org> In-Reply-To: <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org> From: Kevin Oberman Date: Fri, 11 Mar 2022 23:17:07 -0800 Message-ID: Subject: Re: IPv6: How does one have the system use a prefix gotten from rtsol with a static host part? To: Larry Rosenman Cc: Hajimu UMEMOTO , Michael Sierchio , Freebsd net Content-Type: multipart/alternative; boundary="000000000000da85cc05da003eb5" X-Rspamd-Queue-Id: 4KFvJx4Xbfz4RHf X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="LIxgM/wO"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::c2d as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-1.51 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.977]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.83)[-0.833]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c2d:from]; HTTP_TO_IP(1.00)[]; MLMMJ_DEST(0.00)[freebsd-net]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000da85cc05da003eb5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: > >> > > >> > 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 metric 0 mt= u > >> 1500 > >> > options=3Dc01bb > >> 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 ) > >> status: active > >> nd6 options=3D3 > >> > >> 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
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 accept_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> m= etric 0 mtu
>> 1500
>>=C2=A0 =C2=A0 =C2=A0 options=3Dc01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN= _HWTAGGING,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 broadcas= t 192.168.203.255
>>=C2=A0 =C2=A0 =C2=A0 inet 192.168.200.5 netmask 0xfffffc00 broadcas= t 192.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 p= refixlen 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 "
>> ifconfig_bce0_alias0=3D"inet 192.168.200.5/22 "
>> ifconfig_bce0_ipv6=3D"inet6 fe80::53:1 accept_rtadv -auto_lin= klocal"
>
> 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.=C2=A0 That works here too.=C2=A0 I wonder if this deserv= es 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 do= es 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 overrid= ing an earlier one. What am I missing here?
--
<= div>
Kevin Oberman, Part time kid her= der and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerp= rint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
--000000000000da85cc05da003eb5--