SixXS::Sunset 2017-06-06

[linux] How to manually add a deprecated address to an interface?
[pt] Shadow Hawkins on Sunday, 20 March 2005 20:19:37
I'm trying to make my linux host/router use the subnet address by default for outgoing connections instead of the tunnel address, mainly because of reverse DNS. I discovered that the source address selection algorithm always chooses 'preferred' addresses over 'deprecated' ones. So I figured the solution would be to make the tunnel address deprecated. However, the only mechanism I know of selecting the preferred lifetime of an address in linux is through radvd. I already checked google, the manpages of 'ip' and 'ifconfig', the IPv6 howto, but couldn't find any way of setting (or even checking) the 'preferred' lifetime of an address. (In Windows however, I believe it is possible) Does anyone know how I can do that? Or perhaps another way to make my host use the subnet address by default? The IPv6 default address selection RFC mentions an administrator policy for selecting addresses, but I don't know how to use that in Linux either.. :? Thanks in advance. :)
[linux] How to manually add a deprecated address to an interface?
[ch] Jeroen Massar SixXS Staff on Sunday, 20 March 2005 20:38:43
If you want to have a certain IP as the outgoing address, always, then there is a small trick you can use on Linux. Just add it to the tunnel interface as a /128. eg on my purgatory.unfix.org box, I have a: ip -6 addr add 2001:7b8:300::290:27ff:fe24:c19f/128 dev sixxs Use your own IP in your spot of course ;) The above IP is also present on eth0 of that machine, the above trick apparently causes linux to have that address as the last 'preferred' address and thus it uses that, be warned that if you use add another address later on that will become the 'default'. They really should be implementing source routing policies, or better a 'loopback' mechanism, though that can then be easily created.
[linux] How to manually add a deprecated address to an interface?
[de] Shadow Hawkins on Monday, 23 January 2006 06:27:34
heh, cool using this is much more easier than settung up radvd thanks for the 'trick' sincerly martin

Please note Posting is only allowed when you are logged in.

Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker