找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4876|回复: 0

[脚本] 我的双光纤PCC脚本有什么问题

[复制链接]
发表于 2012-5-14 11:54:38 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 xiasha11 于 2012-5-14 11:55 编辑

原来公司的网络是单光纤的,使用HTB效果很好,最近加了条光纤,使用以下脚本后上不了网?和HTB限速有冲突吗
  1. / ip firewall mangle
  2. add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:2/0 \
  3.     action=mark-connection new-connection-mark=1st_conn passthrough=yes comment="PCC1"
  4. add chain=prerouting connection-mark=1st_conn in-interface=lan action=mark-routing new-routing-mark=1st_route

  5. add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:2/1 \
  6.     action=mark-connection new-connection-mark=2st_conn passthrough=yes comment="PCC2"
  7. add chain=prerouting connection-mark=2st_conn in-interface=lan action=mark-routing new-routing-mark=2st_route

  8. add chain=input in-interface=wan2 action=mark-connection new-connection-mark=1st_conn

  9. add chain=input in-interface=wan1 action=mark-connection new-connection-mark=2st_conn

  10. add chain=output connection-mark=1st_conn action=mark-routing new-routing-mark=1st_route

  11. add chain=output connection-mark=2st_conn action=mark-routing new-routing-mark=2st_route

  12. /ip route
  13. add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
  14.     58.210.69.225 routing-mark=1st_route

  15. add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
  16.     58.210.215.33 routing-mark=2st_route

  17. add dst-address=0.0.0.0/0 gateway=51.210.211.34 distance=1 check-gateway=ping
  18. add dst-address=0.0.0.0/0 gateway=52.213.69.235 distance=2 check-gateway=ping


  19. /ip firewall nat
  20. add action=masquerade chain=srcnat comment=1 out-interface=wan2

  21. add action=masquerade chain=srcnat comment=2 out-interface=wan1

复制代码
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-24 06:18 , Processed in 0.050754 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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