找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 7577|回复: 1

[负载平衡] 网吧多线上传标记

[复制链接]
发表于 2013-7-29 21:36:20 | 显示全部楼层 |阅读模式

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

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

×
网吧出口为三条PPPOE拨号光纤,使用PCCA进行带宽叠加,对于上传,网上教程,
有的只标记一次连接,在根据该连接标记上传包;

17   ;;; DNS
     chain=prerouting action=mark-connection new-connection-mark=small_conn
     passthrough=yes src-address-list=lan_ip layer7-protocol=DNS

18   chain=postrouting action=mark-packet new-packet-mark=dns_up passthrough=n>
     src-address-list=lan_ip connection-mark=small_conn

19   chain=prerouting action=mark-packet new-packet-mark=dns_down
     passthrough=no src-address-type=!local connection-mark=small_conn

有的分别标记到三个出口的连接,在根据该连接标记上传包

90   ;;; DNS
     chain=prerouting action=mark-connection new-connection-mark=DNS
     passthrough=yes protocol=udp dst-port=53

91   chain=prerouting action=mark-packet new-packet-mark=DNS passthrough=yes
     connection-mark=DNS

92   chain=postrouting action=mark-connection new-connection-mark=DNS_up
     passthrough=yes protocol=udp dst-port=53

93 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
     out-interface=pppoe-out1 connection-mark=DNS_up

94 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
     out-interface=pppoe-out2 connection-mark=DNS_up

95 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
     out-interface=pppoe-out3 connection-mark=DNS_up

请有实战经验的高手谈谈这两种标记有何不同,效果哪一种好点
routeros
发表于 2013-7-30 09:13:37 | 显示全部楼层
我公司双光纤,用的是第一种,不错
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 13:44 , Processed in 0.064649 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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