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

Re: Multi WAN Routing



On Thu, Aug 22, 2013 at 12:11:38PM +0200, basti wrote:
>  Hallo,
> 
>  i will try a Multi-WAN-Routing.
> 
>  It look like:
> 
>  LAN -- Router (Debian squeeze) -- ISP Line 1
>                             |----- ISP Line 2
> 
>  The ISP- Ip's are static.
> 
>  Here some links i have found:
> 
>  [1]http://www.debian-administration.org/article/377/Routing_for_multiple_uplinks
>  [2]http://code.google.com/p/muggles/
>  [3]http://lartc.org/howto/lartc.rpdb.multiple-links.html
> 
>  [4]http://maltekueppers.de/wp/?p=1346
>  [5]http://maltekueppers.de/wp/?p=1363
> 
>  At the moment my routing table looks like:
>  rtr-0002:/var/log# route -n
>  Kernel-IP-Routentabelle
>  Ziel            Router          Genmask         Flags Metric Ref    Use
>  Iface
>  217.0.111.222   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
>  192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
>  0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
>  rtr-0002:/var/log#
>  rtr-0002:/var/log# ip route show
>  217.0.111.222 dev ppp0  proto kernel  scope link  src 111.222.333.444
>  192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
>  default dev ppp0  scope link
>  rtr-0002:/var/log#
>  rtr-0002:/var/log# ifconfig ppp0
>  ppp0      Link encap:Punkt-zu-Punkt-Verbindung
>            inet Adresse:111.222.333.444  P-z-P:217.0.111.222 Maske:255.255.255.255
>            UP PUNKTZUPUNKT RUNNING NOARP MULTICAST  MTU:1492  Metrik:1
>            RX packets:2885981 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:2125651 errors:0 dropped:0 overruns:0 carrier:0
>            Kollisionen:0 Sendewarteschlangenlänge:3
>            RX bytes:2957960607 (2.7 GiB)  TX bytes:347600931 (331.4 MiB)
> 
>  nx4-rtr-0002:/var/log#
> 
>  At the moment I use ppp (pon/poff) dail up.
>  Not clear thinks are:
> 
>  - how do 2 PPPoE connections at the same time?

Add another PPP provider (/etc/ppp/providers, I think). You can then
call "pon ISP1" and "pon ISP2" (or however you call them).

>  - where do I place the code for multiple routing
>    (ip route add default scope global nexthop via 1.0.0.2 dev eth1 weight 1 nexthop via 2.0.0.2 eth2 weight 1)

Probably the best place would be in a new script in /etc/ppp/ip-up.d/
That way it the routing table is adjusted only when the connection comes
up. You should look at the documentation on the scripts there,
especially if you want to be able to adapt to only using one ISP (for
example, it should be possible for the script to know WHICH ISP just
came up and adjust accordingly)

>  - did this setup runing with SSL or SSH connections? (while the connection is keep alive they must use the same route i think?)

Yes. The routing is done one a per-connection basis.
> 

Attachment: signature.asc
Description: Digital signature


Reply to: