Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multipath routing, some sites/downloads not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Thu Aug 14, 2008 7:47 am    Post subject: multipath routing, some sites/downloads not working Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum