[wellylug] Sending traffic to a virtual interface

Mark Foster blakjak at blakjak.net
Mon Jun 26 20:58:25 NZST 2006


I was going to suggest use of routing tables too - but this isnt 
application specific, obviously. (And has overhead...)



On Mon, 26 Jun 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.
>
>
> -- 
> Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> To Leave:  http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>




More information about the wellylug mailing list