Re: two default routes

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

 



On 22 March 2010 10:35, ratheesh k <ratheesh.ksz@xxxxxxxxx> wrote:
> Hi ,
>
>  i have two default routes  , I used below two commands to add routes .
>
>  route add default gw 192.168.1.1  dev eth0 metric 0
>  route add default gw 10.232.18.5  dev eth1 metric 1
>

Without using rule based routing (part of iproute2) I don't believe
this will do anything - only one of the two default routes will ever
be used unless the eth0/eth1 interface itself changes to the down
state in which case its associated route should be removed.


-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux