国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

用流量監(jiān)控控制限速的開關(guān)

2019-11-04 20:17:53
字體:
供稿:網(wǎng)友

先做好一個PCQ的限速


一個一個限制用simple queue
/ queue simple
add name="queue1" target-address=192.168.0.1/32 dst-address=0.0.0.0/0 /
interface=all queue=default PRiority=8 limit-at=330000/330000 /
max-limit=400000/400000 disabled=no


限制一個網(wǎng)段用PCQ


1. Mark all packets with flow all:用flow all 標(biāo)記所有數(shù)據(jù)包
/ip firewall mangle add action=accept mark-flow=all


2. Create two PCQ queue types - one for download and one for upload. For download traffic:創(chuàng)建兩條PCQ類型,下載和上傳
queues will be classified by dst-address and for upload - by src-address:
/queue type add name=PCQ-Download kind=pcq pcq-rate=768000 /
pcq-classifier=dst-address
/queue type add name=PCQ-Upload kind=pcq pcq-rate=512000 /
pcq-classifier=src-address


3. Add two queue rules - one for download and one for upload:添加PCQ規(guī)則,下載和上傳/
queue tree add parent=Local queue=PCQ-Download flow=all
/queue tree add parent=Public queue=PCQ-Upload flow=all


下邊在開始進(jìn)入正題
ROS的流量監(jiān)控只能監(jiān)控不同網(wǎng)卡的流量收發(fā)
假如wan口的帶寬是10M我們在9M的時候開啟控制條件.
/tool traffic-monitor
add name=pcqon interface=WAN on-event=pcqon threshold=9000000 trigger=above traffic=received


/system script add name="pcqon" source="/queue tree enable queue1 " owner="admin" policy=reboot,read,write,policy,test

在帶寬使用低于7M時關(guān)閉流量控制
/tool traffic-monitor
add name=pcqoff interface=WAN on-event=pcqoff threshold=7000000 trigger=below traffic=received


/system script add name="pcqoff" source="/queue tree disable queue1 " owner="admin" policy=reboot,read,write,policy,test




發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 乌兰浩特市| 惠来县| 永福县| 民县| 获嘉县| 朝阳市| 定襄县| 勃利县| 安龙县| 常宁市| 扎赉特旗| 商河县| 肇东市| 临湘市| 巴塘县| 堆龙德庆县| 达州市| 信阳市| 鄂托克前旗| 建宁县| 北宁市| 三台县| 望江县| 山阴县| 德安县| 谢通门县| 英德市| 洛隆县| 静海县| 罗源县| 西充县| 盐津县| 永平县| 昭平县| 淮滨县| 元谋县| 吴江市| 建始县| 青海省| 甘谷县| 普格县|