IPv6 policy based source routing

J. Hellenthal jhell at DataIX.net
Tue Mar 22 03:30:59 UTC 2011


On Tue, 15 Mar 2011 10:37, matt.xtaz@ wrote:
> On 15 March 2011 11:39, Matt Smith <matt.xtaz at gmail.com> wrote:
>>
>> Hi, I have a question about source routing I hope you can help me with.
>
> I have been doing some more research into this and it appears the
> proper way to accomplish what I want is to set
> net.inet6.ip6.use_deprecated to 0 and then deprecate the IPv6 address
> on the gif0 interface by setting the preferred lifetime to zero. This
> apparently makes the source address selection algorithm choose the
> alternative address on vr0. I can do the first part but I can't figure
> out how to do the second part. Any ideas surrounding this?
>
> The windows command to do this is: "netsh interface ipv6 set address
> IP6Tunnel <client endpoint IP> preferredlifetime=0s" so I need a
> FreeBSD equivalent of this command. Does such a thing exist? I've had
> a quick search through the ifconfig man page etc but nothing jumps out
> at me.
>

Hi Matt,

Unofficially not sure if you have already checked into this so I am not 
sure if it is really a solution to your problem but may be a step forward. 
Check out the man page for ip6addrctl(8) that allows you to set a 
precedence for each prefix/route. The default output of ip6addrctl(8) can 
be dumped into /etc/ip6addrctl.conf where it will also be parsed and 
restored upon reboot.

-- 

  Regards,

  J. Hellenthal
  (0x89D8547E)
  JJH48-ARIN



More information about the freebsd-net mailing list