From owner-freebsd-current@FreeBSD.ORG Sun Oct 16 19:42:53 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FC251065670; Sun, 16 Oct 2011 19:42:53 +0000 (UTC) (envelope-from thomas@gibfest.dk) Received: from mail.tyknet.dk (mail.tyknet.dk [IPv6:2a01:4f8:141:52a3:186::]) by mx1.freebsd.org (Postfix) with ESMTP id 1385E8FC13; Sun, 16 Oct 2011 19:42:53 +0000 (UTC) Received: from tykburk.tyknet.cn.dom (unknown [IPv6:2002:d947:452:1:224:8cff:fe02:de01]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.tyknet.dk (Postfix) with ESMTPSA id F12516F0E2; Sun, 16 Oct 2011 21:42:51 +0200 (CEST) X-DKIM: OpenDKIM Filter v2.4.1 mail.tyknet.dk F12516F0E2 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gibfest.dk; s=default; t=1318794172; bh=+AxU84ppyYgb0xpl3JhMBOPdT1u3Woa4Xxq+zy8Q/64=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qwnezFtU/kfauhBIf6EyKsp7byd0Hf/9Ef+2bUAJhz4y1x9c4S09vBno5OiEbVY/o BJS6z7ZsvWny3fXYgLnUNqwSOCRA6BAYEhxd8MmhgdGDZZ/IbM0oaA+WJT8TGZS/Sm KS3MppW9nqws5jwZ1dELYaLYyR34/puZaicRxFHI= Message-ID: <4E9B33BB.1010502@gibfest.dk> Date: Sun, 16 Oct 2011 21:42:51 +0200 From: Thomas Steen Rasmussen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111014 Thunderbird/7.0.1 MIME-Version: 1.0 To: Hiroki Sato References: <20111014.170911.2032702506326503484.hrs@allbsd.org> <4E97F236.8040203@gibfest.dk> <4E9AA874.5070403@gibfest.dk> <20111017.042931.2183544415814290707.hrs@allbsd.org> In-Reply-To: <20111017.042931.2183544415814290707.hrs@allbsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces="YES" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 19:42:53 -0000 On 16.10.2011 21:29, Hiroki Sato wrote: > Thomas Steen Rasmussen wrote > in <4E9AA874.5070403@gibfest.dk>: > > th> On 14.10.2011 10:26, Thomas Steen Rasmussen wrote: > th> > On 14-10-2011 10:09, Hiroki Sato wrote: > th> >> Thanks. There is no problem with the source address selection. > th> > th> I don't understand this comment. I would say that I do > th> have problems with the source address selection - > th> otherwise it would be preferring ipv6, right ? > > I mean the address selection is working properly. Your problem is > because the default ipv6_prefer policy prefers IPv4 addresses when > the source IPv6 addr is in 2002::/16, the destination IPv6 address is > not in the same prefix, and IPv4 addresses can be used for the both. > It is not a bug of the selection mechanism. > > The ipv6_prefer policy is defined in RFC 3484 2.1 and this policy > chooses a src IPv6 addr in 2002::/16 only if the dest addr is also in > the same prefix. You can remove the special rule for 2002::/16 by > putting the following lines as /etc/ip6addrctl.conf and reboot the > system: > > ::1/128 50 0 > ::/0 40 1 > #2002::/16 30 2 > ::/96 20 3 > ::ffff:0:0/96 10 4 > > By installing the above, IPv6 address will be preferred even if it is > in 2002::/16. Hello, I understand. Thank you for your time, and sorry for the noise. Best regards Thomas Steen Rasmussen