[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Source address selection: "preferred_lft=0" or "ip addrlabel"?



Hallo

On a web server which has several IPv6 adresses on one interface it's
desirable to configure the one that's used for outgoing connections.

Without explicit configuration the RFC 3484 algorithm falls through and
the Linux default is to use the last added address. A "secondary" attribute
like in IPv4 is absent in the "/bin/ip" command.

Now there seems to be two proposals:

1. Use preferred_lft=0 to mark all secondary addresses as "obsolet but still
   valid". Does work and is easily visable with "ip addr" but it seems to me
   like a misusage of the "lifetime" attribute. 
   More details:
   http://www.davidc.net/networking/ipv6-source-address-selection-linux

2. Use address labels. Does work as well but to view the current
   configuration you have to know about the "ip addrlabel" command and
   moreover understand its concept.
   More details:
   http://linux-hacks.blogspot.com/2008/04/default-address-selection-part-1.html

What would you recommend?

tschüss,

-christian-


Reply to: