[wellylug] Sending traffic to a virtual interface
Nic Cave-Lynch
nic at tymar.com
Mon Jun 26 19:10:44 NZST 2006
Adding a route to the desired host using the IP address of the aliased interface
might work. I can't remember the syntax, but it's something like:
route add -host xx.yy.zz.ww dev eth0:0
I have a feeling this won't always work. I think I've tried it to get ssh to use
a specific source address when communicating with a particular host, and it
didn't work. But I might have a faulty memory. Actually, I know I have a faulty
memory...
Nic
Cliff Pratt wrote:
>
> How do you make an application use a particular interface to connect to
> a particular IP address?
>
> I have a machine with interfaces eth0, eth0:0, eth0:1, etc. I want
> application A to use interface eth0:0 and not eth0 to communicate with
> IP address xx.yy.zz.ww. There's no way to configure the application
> itself to use a particular interface. Just the IP address.
>
> I've a feeling that the answer is obvious....
>
> Cheers,
>
> Cliff
>
More information about the wellylug
mailing list