[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multiple default gateways



On 11:48 Tue 22 Nov     , James Ireson wrote:
> Hi,
> 
> I'm trying to setup my network with multiple default gateways from a
> debian linux box running 2.6.11.10.
> 
> I've read lartc.org/howto/lartc.rpdb.multiple-links.html and understand
> about setting up the routes for each interface in separate routing
> tables.
> 
> I have added the table names into my rp_tables file and ip route show
> table demon/ rednet shows that there's nothing in those tables.
> 
> However when I try an add a route into the tables it accepts my command,
> ip route add 213.246.137.16/30 dev eth3 src 213.246.137.18 table rednet
> 
> , but it gets added into the main routing table.
> 
First add a rule with 'ip rule' to select some packets that do a rednet table lookup.
Then run 'ip rule list' to show the table list with rednet added.

Now you have to generate something in the rednet table with e.g.

ip route add  default via xxx.xxx.xxx.xxx dev ethX table rednet

and check it with:

ip route show table rednet

and finally: ip route flush cache




Reply to: