From nobody Sat Mar 12 03:59:41 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 6C62D1A0FEB3 for ; Sat, 12 Mar 2022 03:59: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 4KFpwH5CdKz3Llr for ; Sat, 12 Mar 2022 03:59:43 +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-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To: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=HPKq7gQ4kUc4iG31t6q2U+cq2X7Oc9dTIn8AG1js65U=; b=nkcaJo0snN6AOKFo4R/qdZXcGt BBq7PkdIYvDqqG8AepGSVM+yMArG37xw2bNoGEcTi7sOVR3sBhUIWV3d++R89Aq1nKflT1Z7cOcLr Fd3NmTUsYqKBO1HxArlZc3Lj4RfOJubUpP5GHk9hcvDRczycWjZmKNEopVyF84cGDYrFvhTpO3xwx MJ3tN3X28WNQ+bENJOqyY9E5NvrZuLtVpfvRf2kXFzqJc6xgIJMkC3BllfV95vF3Q+4l2gqAlu2Qa O+wYvHWYnNZ1yXj8Ulr/y4Ek8TYfnppS6pxf+vIzTfYBcTSyABaqpPK2H5P1yLJX6aSUl/d/5nPsP 2btnDM0w==; Received-SPF: pass (thebighonker.lerctr.org: domain of lerctr.org designates 2001:470:1f0f:3ad:bb:dcff:fe50:d900 as permitted sender) client-ip=2001:470:1f0f:3ad:bb:dcff:fe50:d900; envelope-from=ler@lerctr.org; helo=webmail.lerctr.org; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:bb:dcff:fe50:d900]:20096 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nSsur-000Mpf-Ae; Fri, 11 Mar 2022 21:59:41 -0600 Received: from 2600:1700:210:b18f:6187:1bb5:b26c:8ca2 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Fri, 11 Mar 2022 21:59:41 -0600 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 Date: Fri, 11 Mar 2022 21:59:41 -0600 From: Larry Rosenman To: Hajimu UMEMOTO Cc: Michael Sierchio , Freebsd net Subject: Re: IPv6: How does one have the system use a prefix gotten from rtsol with a static host part? In-Reply-To: <86fsnn6dwe.wl-ume@mahoroba.org> References: <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> <86h7836gy3.wl-ume@mahoroba.org> <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> <86fsnn6dwe.wl-ume@mahoroba.org> Message-ID: <17a0d48f56f6ba5da0ac055991b0a95c@lerctr.org> X-Sender: ler@lerctr.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KFpwH5CdKz3Llr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b=nkcaJo0s; 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.96 / 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)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; RCVD_COUNT_THREE(0.00)[3]; 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]; NEURAL_HAM_SHORT(-0.96)[-0.964]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8166, ipnet:192.147.25.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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="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. > >> ❯ ifconfig bce0 >> bce0: flags=8843 metric 0 mtu >> 1500 >> options=c01bb >> 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 autoconf >> media: Ethernet autoselect (1000baseT ) >> status: active >> nd6 options=3 >> >> grep bce0 /etc/rc.conf: >> ifconfig_bce0="inet 192.168.200.4/22 " >> ifconfig_bce0_alias0="inet 192.168.200.5/22 " >> ifconfig_bce0_ipv6="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="inet6 fe80::53:1 -auto_linklocal" > ifconfig_bce0_alias0="inet 192.168.200.4/22" > ifconfig_bce0_alias1="inet 192.168.200.5/22" > ifconfig_bce0_ipv6="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 -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106