From owner-freebsd-net@freebsd.org Tue Jul 7 22:59:35 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 40C0A34F9DF for ; Tue, 7 Jul 2020 22:59:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1dDR10FCz4DM9 for ; Tue, 7 Jul 2020 22:59:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 221D834F9DE; Tue, 7 Jul 2020 22:59:35 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 21E5634FA0A for ; Tue, 7 Jul 2020 22:59:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B1dDR05V5z4DJq; Tue, 7 Jul 2020 22:59:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from localhost (unknown [IPv6:2400:4051:a743:3c00:16:ceff:fe34:2700]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: hrs) by smtp.freebsd.org (Postfix) with ESMTPSA id 3C84C1123A; Tue, 7 Jul 2020 22:59:34 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Date: Wed, 08 Jul 2020 07:59:17 +0900 (JST) Message-Id: <20200708.075917.1804911690907828255.hrs@FreeBSD.org> To: zeising+freebsd@daemonic.se Cc: net@FreeBSD.org Subject: Re: Specifying link-local address in rc.conf From: Hiroki Sato In-Reply-To: References: <713e1f3e-4dd9-8dcf-c6d2-15c684bdce5b@daemonic.se> <20200707.190252.2262901305208864620.hrs@FreeBSD.org> X-Old-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-PGPkey-fingerprint: 6C0D 2353 27CF 80C7 901E FDD2 DBB0 7DC6 6F1F 737F X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="--Security_Multipart(Wed_Jul__8_07_59_17_2020_149)--" Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 22:59:35 -0000 ----Security_Multipart(Wed_Jul__8_07_59_17_2020_149)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Niclas Zeising wrote in : ze> On 2020-07-07 12:02, Hiroki Sato wrote: ze> > Niclas Zeising wrote ze> > in <713e1f3e-4dd9-8dcf-c6d2-15c684bdce5b@daemonic.se>: ze> > ze> Hi! ze> > ze> Is it possible to specify a link-local address in rc.conf, and get ze> > ze> only that link-local address? ze> > The following is a typical configuration if you want to disable ze> > EUI-64 LLA: ze> > ifconfig_vtnet0="inet ...." ze> > ifconfig_vtnet0_ipv6="inet6 -auto_linklocal" ze> > ifconfig_vtnet0_alias0="inet6 fe80::1/64" ze> > ifconfig_vtnet0_alias1="inet6 2001:6b8::1/64" ze> > Address family keyword is mandatory. Most of address configurations ze> > with no AF keyword are handled as expected, but some are not. ze> ze> Hi! ze> This example does not work, it generates a EUI64 link-local address on ze> vtnet0, and then adds the other IPv6 addresses. ze> It looks like anything that has ifconfig_vtnet0="inet ..." or even ze> just "up" generates the link_local address. Hmm, that's odd. Can you send me a log by the following command-line off-list? I will investigate the cause. # env -i rc_debug=YES /bin/sh -x /etc/rc.d/netif restart vtnet0 -- Hiroki ----Security_Multipart(Wed_Jul__8_07_59_17_2020_149)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iMoEABMKAC4WIQRsDSNTJ8+Ax5Ae/dLbsH3Gbx9zfwUCXwT+RRAcaHJzQGZyZWVi c2Qub3JnAAoJENuwfcZvH3N/XzwCCQF0SEveb1tEERDczhAzsmACbVg2IGlG/xRb 06Z1/MXb5XnJLwFaK1FRY8aDZB9LYMMb9H0w2W3DwLtvLJXepqdw/wIJAUEopkRU x1rs2Qd5HXuGABRWV2JRxYWj2OzyJOB/0VGLlVfpqN9d4fPhornXXJkSLwBIDrHv ttBWq6SEEYCPnpow =FfCh -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Jul__8_07_59_17_2020_149)----