[wellylug] Sending traffic to a virtual interface
Cliff Pratt
enkidu at cliffp.com
Thu Jun 29 19:45:59 NZST 2006
michael at diaspora.gen.nz wrote:
> Cliff Pratt writes:
>
>>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.
>
> The "ip" command is useful for this. For example:
>
> ip route add to x.y.z.w/32 src a.b.c.d dev eth0
>
> Or:
>
> ip route add to x.y.z.w via $router src a.b.c.d
>
> Both should work, although ISTR that I used the second form more often...
> -- michael.
>
Thanks, this was what I needed. Worked OK first time, but in my testing
with telnet I used the wrong port number. Duh! THAT caused a bit of
noggin scratching!!
Cheers,
Cliff
--
http://barzoomian.blogspot.com
More information about the wellylug
mailing list