找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3973|回复: 5

[负载平衡] 求助,三线负载均衡这样算做成功了吗?第一次

[复制链接]
发表于 2011-3-6 11:19:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
请看图,用虚拟机做的~~~静态IP模拟ADSL,如果可以了就实施了。。。。不是很明白。。。。因为我断了其中一根时,会有一段时间是断线的(即剩下两条线路不能马上起作用,要等一会。。。要加脚本?)

test.jpg
  1. /ip address add address=192.168.100.1/255.255.255.0 interface=LAN comment=lan
  2. /ip dns set primary-dns=202.96.134.133 secondary-dns=202.96.128.68 allow-remote-requests=yes
  3. /ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
  4. /ip address add address=10.0.0.1/255.255.255.0 interface=ADSL1 comment="1"
  5. /ip route add gateway=10.0.0.8 routing-mark=1 comment="1"
  6. /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no
  7. /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no
  8. /ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=10.0.0.1 to-ports=0-65535 comment="1" disabled=no
  9. /ip address add address=20.0.0.1/255.255.255.0 interface=ADSL2 comment="2"
  10. /ip route add gateway=20.0.0.8 routing-mark=2 comment="2"
  11. /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no
  12. /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no
  13. /ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=20.0.0.1 to-ports=0-65535 comment="2" disabled=no
  14. /ip address add address=30.0.0.1/255.255.255.0 interface=ADSL3 comment="3"
  15. /ip route add gateway=30.0.0.8 routing-mark=3 comment="3"
  16. /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,2 action=mark-connection new-connection-mark=3 passthrough=yes disabled=no
  17. /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=3 action=mark-routing new-routing-mark=3 passthrough=no disabled=no
  18. /ip firewall nat add chain=srcnat connection-mark=3 action=src-nat to-addresses=30.0.0.1 to-ports=0-65535 comment="3" disabled=no
复制代码
routeros
发表于 2011-3-6 12:05:28 | 显示全部楼层
本帖最后由 jt00278 于 2011-3-6 12:05 编辑

已经是成功了,就差没有线路切换而已,每条线都已经平均分配有流量了
routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-6 12:10:43 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2011-3-6 13:33:43 | 显示全部楼层
还用2.X那个版本是很难用的了,建议用3.30版本的PCC负载,里面有很多关于这个版本各方面的的贴子
routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-8 14:27:46 | 显示全部楼层
我想是不太成功。我知道原因,但说出来好难说明白。。。因为是虚拟机
routeros
回复

使用道具 举报

发表于 2011-3-8 15:15:11 | 显示全部楼层
    楼主先别急!如果是NTH的话,从数据包和流量看,并没有均!不过,我们可以测试一下!
  1.先做个压力测试!
  2.用户端,网页和PING值正常吗?
  2.关注网银成功了没有!
  3.其中线路断线,其实不用脚本也可以实现的!加了脚本反而要等30左右!
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-19 18:45 , Processed in 0.098929 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表