From: "Adam Neat" Date: Sun, 24 Dec 2006 00:02:56 +0000 Subject: [LARTC] Question regarding Split Access description Message-Id: <200612240003.kBO0341c015159@saturn-ng2.iridiumhosting.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1647943546==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============1647943546== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F7_01C7274B.11066250" This is a multi-part message in MIME format. ------=_NextPart_000_00F7_01C7274B.11066250 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_00F7_01C7274B.11066250 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

 

I’m a big user of the LARTC document but am = currently stuck with a question around section 4.2 (http://la= rtc.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
 
 
 

 

 

 

 

 

 

 

 

 

 

------=_NextPart_000_00F7_01C7274B.11066250-- --===============1647943546== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1647943546==--