ahorn Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/99518683941869671a8800.jpg)
Joined: 01 Nov 2004 Posts: 366 Location: Ol' europe
|
Posted: Thu Aug 14, 2008 7:47 am Post subject: multipath routing, some sites/downloads not working |
|
|
hi forum,
i use multipath routing with the following layout:
2 dsl gateways (192.168.0.2/24 and 192.168.1.2/24),
a gentoo router with 3 nics (192.168.0.254/24, 192.168.1.254/24 and 10.0.0.254/24)
and clients connect to device 10.0.0.254/24 (eth0)
with these settings:
Code: | ip route add 192.168.1.0/24 dev eth2 src 192.168.1.254 table T1
ip route add default via 192.168.1.2 table T1
ip route add 192.168.0.0/24 dev eth1 src 192.168.0.254 table T2
ip route add default via 192.168.0.2 table T2
ip route add 192.168.1.0/24 dev eth2 src 192.168.1.254
ip route add 192.168.0.0/24 dev eth1 src 192.168.0.254
#subnets
ip route add 10.0.0.0/24 dev eth0 table T1
ip route add 192.168.1.0/24 dev eth2 table T1
ip route add 127.0.0.0/8 dev lo table T1
ip route add 10.0.0.0/24 dev eth0 table T2
ip route add 192.168.0.0/24 dev eth2 table T2
ip route add 127.0.0.0/8 dev lo table T2
#default routes
ip rule add from 192.168.1.254 table T1
ip rule add from 192.168.0.254 table T2
#balancing rule
ip route add default scope global nexthop via 192.168.1.2 dev eth2 weight 1 nexthop via 192.168.0.2 dev eth1 weight 1
echo 1 > /proc/sys/net/ipv4/ip_forward
|
it seems to work fine. i used iptraf -g on the router to record the balancing over the gateways and yes it's a 50/50 balancing like i want. but there's a big problem: some sites (exp.: live.maps.com) and many downloads doesn't load complete at the clients in 10.0.0.0/24. also my ssh remote session at the client disconnects randomly (at router, it works). it feels like the route is changing for established connections. so what i am missing in the setup?
thanks for any help. ahorn. _________________ Too many connections. Please try again later. |
|