请教老大关于ROS3.3的3线ADSL的PCC负载问题,附我用的脚本,请老大指点迷津! (3019人路过)
01:34 , 引用(0) Via 本站原创
/interface pppoe-client enable pppoe-out2 /interface pppoe-client add name="pppoe-out3" interface=ether3 user="上网账号" password="账号密码" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out3 /interface pppoe-client add name="pppoe-out4" interface=ether4 user="上网账号" password="账号密码" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out4 /interface pppoe-client add name="pppoe-out5" interface=ether5 user="上网账号" password="账号密码" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out5 /interface pppoe-client add name="pppoe-out6" interface=ether6 user="上网账号" password="账号密码" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out6 /ip address add address=192.168.0.1/255.255.255.0 interface=lan comment=LAN
/ip dns set primary-dns=8.8.8.8 secondary-dns=8.8.4.4 allow-remote-requests=yes
/ip firewall mangle
add action=change-mss chain=forward comment="CHANGE MSS" disabled=no new-mss=1440 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-connection chain=input comment="" disabled=no in-interface=pppoe-out4 new-connection-mark=pppoe-out4_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out5 new-connection-mark=pppoe-out5_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out6 new-connection-mark=pppoe-out6_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-routing chain=output comment="" connection-mark=pppoe-out4_conn disabled=no new-routing-mark=to_pppoe-out4 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out5_conn disabled=no new-routing-mark=to_pppoe-out5 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out6_conn disabled=no new-routing-mark=to_pppoe-out6 passthrough=yes
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:6/0 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:6/1 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out3_conn passthrough=yes per-connection-classifier=both-addresses:6/2 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out4_conn passthrough=yes per-connection-classifier=both-addresses:6/3 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out5_conn passthrough=yes per-connection-classifier=both-addresses:6/4 src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=pppoe-out6_conn passthrough=yes per-connection-classifier=both-addresses:6/5 src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out1_conn disabled=no in-interface=lan 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 in-interface=lan 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 in-interface=lan new-routing-mark=to_pppoe-out3 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out4_conn disabled=no in-interface=lan new-routing-mark=to_pppoe-out4 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out5_conn disabled=no in-interface=lan new-routing-mark=to_pppoe-out5 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out6_conn disabled=no in-interface=lan new-routing-mark=to_pppoe-out6 passthrough=yes src-address=192.168.0.0/24
/ip route
add comment=1 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1 check-gateway=ping
add comment=2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2 check-gateway=ping
add comment=3 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_pppoe-out3 check-gateway=ping
add comment=4 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 routing-mark=to_pppoe-out4 check-gateway=ping
add comment=5 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out5 routing-mark=to_pppoe-out5 check-gateway=ping
add comment=6 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out6 routing-mark=to_pppoe-out6 check-gateway=ping
add check-gateway=ping comment="pppoe-out1" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out1
add check-gateway=ping comment="pppoe-out2" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out2
add check-gateway=ping comment="pppoe-out3" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out3
add check-gateway=ping comment="pppoe-out4" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out4
add check-gateway=ping comment="pppoe-out5" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out5
add check-gateway=ping comment="pppoe-out6" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out6
/ip firewall nat
add action=masquerade chain=srcnat comment="1" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="2" disabled=no out-interface=pppoe-out2
add action=masquerade chain=srcnat comment="3" disabled=no out-interface=pppoe-out3
add action=masquerade chain=srcnat comment="4" disabled=no out-interface=pppoe-out4
add action=masquerade chain=srcnat comment="5" disabled=no out-interface=pppoe-out5
add action=masquerade chain=srcnat comment="6" disabled=no out-interface=pppoe-out6
ROS更改网卡MAC地址
禁止 ROS WINBOX 通过 MAC 登录
ros+radiusmanager到期自动跳转到通知页面
分享Tomato DualWan使用ADSL的QOS设置
ROS 3.XX PPPOE到期自动禁用
ROS PPPOE服务器账号到期web提醒设置
ROS 3.0以上的版本hotspot功能都有问题!
ros自动arp绑定,并使用arp表初始化dhcp表
ros实验环境搭建与PCC+HTB+PCQ+NTH实践!
作者:77run@齐齐奔跑 -- 骑士威科技
地址:http://blog.77run.com/ROS-ADSL-PCC-pppoe/
版权所有©转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: 77run 编辑于2011/09/15 23:50
大 | 中 | 小 

