Re: [LARTC] Backup Route

Linux Advanced Routing and Traffic Control

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

 



Emmanuel Fuste wrote:
> 
> Mike Fedyk wrote:
> >
> > bert hubert wrote:
> > > Linux has a thing called 'dead gateway detection', which might work for you.
> > > Just make two routes with a different metric, should work I think.
> > >
> > > Existing sessions will die however because their source IP address is
> > > unroutable.
> >
> > I'm not sure that is working correctly.  I have two DSLs to the internet with
> > different IP addresses, speeds and ISPs.
> >
> > DSL1: 63.194.. 384Kb/sec X 1.5-6Mb/sec ADSL on eth1 via pacbell
> > DSL2: 64.63.. is 768Kb/sec SDSL on eth2 via lmki
> >
> > Test:
> > ping yahoo site through DSL1
> > unplug phone line from bridge on DSL1
> > ip route flush table cache
> > ping yahoo site --- No response
> > tracepath yahoo site  --- Still trying to use DSL1
> >
> > That isn't working.
> >
> > Here's my setup:
> > $ ip route
> > 10.1.1.1 dev eth2  scope link  src 10.1.1.2
> > 10.0.0.0/24 dev eth0  scope link  src 10.0.0.1
> > 127.0.0.0/8 dev lo  scope link
> > default
> >         nexthop via 63.194.239.201  dev eth1 weight 99
> >         nexthop via 10.1.1.1  dev eth2 weight 1
> >
> For the default route, try:
> ip route add default via 63.194.239.201  dev eth1
> ip route add default via 10.1.1.1  dev eth2 metric 10
> 
> But you will loose the load balancing behaviour.
> 
>         Emmanuel.

I am not running any kind of routing daemon, is this required for this to work? 
Maybe rdisc?

The problem I'm having is having a dsl go down suddenly, and switching over to
another for outbound traffic for our network.

I run a ping and unplug the phone from the dsl bridge.  This is how it would go
down in a real situation.  The ping stops.  I "ip ro f t cache", but still
nothing.  I turn off the dsl bridge, and still nothing.  The only thing that
I've tried that works is "ip link set eth1 down".  It seems that I need an
active status monitoring system.

Here's my setup:

root@xxxxxxx:/etc/init.d$ ip ro
63.194.239.201 dev eth1  scope link  src 63.194.239.202
10.1.1.1 dev eth2  scope link  src 10.1.1.2
10.0.0.0/24 dev eth0  scope link
127.0.0.0/8 dev lo  scope link
default via 63.194.239.201 dev eth1
default via 10.1.1.1 dev eth2  metric 2

root@xxxxxxx:/etc/init.d$ ip ru
0:      from all lookup local
32760:  from 10.1.1.2 lookup 20
32761:  from 63.194.239.202 lookup 10
32766:  from all lookup main
32767:  from all lookup default

root@xxxxxxx:/etc/init.d$ ip ro s t 10
63.194.239.201 dev eth1  scope link  src 63.194.239.202
10.0.0.0/24 dev eth0  scope link
default via 63.194.239.201 dev eth1

root@xxxxxxx:/etc/init.d$ ip ro s t 20
10.1.1.1 dev eth2  scope link  src 10.1.1.2
default via 10.1.1.1 dev eth2



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