Date: Sun, 16 Oct 2011 21:42:51 +0200 From: Thomas Steen Rasmussen <thomas@gibfest.dk> To: Hiroki Sato <hrs@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces="YES" Message-ID: <4E9B33BB.1010502@gibfest.dk> In-Reply-To: <20111017.042931.2183544415814290707.hrs@allbsd.org> References: <20111014.170911.2032702506326503484.hrs@allbsd.org> <4E97F236.8040203@gibfest.dk> <4E9AA874.5070403@gibfest.dk> <20111017.042931.2183544415814290707.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16.10.2011 21:29, Hiroki Sato wrote: > Thomas Steen Rasmussen <thomas@gibfest.dk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E9B33BB.1010502>