multihomed box

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Jan 4 22:10:10 UTC 2006


On Wed, Jan 04, 2006 at 05:09:45PM +0800, JM wrote:
> 	I have a linux with 1 NIC card with 5 IPs
> 
> 	eth0, eth0:0, etc..
> 
> 	a client gave us an API that connects to a server w/c uses eth0's IP.  Im 
> wondering if I can use eth0:0's IP when it connects to the server... 

Outgoing traffic uses the default IP set for the route used to go out.
You can change that if you want with iproute2 (ip blah blah command).

More fancy stuff can be done with iproute2 and using iptables to mark
certain packets to control the ip and route based on packet marking.

It is also possible for an application to bind to an IP or specify which
IP to use when sending.  Most don't and hence get whatever the system
default is.

Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list