Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2011 02:16:53 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        Matt Smith <matt.xtaz@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: IPv6 policy based source routing
Message-ID:  <ygewrjr13ei.wl%ume@mahoroba.org>
In-Reply-To: <AANLkTimZ7CWWnJMOECEFvjDUVWxqX94fqZg9pvQhiYPL@mail.gmail.com>
References:  <AANLkTi=BOnUbfnmiqgaKj6jzyLjbKMedENbQBvYm_8Rj@mail.gmail.com> <AANLkTimZ7CWWnJMOECEFvjDUVWxqX94fqZg9pvQhiYPL@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Tue, 15 Mar 2011 14:37:20 +0000
>>>>> Matt Smith <matt.xtaz@gmail.com> said:

matt> I have been doing some more research into this and it appears the
matt> proper way to accomplish what I want is to set
matt> net.inet6.ip6.use_deprecated to 0 and then deprecate the IPv6 address
matt> on the gif0 interface by setting the preferred lifetime to zero. This
matt> apparently makes the source address selection algorithm choose the
matt> alternative address on vr0. I can do the first part but I can't figure
matt> out how to do the second part. Any ideas surrounding this?

matt> The windows command to do this is: "netsh interface ipv6 set address
matt> IP6Tunnel <client endpoint IP> preferredlifetime=0s" so I need a
matt> FreeBSD equivalent of this command. Does such a thing exist? I've had
matt> a quick search through the ifconfig man page etc but nothing jumps out
matt> at me.

It's Rule 3 of RFC 3484 which avoids deprecated addresses.
If this solves your problem, you can do it by the following command:

	ifconfig gif0 inet6 <IPv6 ADDRESS> deprecated

Please note that you don't need to set net.inet6.ip6.use_deprecated to
0 for this purpose.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygewrjr13ei.wl%ume>