[ILUG] Ubuntu networking questions

Colm MacCarthaigh colm at stdlib.net
Thu Feb 23 10:31:12 GMT 2006


On Thu, Feb 23, 2006 at 10:13:06AM +0000, Niall O Broin wrote:
> >There's no built in-way to add IPv4 addresses afaik, in IPv6 the 
> >sub-int addresses will be stacked on the primary one though. So you'd 
> >have to hack in a command to add it, be aware that this will seriously 
> >complicate default source-address selection though, which can be a 
> >pain.
> 
> Can you elaborate a little?

The algorithim Linux uses for choosing the default source address is a
bit mystical in that it can be non-deterministic and change between
kernel versions, driver versions, and more. Sometimes it's the most
recent address added to an interface, sometimes it's the first,
sometimes there is seemingly little logic to it at all. The only way
we've found to consistently convince Linux to use a predictable source
address for outgoing connections is to only have one address on its
primary logical interface.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list