找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 111191|回复: 509

[负载平衡] 双动态电信ADSL在ROS3.30上做PCC+叠加

  [复制链接]
发表于 2010-6-23 21:34:28 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 zooyo 于 2011-2-9 20:26 编辑

刚刚客人要求做了个双动态电信ADSL在ros3.30上做PCC+叠加
PPC.jpg

/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 primary-dns=\
    202.96.128.166 secondary-dns=202.96.134.133
/ip firewall mangle
add action=change-mss chain=forward comment="" disabled=no new-mss=1440 protocol=tcp tcp-flags=syn
add action=mark-connection chain=prerouting comment="" disabled=no new-connection-mark=1 passthrough=yes \
    per-connection-classifier=both-addresses:2/0 src-address=28.88.168.0/24
add action=mark-connection chain=prerouting comment="" disabled=no new-connection-mark=2 passthrough=yes \
    per-connection-classifier=both-addresses:2/1 src-address=28.88.168.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=1 disabled=no new-routing-mark=1 \
    passthrough=yes src-address=28.88.168.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=2 disabled=no new-routing-mark=2 \
    passthrough=yes src-address=28.88.168.0/24
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=443,8443 new-routing-mark=\
    "\CD\F8\D2\F8" passthrough=no protocol=tcp src-address=28.88.168.0/24
/ip firewall nat
add action=src-nat chain=srcnat comment=1 connection-mark=1 disabled=no out-interface=pppoe-out1 src-address=\
    28.88.168.0/24 to-addresses=121.32.144.8
add action=src-nat chain=srcnat comment=2 connection-mark=2 disabled=no out-interface=pppoe-out2 src-address=\
    28.88.168.0/24 to-addresses=113.64.57.46

/ip route
add comment=1 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=218.19.168.1 routing-mark=1 scope=30 \
    target-scope=10
add comment=2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=113.64.56.1 routing-mark=2 scope=30 \
    target-scope=10
add comment=3 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=113.64.56.1 routing-mark="\CD\F8\D2\F8" \
    scope=30 target-scope=10

/system scheduler
add comment="" disabled=no interval=30s name=AUTO-IP on-event="/ip route set [/ip route find comment=1] gateway=\
    [/ip address get [/ip address find dynamic=yes interface=pppoe-out1] network]\r\
    \n/ip route set [/ip route find comment=2] gateway=[/ip address get [/ip address find dynamic=yes interface=\
    pppoe-out2] network]\r\
    \n/ip route set [/ip route find comment=3] gateway=[/ip address get [/ip address find dynamic=yes interface=\
    pppoe-out2] network]" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 \
    start-time=00:00:00
add comment="" disabled=no interval=30s name=NET-IP on-event=":local ADSLIP1 0 \r\
    \n:local NATIP1 0 \r\
    \n:local ADSLIP2 0 \r\
    \n:local NATIP2 0 \r\
    \n:set ADSLIP1 [/ip address get [/ip address find interface=pppoe-out1] address] \r\
    \n:set ADSLIP1 [:pick \$ADSLIP1 0 [:find \$ADSLIP1 \"/\"]]\r\
    \n:set ADSLIP2 [/ip address get [/ip address find interface=pppoe-out2] address] \r\
    \n:set ADSLIP2 [:pick \$ADSLIP2 0 [:find \$ADSLIP2 \"/\"]]\r\
    \n:set NATIP1 [/ip firewall nat get [/ip firewall nat find comment=1] to-addresses]\r\
    \n:set NATIP2 [/ip firewall nat get [/ip firewall nat find comment=2] to-addresses]\r\
    \n:if (\$ADSLIP1 != \$NATIP1) do={/ip firewall nat set [/ip firewall nat find comment=1] to-addresses=\$ADSL\
    IP1}\r\
    \n:if (\$ADSLIP2 != \$NATIP2) do={/ip firewall nat set [/ip firewall nat find comment=2] to-addresses=\$ADSL\
    IP2}" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=\
    00:00:00
ROS3.30上做PPC 叠加.rar (1008 Bytes, 下载次数: 639)
routeros
发表于 2010-6-23 21:43:38 | 显示全部楼层
负载加叠加
routeros
回复

使用道具 举报

发表于 2010-6-23 23:00:15 | 显示全部楼层
里外都是pppoe~~~
routeros
回复

使用道具 举报

发表于 2010-6-23 23:02:53 | 显示全部楼层
我看围观一下
routeros
回复

使用道具 举报

发表于 2010-6-23 23:11:10 | 显示全部楼层
围观一下..........
routeros
回复

使用道具 举报

发表于 2010-6-23 23:36:19 | 显示全部楼层
围观一下..........
routeros
回复

使用道具 举报

发表于 2010-6-24 00:20:54 | 显示全部楼层
看看有没新发现。
routeros
回复

使用道具 举报

发表于 2010-6-24 00:46:30 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2010-6-24 01:21:40 | 显示全部楼层
学习一下
routeros
回复

使用道具 举报

发表于 2010-6-24 06:41:44 | 显示全部楼层
ding   系米噶
routeros
回复

使用道具 举报

发表于 2010-6-24 10:51:01 | 显示全部楼层
学习一下
routeros
回复

使用道具 举报

发表于 2010-6-24 11:11:29 | 显示全部楼层
学习一下
routeros
回复

使用道具 举报

发表于 2010-6-24 12:13:46 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2010-6-24 12:54:40 | 显示全部楼层
tfrhfgbfdgfdgfdgfd
routeros
回复

使用道具 举报

发表于 2010-6-24 13:41:56 | 显示全部楼层
dddddddddddd
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-1 16:46 , Processed in 0.202173 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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