From owner-freebsd-net@freebsd.org Thu Oct 18 15:56:08 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A51610E0264 for ; Thu, 18 Oct 2018 15:56:08 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0101C71128 for ; Thu, 18 Oct 2018 15:56:07 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from vas by admin.sibptus.ru with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gDAec-000N92-3B; Thu, 18 Oct 2018 22:56:06 +0700 Date: Thu, 18 Oct 2018 22:56:06 +0700 From: Victor Sudakov To: "Andrey V. Elsukov" Cc: freebsd-net@freebsd.org, Victor Sudakov Subject: Re: get rid of the eui64 address Message-ID: <20181018155606.GA87405@admin.sibptus.ru> References: <20181017094554.GA65055@admin.sibptus.ru> <4b2d7329-e1e0-e8dc-4b25-6c8823a9fdd1@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b2d7329-e1e0-e8dc-4b25-6c8823a9fdd1@yandex.ru> X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Victor Sudakov X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 15:56:08 -0000 Andrey V. Elsukov wrote: > > > > I have a static IPv6 address configured on a host. However, an > > autoconfigured eui64 address keeps popping up even if I delete it > > manually. It's marked by the "autoconf" flag in the ifconfig output. > > > > Can I get rid of the autoconf'ed address for good, but still keep the > > rtsold running (for the sake of the default gateway)? > > > > Or should I leave it alone? I just want to make sure that the static > > IPv6 address is used for outgoing connections. > > You can use prefer_source flag for your static address, and for most > cases it will be chosen by IPv6 SAS algorithm (if it is from the same > prefix as autoconfigured one). Thank you Andrey, you made my day! I'm beginning to love IPv6 more and more. How would the prefer_source flag look like in rc.conf? Is the following approach correct: ifconfig_fxp0_ipv6="inet6 accept_rtadv" ifconfig_fxp0_alias0="inet6 2001:19f0:8001:1219::10 prefer_source" -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/