找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: wssningzdm

[脚本] 请教大神ROS电信联通多线做PCC

[复制链接]
发表于 2018-8-17 16:10:14 | 显示全部楼层
cspm333 发表于 2016-12-23 02:53
在/system scheduler 新增網頁視頻script ,interval設00:00:20
轉換過的地址將存到/ip firewall address-l ...

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=video new-routing-mark=to_pppoe1 per-connection-classifier=src-port:2/0
add action=mark-routing chain=prerouting dst-address-list=video new-routing-mark=to_pppoe2 per-connection-classifier=src-port:2/1

add action=mark-routing chain=prerouting new-routing-mark=to_pppoe3 per-connection-classifier=src-port:14/0
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe4 per-connection-classifier=src-port:14/1
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe5 per-connection-classifier=src-port:14/2
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe6 per-connection-classifier=src-port:14/3
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe1 per-connection-classifier=src-port:2/0
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe2 per-connection-classifier=src-port:2/1



请大神将passthrough=yes  or  no加到上面,以便于理解,视频2/0和2/1放在最上面是不是联通两条线进行均分,这个均分后,passthrough=yes ?

点评

最上方兩筆選擇no即可,除非標記還有其它用途,如Queue限速...  发表于 2018-8-17 20:21
routeros
回复

使用道具 举报

发表于 2018-8-17 20:50:29 | 显示全部楼层
e_zhangiso 发表于 2018-8-17 16:10
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=video new-routing-ma ...

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=video new-routing-mark=to_pppoe1 per-connection-classifier=src-port:2/0  passthrough=yes
add action=mark-routing chain=prerouting dst-address-list=video new-routing-mark=to_pppoe2 per-connection-classifier=src-port:2/1  
passthrough=no
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe3 per-connection-classifier=src-port:14/0 passthrough=yes
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe4 per-connection-classifier=src-port:14/1
passthrough=yes
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe5 per-connection-classifier=src-port:14/2
passthrough=yes
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe6 per-connection-classifier=src-port:14/3
passthrough=no
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe1 per-connection-classifier=src-port:2/0
passthrough=yes
add action=mark-routing chain=prerouting new-routing-mark=to_pppoe2 per-connection-classifier=src-port:2/1
passthrough=no


应该是这样吗?

点评

全部passthrough=no  发表于 2018-8-17 21:30
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 04:20 , Processed in 0.118658 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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