Question regarding Split Access description

Linux Advanced Routing and Traffic Control

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

 



Hi All,

 

I’m a big user of the LARTC document but am currently stuck with a question around section 4.2 (http://lartc.org/howto/lartc.rpdb.multiple-links.html) in relation to “Routing for multiple uplinks/providers”. 

 

I’m wanting to do a similar setup to the diagram where I have – lets just say for the moment – two uplink providers where I want to route over two SHDSL lines for performance and availability. I have two separate IP ranges; one from each, and I plan to give key servers on the Local Network two IPs.

 

In your example your ip route commands are inferring one router – if I had two routers, one connected to each of the two providers, are those setup commands applicable, by changing the destination values to be the internet Ethernet interface of the other router for the other link? Eg:

 

Router 1 – Provider 1:
 
          ip route add $P1_NET dev $IF1 src $IP1 table T1
          ip route add default via $P1 table T1
          ip route add $P2_NET gw $RTR2 src $IP2 table T2
          ip route add default via $P1
 
          ip rule add from $IP1 table T1
          ip rule add from $IP2 table T2
 
          ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
            nexthop via $P2 gw $RTR2 weight 1
 
 
 
Router 2 – Provider 2:
          ip route add $P2_NET dev $IF2 src $IP2 table T2
          ip route add default via $P2 table T2
          ip route add $P1_NET gw $RTR1 src $IP1 table T2
          ip route add default via $P2
 
          ip rule add from $IP1 table T1
          ip rule add from $IP2 table T2
 
          ip route add default scope global nexthop via $P2 dev $IF1 weight 1 \
            nexthop via $P1 gw $RTR1 weight 1
 
 
 
Then for each machine on the network, would I give them two default routes (one to each gw) or?
 
I can’t seem to get my head around how this should work and I’m low on spare lab machines to test this out.
 
Appreciate any guidance,
 
Season Greetings and Regards
 
Adam
 
 
 

 

 

 

 

 

 

 

 

 

 

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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