multihomed box

Jerome Macaranas jerome-mhXWc29+iYPyG1zEObXtfA at public.gmane.org
Fri Jan 6 03:35:51 UTC 2006


On Thursday 05 January 2006 6:10 am, Lennart Sorensen wrote:
> 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.
since the API's source is not available... ill try iproute2 ..

thanks,

>
> 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
--
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