IPv6 policy based source routing

Hajimu UMEMOTO ume at freebsd.org
Tue Mar 22 17:17:02 UTC 2011


Hi,

>>>>> On Tue, 15 Mar 2011 14:37:20 +0000
>>>>> Matt Smith <matt.xtaz at 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 at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-net mailing list