博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
21.5. 流量控制
阅读量:6840 次
发布时间:2019-06-26

本文共 5202 字,大约阅读时间需要 17 分钟。

21.5.1. 基于接口

cir 它必须是64的倍数

qos lr outbound cir 64 64Kbps

qos lr outbound cir 1024 1Mbps

[H3C-GigabitEthernet1/0/18]di this#interface GigabitEthernet1/0/18 port access vlan 9 qos lr outbound cir 64 cbs 4000 qos apply policy 20 inbound dhcp-snooping trust#return

察看状态

display qos lr interface GigabitEthernet 1/0/18

21.5.2. 基于 ACL

acl number 3009rule 0 permit ip source 192.168.9.0 0.0.0.255traffic classifier traffic-limitif-match acl 3009traffic behavior traffic-limitcar cir 1024qos policy traffic-limitclassifier traffic-limit behavior traffic-limitinterface GigabitEthernet1/0/18qos apply policy traffic-limit inbound
[H3C]acl number 3009[H3C-acl-adv-3009]rule 0 permit ip source 192.168.9.0 0.0.0.255[H3C-acl-adv-3009][H3C-acl-adv-3009]traffic classifier traffic-limit[H3C-classifier-traffic-limit]if-match acl 3009[H3C-classifier-traffic-limit][H3C-classifier-traffic-limit]traffic behavior traffic-limit[H3C-behavior-traffic-limit]car cir 1024Warning: CBS is smaller than (100/16)CIR, and this maybe effect network traffic burst.[H3C-behavior-traffic-limit][H3C-behavior-traffic-limit]qos policy traffic-limit[H3C-qospolicy-traffic-limit]classifier traffic-limit behavior traffic-limit[H3C-qospolicy-traffic-limit][H3C-qospolicy-traffic-limit]interface GigabitEthernet1/0/18[H3C-GigabitEthernet1/0/18]qos apply policy traffic-limit inbound
display traffic behavior user-defined traffic-limit[H3C-GigabitEthernet1/0/18]display traffic behavior user-defined traffic-limit  User Defined Behavior Information:    Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass[H3C-GigabitEthernet1/0/18]display traffic behavior user-defined  User Defined Behavior Information:    Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass    Behavior: 3      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.30.254    Behavior: 2      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.20.1    Behavior: 1      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.40.254
[H3C-GigabitEthernet1/0/18]display qos policy user-defined  User Defined QoS Policy Information:  Policy: 20   Classifier: 20     Behavior: 2      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.20.1  Policy: traffic-limit   Classifier: traffic-limit     Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass  Policy: 2   Classifier: 2     Behavior: 1      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.40.254  Policy: 1   Classifier: 1     Behavior: 1      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.40.254[H3C-GigabitEthernet1/0/18]display qos policy user-defined traffic-limit  User Defined QoS Policy Information:  Policy: traffic-limit   Classifier: traffic-limit     Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass
[H3C-GigabitEthernet1/0/18]display qos policy interface  Interface: GigabitEthernet1/0/3  Direction: Inbound  Policy: 2   Classifier: 2     Operator: OR     Rule(s) : If-match acl 3000     Behavior: 1      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.40.254  Interface: GigabitEthernet1/0/12  Direction: Inbound  Policy: 1   Classifier: 1     Operator: AND     Rule(s) : If-match acl 3001     Behavior: 1      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.40.254  Interface: GigabitEthernet1/0/17  Direction: Inbound  Policy: 20   Classifier: 20     Operator: OR     Rule(s) : If-match acl 3020     Behavior: 2      Redirect enable:        Redirect type: next-hop        Redirect destination:          192.168.20.1  Interface: GigabitEthernet1/0/18  Direction: Inbound  Policy: traffic-limit   Classifier: traffic-limit     Operator: AND     Rule(s) : If-match acl 3009     Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass        Green : 230(Packets)[H3C-GigabitEthernet1/0/18]display qos policy interface GigabitEthernet1/0/18  Interface: GigabitEthernet1/0/18  Direction: Inbound  Policy: traffic-limit   Classifier: traffic-limit     Operator: AND     Rule(s) : If-match acl 3009     Behavior: traffic-limit      Committed Access Rate:        CIR 1024 (kbps), CBS 4000 (byte), EBS 4000 (byte)        Green Action: pass        Red Action: discard        Yellow Action: pass        Green : 236(Packets)

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
Crontab的格式
查看>>
Apache静态编译和动态编译详解
查看>>
spring boot之统一异常处理
查看>>
用了哈octave,好东西啊。记录哈。
查看>>
Java 域名能访问IP地址不能访问的问题.
查看>>
电邮靠谱指南
查看>>
Ural 1014-The Product of Digits
查看>>
Python 判断变量类型用instance而不用type
查看>>
Ubuntu安装JDK
查看>>
升级到 Ubuntu 12.04(LTS)
查看>>
Java 并发编程 --- 线程池(ThreadPoolExecutor)
查看>>
鸟哥Linux私房菜_基础篇(第二版)_第一章学习笔记
查看>>
awk工具
查看>>
C++基础语法总结
查看>>
我的友情链接
查看>>
ubuntu配置ftp服务器
查看>>
ios-@property属性(特性)
查看>>
终于找到全annotation配置springMVC的方法了(事务不失效)
查看>>
FreeMarker的优点和缺点
查看>>
windows应用商店下载错误0x80240013
查看>>