IPv6 policy based source routing
Hajimu UMEMOTO
ume at freebsd.org
Tue Mar 22 16:46:29 UTC 2011
Hi,
>>>>> On Tue, 22 Mar 2011 09:19:55 +0000
>>>>> Matt Smith <matt.xtaz at gmail.com> said:
matt> This does indeed look like exactly what I was after however I can't
matt> seem to get it to do anything unless I'm using it wrong.
matt> root at tao[~]# ip6addrctl show
matt> Prefix Prec Label Use
matt> ::1/128 50 0 0
matt> ::/0 40 1 155126
matt> 2002::/16 30 2 0
matt> ::/96 20 3 0
matt> ::ffff:0.0.0.0/96 10 4 0
matt> The IP on vr0 is 2a01:348:294::1/64 and the IP on gif0 is
matt> 2a01:348:6:45c::2/128. Right now if I ping6 ipv6.google.com I get this
matt> PING6(56=40+8+8 bytes) 2a01:348:6:45c::2 --> 2a00:1450:8002::67 so
matt> it's sourcing traffic from the gif0 IP. I assume in that list the
matt> higher the precedence the higher the priority so I ran "ip6addrctl add
matt> 2a01:348:294::/64 45 5". This makes no difference. Traffic still comes
matt> from the gif0 IP.
matt> I also tried adding the gif0 prefix with "ip6addrctl add
matt> 2a01:348:6:45c::2/128 44 6" to make it lower but same effect. In case
matt> I got the precedence the wrong way round I tried reversing it. Same
matt> effect.
matt> So I guess I'm not using it correctly. Can you enlighten me as to what
matt> I'm doing wrong with it?
Unfortunately, RFC 3484 doesn't work well for your situation because
of the existence of Rule 5 which prefers outgoing interface. This
rule is annoying for some situation such as BGP peering which requires
a global address to an interface.
I'm using the attached patches to ignore this rule, intentionally. It
breaks RFC 3484, though.
Sincerely,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_prefer_iface.diff
Type: text/x-patch
Size: 2793 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20110322/8a2c42f7/no_prefer_iface.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifconfig-no_prefer_iface.diff
Type: text/x-patch
Size: 1935 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20110322/8a2c42f7/ifconfig-no_prefer_iface.bin
-------------- next part --------------
--
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