Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2011 23:00:00 -0400
From:      "J. Hellenthal" <jhell@DataIX.net>
To:        Matt Smith <matt.xtaz@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: IPv6 policy based source routing
Message-ID:  <alpine.BSF.2.00.1103212253280.64958@qvfongpu.qngnvk.ybpny>
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

On Tue, 15 Mar 2011 10:37, matt.xtaz@ wrote:
> On 15 March 2011 11:39, Matt Smith <matt.xtaz@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1103212253280.64958>