Default ipv6 address
Shadow Hawkins on Sunday, 03 August 2008 04:33:03
Sorry if this has already been asked, but how do you set the default source address on a router? I delegated some /64's on my LAN, added addresses to ethX and the sixxs interfaces, but what I still haven't figured out is how to make the default source address one of those addresses, rather than the address of my tunnel endpoint.
Default ipv6 address
Shadow Hawkins on Sunday, 03 August 2008 05:29:18
I was going to say "see http://madduck.net/docs/ipv6/, which discusses this," but now I can't find it there... need to figure out where those edits went.
Basically, just add the same address you have on the LAN interface to the outgoing interface.
Default ipv6 address
Shadow Hawkins on Monday, 04 August 2008 01:25:46
Thanks for the answer and also for the link, it works just fine here and seems to be a good source of information.
I've added more addresses to the 'sixxs' interface. However when I for example do a traceroute6 it still chooses the tunnel IP rather than another.
Default ipv6 address
Shadow Hawkins on Wednesday, 06 August 2008 01:28:22
Can anyone provide a clue for me please?
Default ipv6 address
Shadow Hawkins on Wednesday, 06 August 2008 11:13:43
The first address you see in a traceroute output is the ingress interface of the first router. That will always be the other end of your tunnel regardless of your source address.
Use some service telling you your source address instead, like the sixxs.net web pages.
Bjørn
Default ipv6 address
Shadow Hawkins on Wednesday, 06 August 2008 07:20:09
You can't really set a default source address unless your application can bind to one explicitly. Source addresses are selected based on the routing prefix policy table in kernel. See RFC 3484. You need to add the tunnel end point address to your prefix policy table and give it a label value different than the label for the routing prefix for which you want to exclude the source address. This works in Linux, FreeBSD and Windows from my experience. You need to figure out how to do it on your device.
Default ipv6 address
Shadow Hawkins on Sunday, 17 August 2008 15:22:01
Thanks for the help, Karl and others. So as I understand it (I'm using linux), I need to read up about prefix policy tables. I'll do that. :)
Default ipv6 address
Shadow Hawkins on Monday, 18 August 2008 06:01:32
In some Linux distros it's implemented by configuration for the getaddrinfo() routine in /etc/gai.conf. If you're lucky you have a gai.conf(5) man page.
Typically you should put something like this in it:
label ::1/128 0
label ::/0 1
label 2002::/16 2
label ::/96 3
label ::ffff:0:0/96 4
precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 10
label 2001:XXXX:XXXX:XXXX::2/128 5
precedence 2001:XXXX:XXXX:XXXX::2/128 10
where the 2001:XXXX:XXXX:XXXX::2 address is your endpoint of your tunnel.
Posting is only allowed when you are logged in. |