注册 登录
自由的生活_软路由 返回首页

jacksonzhang的个人空间 https://bbs.routerclub.com/?121577 [收藏] [复制] [分享] [RSS]

日志

pcc双线接入

已有 1258 次阅读2011-4-21 01:08 |个人分类:ros资料|


pcc adsl双线接入

PCC终于成功了.JPG

/ip firewall mangle
add action=mark-connection chain=input  disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1-conn \
    passthrough=yes
add action=mark-connection chain=input  disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2-conn \
    passthrough=yes
add action=mark-routing chain=output  connection-mark=pppoe-out1-conn disabled=no new-routing-mark=to-pppoe-out1 \
    passthrough=yes
add action=mark-routing chain=output  connection-mark=pppoe-out2-conn disabled=no new-routing-mark=to-pppoe-out2 \
    passthrough=yes
add action=accept chain=prerouting  disabled=no dst-address-type=local in-interface=lan
add action=accept chain=prerouting  disabled=no dst-address-type=local in-interface=lan
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=lan new-connection-mark=\
    pppoe-out1-conn passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=lan new-connection-mark=\
    pppoe-out2-conn passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting  connection-mark=pppoe-out1-conn disabled=no in-interface=lan \
    new-routing-mark=to-pppoe-out1 passthrough=yes
add action=mark-routing chain=prerouting  connection-mark=pppoe-out2-conn disabled=no in-interface=lan \
    new-routing-mark=to-pppoe-out2 passthrough=yes
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to-pppoe-out1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to-pppoe-out2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
/ip firewall nat
add action=masquerade chain=srcnat  disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat  disabled=no out-interface=pppoe-out2

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

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

GMT+8, 2024-11-22 01:36 , Processed in 0.061358 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

返回顶部