[clug] TCP Source Address

Brett Worth brettw at cray.com
Fri Oct 17 15:05:23 EST 2003


When a TCP connection is established how is the source IP address
determined?

I have a machine (A) that has an ethernet interface eth0 and that 
same interface also has an alias eth0:1

When I connect from A to a another machine (B) and do a 'who am i' 
I randomly see either the eth0 address or the eth0:1 alias.

A netstat -r shows only the eth0 and lo Iface's and not the alias.

I dont really want the alias to ever be the source address.  Is there
some way to hard wire this?

Brett




More information about the linux mailing list