Ros 3.30 PCC多线负载均衡脚本脚本.doc

上传人:灯火****19 文档编号:135019625 上传时间:2020-06-11 格式:DOC 页数:8 大小:56.01KB
返回 下载 相关 举报
Ros 3.30 PCC多线负载均衡脚本脚本.doc_第1页
第1页 / 共8页
Ros 3.30 PCC多线负载均衡脚本脚本.doc_第2页
第2页 / 共8页
Ros 3.30 PCC多线负载均衡脚本脚本.doc_第3页
第3页 / 共8页
Ros 3.30 PCC多线负载均衡脚本脚本.doc_第4页
第4页 / 共8页
Ros 3.30 PCC多线负载均衡脚本脚本.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《Ros 3.30 PCC多线负载均衡脚本脚本.doc》由会员分享,可在线阅读,更多相关《Ros 3.30 PCC多线负载均衡脚本脚本.doc(8页珍藏版)》请在金锄头文库上搜索。

1、Ros 3.30 PCC双线负载均衡脚本脚本如下 /ip address add address=内网网关IP/内网子网掩码 interface=内网网卡名称 comment=D1CCC9F1B6E0CFDF504343BDC5B1BE526F73BCBCCAF5BDBBC1F7C8BAA3BA313032383732303538/ip dns set primary-dns=首选DNS secondary-dns=备用DNS allow-remote-requests=yes/interface pppoe-client add name=pppoe-out1 interface=外网网卡1

2、名称 user=PPPoE帐号1 password=密码1 add-default-route=no disabled=no/interface pppoe-client add name=pppoe-out2 interface=外网网卡2名称 user=PPPoE帐号2 password=密码2 add-default-route=no disabled=no/ip firewall mangleadd action=change-mss chain=forward comment=D1CCC9F1B6E0CFDF504343BDC5B1BE526F73BCBCCAF5BDBBC1F7C8

3、BAA3BA313032383732303538 disabled=no new-mss=1440 protocol=tcp tcp-flags=synadd action=mark-connection chain=input comment= disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yesadd action=mark-connection chain=input comment= disabled=no in-interface=pppoe-out2 new-c

4、onnection-mark=pppoe-out2_conn passthrough=yesadd action=mark-routing chain=output comment= connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yesadd action=mark-routing chain=output comment= connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-ou

5、t2 passthrough=yesadd action=mark-connection chain=prerouting comment= disabled=no dst-address-type=!local in-interface=ether1 new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=内网网断/内网子网掩码add action=mark-connection chain=prerouting comment=

6、disabled=no dst-address-type=!local in-interface=ether1 new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=内网网断/内网子网掩码add action=mark-routing chain=prerouting comment= connection-mark=pppoe-out1_conn disabled=no in-interface=ether1 new-routin

7、g-mark=to_pppoe-out1 passthrough=yes src-address=内网网断/内网子网掩码add action=mark-routing chain=prerouting comment= connection-mark=pppoe-out2_conn disabled=no in-interface=ether1 new-routing-mark=to_pppoe-out2 passthrough=yes src-address=内网网断/内网子网掩码/ip routeadd comment=1 disabled=no distance=1 dst-addres

8、s=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1 check-gateway=pingadd comment=2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2 check-gateway=pingadd check-gateway=ping comment=pppoe-out1 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe

9、-out1add check-gateway=ping comment=pppoe-out2 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out2/ip firewall natadd action=masquerade chain=srcnat comment=1 disabled=no out-interface=pppoe-out1add action=masquerade chain=srcnat comment=2 disabled=no out-interface=pppoe-out2Ros 3.30 PC

10、C三线负载均衡脚本脚本如下/ip address add address=内网网关IP/内网子网掩码 interface=内网网卡名称 comment=D1CCC9F1B6E0CFDF504343BDC5B1BE526F73BCBCCAF5BDBBC1F7C8BAA3BA313032383732303538/ip dns set primary-dns=首选DNS secondary-dns=备用DNS allow-remote-requests=yes/interface pppoe-client add name=pppoe-out1 interface=外网网卡1名称 user=PPPo

11、E帐号1 password=密码1 add-default-route=no disabled=no/interface pppoe-client add name=pppoe-out2 interface=外网网卡2名称 user=PPPoE帐号2 password=密码2 add-default-route=no disabled=no/interface pppoe-client add name=pppoe-out3 interface=外网网卡3名称 user=PPPoE帐号3 password=密码3 add-default-route=no disabled=no/ip fire

12、wall mangleadd action=change-mss chain=forward comment=D1CCC9F1B6E0CFDF504343BDC5B1BE526F73BCBCCAF5BDBBC1F7C8BAA3BA313032383732303538 disabled=no new-mss=1440 protocol=tcp tcp-flags=synadd action=mark-connection chain=input comment= disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_

13、conn passthrough=yesadd action=mark-connection chain=input comment= disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yesadd action=mark-connection chain=input comment= disabled=no in-interface=pppoe-out3 new-connection-mark=pppoe-out3_conn passthrough=yesadd action

14、=mark-routing chain=output comment= connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yesadd action=mark-routing chain=output comment= connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yesadd action=mark-routing chain=output c

15、omment= connection-mark=pppoe-out3_conn disabled=no new-routing-mark=to_pppoe-out3 passthrough=yesadd action=mark-connection chain=prerouting comment= disabled=no dst-address-type=!local in-interface=ether1 new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:3/0 src-address=内网网断/内网子网掩码add action=mark-connection chain=prerouting comment= disabled=no dst-address-type=!local in-interface=ether1 new-connection-mark=pppoe-out2_conn passthro

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号