ROS 4.1版本 三ADSL负载后加光纤怎么操作?
三ADSL负载完成(4.1版 PPC负载),测试可以正常工作,现在增加10M光纤,
负载的ADSL暂只用于80和21端但0点后光纤和其中一条ADSL要断网
余于的工作怎么完成? 没用过4。1 ROS4.1这个版本可是最新的。 跟nth没什么分别,换了个名字而已,会做nth的就会做pcc
光纤+ADSL的负载做好了。
现在就差端口分流和0点光纤中断后。取消端口分流了 昨天刚做了一个这个的,一个光纤2个adsl,是0点光纤断网,早上8点光纤来信号,自动切换 pcc可以实现不同带宽的负载均衡吗?谢谢 可以 昨天刚做了一个这个的,一个光纤2个adsl,是0点光纤断网,早上8点光纤来信号,自动切换
WGHBOY 发表于 2009-10-29 12:42 http://bbs.routerclub.com/images/common/back.gif
楼主估计跟我是同一个地方的网吧 :lol 测试脚本。 ADSL负载+光纤 正在测试端口分流
环境内网接口:local
外网接口1: wlan1网关IP:192.168.3.1
外网接口2: wlan2ADSL拨号pppoe-out1
外网接口3: wlan3ADSL拨号pppoe-out2
外网接口4: wlan4ADSL拨号pppoe-out3
/ ip address
add address=192.168.3.2/24 network=192.168.3.0 broadcast=192.168.3.255 interface=wlan1
/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wlan1
add chain=prerouting dst-address-type=!local in-interface=Local action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.3.1 distance=1 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade
/ip firewall mangle
add action=change-mss chain=forward comment="" disabled=no new-mss=1400 protocol=tcp tcp-flags=syn
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out3 new-connection-mark=pppoe-out3_conn passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out3_conn disabled=no new-routing-mark=to_pppoe-out3 passthrough=yes
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:3/0 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:3/1 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out3_conn passthrough=yes per-connection-classifier=both-addresses:3/2 src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out3_conn disabled=no new-routing-mark=to_pppoe-out3 passthrough=yes src-address=192.168.0.0/24
/ip route
add comment=adsl1 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1
add comment=adsl2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2
add comment=adsl3 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_pppoe-out3
add check-gateway=ping comment=adsl1 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out1
add check-gateway=ping comment=adsl2 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out2
add check-gateway=ping comment=adsl3 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out3
/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out2
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out3 回复 5# yaasp
光纤和adsl的带宽不一样,可以负载均衡吗?看了一下pcc,觉得和nth差不多,除了端口分流和ip分流的办法外,实在想不出是如何做到负载均衡的。 其实要求就是不要和光纤负载。。 光纤只负责 处80,21外的其他端口。
当晚上0点后,光纤断后,由于下的ADSL负载 来通宵营业
选择PPC的原因好像他自身就有端口回流,不会造成网银和QQ之类的网游断线
端口分流好像有点作用了。
页:
[1]