Re: [LARTC] 2 gateway on linux

Linux Advanced Routing and Traffic Control

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

 



Hello Thomas,

 : > There are two different types of solutions.  If you can describe which
 : > type of traffic you wish to send to which ISP, you can use multiple
 : > uplinks without load sharing [1].  If you wish to use load sharing, then
 : > you'll need to look at the nano HOWTO [2].
 :
 : In a near furture I will try solution 2. I have the same setup where
 : connection 1 is connected to a adsl and connection 2 is a wireless
 : link from headquarters to servercamp. Now the question is would it be
 : possible to do loadbalancing with failover on those 2 connections and
 : set a routingpolicy that will route all traffic to servercamp iprange
 : over the wireless link at the same time?

Yes.  It should be trivial to force all connections to servercamp over the
wireless link....  I assume that $ADSL is your ADSL gateway, and $WIRELESS
is your wireless gateway:

Your default route will look something like this:

  ip route add default nexthop via $WIRELESS nexthop via $ADSL equalize

Your route to servercamp will look something like this:

  ip route add $servercamp via $WIRELESS

Any networks you wish to force over the wireless link should be specified
in the routing table explicitly.  Linux will always choose the most
specific route available.  For a description of the route selection
process, see

  http://linux-ip.net/html/routing-selection.html

Good luck,

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@xxxxxxxxxxxxxx



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