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

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

日志

PCC双线示范样本-多线自己添加就可以了

已有 509 次阅读2011-10-31 09:33 | 样本

变量:new-connection-mark  both-addresses:2/0  connection-mark  gateway=pppoe-out1  routing-mark
 
 
代码:
/ip firewall mangle
add action=mark-connection chain=prerouting  disabled=no new-connection-mark=1 passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=192.168.1.0/24
add action=mark-connection chain=prerouting  disabled=no new-connection-mark=2 passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=192.168.1.0/24
add action=mark-routing chain=prerouting  connection-mark=1 disabled=no new-routing-mark=1 passthrough=yes src-address=192.168.1.0/24
add action=mark-routing chain=prerouting  connection-mark=2 disabled=no new-routing-mark=2 passthrough=yes src-address=192.168.1.0/24
/ip route
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=1
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=2

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

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

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

GMT+8, 2024-11-24 10:29 , Processed in 0.037163 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

返回顶部