Date: Tue, 22 Mar 2011 09:19:55 +0000 From: Matt Smith <matt.xtaz@gmail.com> To: "J. Hellenthal" <jhell@dataix.net> Cc: freebsd-net@freebsd.org Subject: Re: IPv6 policy based source routing Message-ID: <AANLkTi==JD7-YkSb5_Ha9q_ucXPcUCaUhcsyMxqDReAU@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1103212253280.64958@qvfongpu.qngnvk.ybpny> References: <AANLkTi=BOnUbfnmiqgaKj6jzyLjbKMedENbQBvYm_8Rj@mail.gmail.com> <AANLkTimZ7CWWnJMOECEFvjDUVWxqX94fqZg9pvQhiYPL@mail.gmail.com> <alpine.BSF.2.00.1103212253280.64958@qvfongpu.qngnvk.ybpny>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22 March 2011 03:00, J. Hellenthal <jhell@dataix.net> wrote: > > Hi Matt, > > Unofficially not sure if you have already checked into this so I am not s= ure if it is really a solution to your problem but may be a step forward. C= heck 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 i= nto /etc/ip6addrctl.conf where it will also be parsed and restored upon reb= oot. > This does indeed look like exactly what I was after however I can't seem to get it to do anything unless I'm using it wrong. root@tao[~]# ip6addrctl show Prefix Prec Label Use ::1/128 50 0 0 ::/0 40 1 155126 2002::/16 30 2 0 ::/96 20 3 0 ::ffff:0.0.0.0/96 10 4 0 The IP on vr0 is 2a01:348:294::1/64 and the IP on gif0 is 2a01:348:6:45c::2/128. Right now if I ping6 ipv6.google.com I get this PING6(56=3D40+8+8 bytes) 2a01:348:6:45c::2 --> 2a00:1450:8002::67 so it's sourcing traffic from the gif0 IP. I assume in that list the higher the precedence the higher the priority so I ran "ip6addrctl add 2a01:348:294::/64 45 5". This makes no difference. Traffic still comes from the gif0 IP. I also tried adding the gif0 prefix with "ip6addrctl add 2a01:348:6:45c::2/128 44 6" to make it lower but same effect. In case I got the precedence the wrong way round I tried reversing it. Same effect. So I guess I'm not using it correctly. Can you enlighten me as to what I'm doing wrong with it? Matt.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi==JD7-YkSb5_Ha9q_ucXPcUCaUhcsyMxqDReAU>