|
做了负载平衡以后,局域网的用户频繁掉线。很着急,从ubuntu server换到debian系统以后问题依旧。
现在的内核是2.6.18的。用的是:
ip route replace default equalize nexthop via $PTP_IP0 dev ppp0 weight 1 nexthop via $PTP_IP1 dev ppp1 weight 1
这样的方式均衡的。用单独一条线就没有掉线的问题。
而且有个问题,两条线都拨通以后主机不能上网了。其他机器可以。
- Router:/etc/ppp# iptables -vnL -t nat
- Chain PREROUTING (policy ACCEPT 630K packets, 50M bytes)
- pkts bytes target prot opt in out source destination
- Chain POSTROUTING (policy ACCEPT 11562 packets, 838K bytes)
- pkts bytes target prot opt in out source destination
- 105K 6008K MASQUERADE 0 -- * * 192.168.1.0/24 0.0.0.0/0
- Chain OUTPUT (policy ACCEPT 10732 packets, 788K bytes)
- pkts bytes target prot opt in out source destination
复制代码
- Router:/etc/ppp# ip route list
- 218.86.198.1 dev ppp0 proto kernel scope link src 218.86.198.72
- 222.85.131.1 dev ppp1 proto kernel scope link src 220.172.38.122
- 172.16.243.0/24 dev vmnet8 proto kernel scope link src 172.16.243.1
- 192.168.86.0/24 dev vmnet1 proto kernel scope link src 192.168.86.1
- 10.0.0.0/24 dev eth2 proto kernel scope link src 10.0.0.1
- 10.0.0.0/24 dev eth3 proto kernel scope link src 10.0.0.2
- 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
- default equalize
- nexthop via 218.86.198.1 dev ppp0 weight 1
- nexthop via 222.85.131.1 dev ppp1 weight 1
复制代码
会不会跟系统的内核有关系啊。
来人帮忙看看吧,着急啊,一直没解决 |
|