Group: comp.os.linux.networking
From: Andy Furniss
Date: Sunday, April 13, 2008 5:32 PM
Subject: Re: Routing to multiple gateways from a single NIC

Eric B. wrote:

> I have already read through what seemed to be the relevant sections, but
> unfortunately, am no further ahead. Specifically, sections 3, 4 and 11, but
> from everything I read, they all seem to be pointing to configuration on a
> per device basis. Given that eth0:0 is only a virtual device,

I don't think you could even call it a virtual device. It's just the way
ifconfig let you add secondary addresses to nics. ip just uses what it
calls secondary addresses (though there is a way to add labels that look
like the ifconfig way IIRC)

> the ip tool
> doesn't seem to like it very much. From what I can tell, it seems as though
> I have to mark the packets on the way in from gw1 differently than those
> coming in from gw2, and then use the ip route to add different gateways
> based on the routing table, but again, I am having trouble understanding how
> to do this with a single device only.
>
> Any ideas?

I've never done anything like this. Have a look on

http://www.linux-ip.net

as an alternative to LARTC.

Andy.

Safety Articles | Usenet Groups | Usenet News | Bluegrass