Re: [LARTC] route with different metric

Linux Advanced Routing and Traffic Control

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

 



Juri Haberland wrote:
> 
> bert hubert wrote:
> >

> > There are more interesting solutions but they are not easy. There is
> > something called 'dead gateway detection'. You may experiment with:
> >
> > # ip route add default nexthop 1.2.3.4 dev ppp0 nexthop 4.3.2.1 dev eth1
> 
> The syntax is:
> ip route add default nexthop via 1.2.3.4 dev ppp0 nexthop via 4.3.2.1
> dev eth1
> 
> > If that works as intended, please let us know!
> 
> I just tried and it does some funny things - still investigating...

Ok, seems to work, but it looks like you have to have the default routes
in the order of the interfaces, e.g.:
eth0: 10.0.1.2 (/24)
eth1: 10.0.2.2 (/24)
ip route add default nexthop via 10.0.1.1 dev eth0 nexthop via 10.0.2.1
dev eth1

Cheers,
Juri

-- 
  If each of us have one object, and we exchange them,
     then each of us still has one object.
  If each of us have one idea,   and we exchange them,
     then each of us now has two ideas.



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux