From nobody Sat Mar 12 03:36:01 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 8CC6E1A0B441 for ; Sat, 12 Mar 2022 03:36:23 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) (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 (4096 bits) client-digest SHA256) (Client CN "asuka.mahoroba.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFpPJ4Ym6z3JMH for ; Sat, 12 Mar 2022 03:36:19 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from bodai.mahoroba.org (bodai.mahoroba.org [IPv6:2001:2f0:104:8010:14d6:e8cd:603d:d563]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.16.1/8.16.1) with ESMTPA/inet6 id 22C3a6P7015763; Sat, 12 Mar 2022 12:36:08 +0900 (JST) (envelope-from ume@mahoroba.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mahoroba.org; s=20081103; t=1647056168; bh=3XaUJ76IqYgT2vkhkD+nZP+51/K3vSxzu4A6oOHn6YE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=zGbCmzX40PP1uBtEJOSYz/v9XEl4oNcuV4dLondbe9rTA6lJpe5BPSMM9Z+V1eszH PBKWk60yCpeu0WYnFt2VPx44ypkgCpWM+TA2+6tagPVtXbtfxWYSuywGO4iN46pfD6 mfjA2DIdC9wSUHx4r6knkS9D5vpaEbzoWk488u+U= Date: Sat, 12 Mar 2022 12:36:01 +0900 Message-ID: <86fsnn6dwe.wl-ume@mahoroba.org> From: Hajimu UMEMOTO To: Larry Rosenman 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: <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> References: <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> <86h7836gy3.wl-ume@mahoroba.org> <4bc6f392a1d903aeb29c8e7886761da4@lerctr.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) X-PGP-Key: http://www.mahoroba.org/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE 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 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (mail.mahoroba.org [IPv6:2001:2f0:104:8010:0:0:0:1]); Sat, 12 Mar 2022 12:36:08 +0900 (JST) X-Virus-Scanned: clamav-milter 0.104.2 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on asuka.mahoroba.org X-Rspamd-Queue-Id: 4KFpPJ4Ym6z3JMH X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mahoroba.org header.s=20081103 header.b=zGbCmzX4; dmarc=none; spf=pass (mx1.freebsd.org: domain of ume@mahoroba.org designates 2001:2f0:104:8010::1 as permitted sender) smtp.mailfrom=ume@mahoroba.org X-Spamd-Result: default: False [-1.47 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[mahoroba.org:s=20081103]; FREEFALL_USER(0.00)[ume]; 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]; DMARC_NA(0.00)[mahoroba.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.972]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[mahoroba.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; 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:7514, ipnet:2001:2f0::/32, country:JP]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hi, On Sat, 12 Mar 2022 20:47:10 +0900, Larry Rosenman wrote: > > Something like this should work for you: > >=20 > > ifconfig_eth0_ipv6=3D"inet6 fe80::53:1 -auto_linklocal accept_rtadv" >=20 > 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 mtu > 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 autoconf > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=3D3 >=20 > 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" Sincerely, -- Hajimu UMEMOTO ume@mahoroba.org ume@FreeBSD.org http://www.mahoroba.org/~ume/