netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Load balancing across multiple PPP uplinks
@ 2008-10-30 19:34 Barry A Rich
  0 siblings, 0 replies; only message in thread
From: Barry A Rich @ 2008-10-30 19:34 UTC (permalink / raw)
  To: netfilter

I've successfully configured load balancing across multiple Ethernet
uplinks. The setup is as follows:

Uplinks:
 eth1: net=192.168.1.0/24, IP=192.168.1.130, Gateway=192.168.1.1
 eth2: net=192.168.2.0/24, IP=192.168.2.131, Gateway=192.168.2.1

Routing:
 ip route add 192.168.1.0 dev eth1 src 192.168.1.130 table uplink1
 ip route add default via 192.168.1.1 table uplink1

 ip route add 192.168.2.0 dev eth2 src 192.168.2.131 table uplink2
 ip route add default via 192.168.2.1 table uplink2

 ip route add 192.168.1.0 dev eth1 src 192.168.1.130
 ip route add 192.168.2.0 dev eth2 src 192.168.2.131

 ip rule add from 192.168.1.130 table uplink1
 ip rule add from 192.168.2.131 table uplink2

 ip route add default scope global \
  nexthop via 192.168.1.1 dev eth1 weight 1 \
  nexthop via 192.168.2.1 dev eth2 weight 1

I've tried to change the routing to use two PPP uplinks as follows:

Uplinks:
 ppp0: IP=174.150.202.179, P-t-P=68.28.241.69
 ppp1: IP=70.11.196.32, P-t-P=68.28.249.69

Routing for:
 ip route add 68.28.241.69 dev ppp0 table uplink1
 ip route add default via 174.150.202.179 table uplink1

 ip route add 68.28.249.69 dev ppp1 table uplink2
 ip route add default via 70.11.196.32 table uplink2

 ip route add 68.28.241.69 dev ppp0 src 174.150.202.179 *
 ip route add 68.28.249.69 dev ppp1 src 70.11.196.32 *

 ip rule add from 174.150.202.179 table uplink1
 ip rule add from 70.11.196.32 table uplink2

 ip route add default scope global \
  nexthop via 68.28.241.69 dev ppp0 weight 1 \
  nexthop via 68.28.249.69 dev ppp1 weight 1

* These commands cause the following error: "RTNETLINK answers: File
exists".

I'm look for advice on what's wrong with the new setup for PPP devices.

Thanks in advance.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-30 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 19:34 Load balancing across multiple PPP uplinks Barry A Rich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).