From owner-freebsd-net@FreeBSD.ORG Mon Oct 14 20:58:25 2013 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 881794DF; Mon, 14 Oct 2013 20:58:25 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from nox.prolixium.com (nox.prolixium.com [IPv6:2001:48c8:1:104::1e]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5700727B8; Mon, 14 Oct 2013 20:58:25 +0000 (UTC) Received: from prox by nox.prolixium.com with local (Exim 4.80) (envelope-from ) id 1VVpDc-0001Re-8J; Mon, 14 Oct 2013 16:58:24 -0400 Date: Mon, 14 Oct 2013 16:58:24 -0400 From: Mark Kamichoff To: Hiroki Sato Subject: Re: IPv6 Source Address Selection in 9.x Message-ID: <20131014205824.GI25061@prolixium.com> References: <20131014203929.GG25061@prolixium.com> <20131015.054515.997515800600548642.hrs@allbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: <20131015.054515.997515800600548642.hrs@allbsd.org> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: prox@prolixium.com X-SA-Exim-Scanned: No (on nox.prolixium.com); SAEximRunCond expanded to false Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 20:58:25 -0000 --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 15, 2013 at 05:45:15AM +0900, Hiroki Sato wrote: > Try ip6addrctl_policy=3D"ipv6_prefer" in rc.conf. Excellent. Thank you. I glanced right over that in /etc/default/rc.conf. I just added the above line to /etc/rc.conf and ran /etc/rc.d/ip6addrctl start prefer_ipv6. Now, it works as expected: (dax:16:47)% telnet he.net. 80 Trying 2001:470:0:76::2... Connected to he.net. Escape character is '^]'. ^]^D telnet> Connection closed. It's my understanding that by leaving ip6addrctl_policy as AUTO will only prefer IPv6 if ipv6_enable_all_interfaces is set to YES, which it is in my /etc/rc.conf. However, it appears that this never resulted in ip6addrctl_prefer_ipv6 being called from /etc/rc.d/ip6addrctl. Maybe I'm reading this wrong ...=20 - Mark --=20 Mark Kamichoff prox@prolixium.com http://www.prolixium.com/ --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlJcWvAACgkQ0TYC9KtF8BNyoQCeMPQq12GTDu3SGvqX/STybLTU J84AnA3csDeq/gH5WvK3V1vsw2yRK3hi =VhWp -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--