找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9223|回复: 17

[负载平衡] 发一个PCC角本上来需要的朋友自己下载式式效果

  [复制链接]
发表于 2010-11-27 00:09:19 | 显示全部楼层 |阅读模式

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

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

×
发一个PCC角本上来需要的朋友自己下载式式效果


/ interface pppoe-client
add name="pppoe-out1" max-mtu=1440 max-mru=1440 interface=bridge1 \
    user="帐号1" password="密码1" profile=default \
    service-name="" ac-name="" add-default-route=yes dial-on-demand=no \
    use-peer-dns=no allow=pap,chap,mschap1,mschap2 disabled=no

add name="pppoe-out2" max-mtu=1440 max-mru=1440 interface=bridge2 \
    user="帐号2" password="密码2" profile=default \
    service-name="" ac-name="" add-default-route=yes dial-on-demand=no \
    use-peer-dns=no allow=pap,chap,mschap1,mschap2 disabled=no
/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-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-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=192.168.88.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:2/1 src-address=192.168.88.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.88.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.88.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 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


/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
routeros
发表于 2010-11-27 12:37:04 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-11-27 12:55:51 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-11-27 15:14:18 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-11-27 22:48:42 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-11-29 09:05:50 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-12-27 16:26:58 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2010-12-30 12:37:13 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-3-11 23:21:11 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-4-11 07:08:17 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-5-25 09:56:44 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-11-3 10:13:41 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-11-3 16:08:34 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2011-11-3 21:34:19 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

发表于 2012-6-1 10:33:24 | 显示全部楼层
此帖仅作者可见
routeros

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 20:17 , Processed in 0.065879 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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