本文主要是介绍华为路由器QOS限速实验,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
此配置只适合分配好VLAN的各项业务,例如:vlan10是视频业务,vlan20是语音业务等。
1.配置流分类
[ar1]traffic classifier c1 operator and
[ar1-classifier-c1]if-match vlan-id 10
[ar1-classifier-c1]q
[ar1]traffic classifier c2 operator and
[ar1-classifier-c2]if-match vlan-id 20
[ar1-classifier-c2]q
2.配置流行为
- 语音业务对实时性要求比较高,设置大带宽的同时,将DSCP优先级标记为46,保证后续设备优先转发。
- 视频业务对实时性要求没语音那么敏感,可以配置大带宽,将DSCP优先级标记为30。
[ar1]traffic behavior b1
[ar1-behavior-b1]car cir 8000 pir 15000 //配置限速带宽
[ar1-behavior-b1]remark dscp 46 //标记报文DSCP为46
[ar1-behavior-b1]statistic enable //用于验证配置结果
[ar1-behavior-b1]q
[ar1]traffic behavior b2
[ar1-behavior-b2]car cir 10000 pir 20000
[ar1-behavior-b2]remark dscp 30
[ar1-behavior-b2]statistic enable
[ar1-behavior-b2]q
3.配置流策略
[ar1]traffic policy p1
[ar1-trafficpolicy-p1]cha
[ar1-trafficpolicy-p1]cl
[ar1-trafficpolicy-p1]classifier c1 be
[ar1-trafficpolicy-p1]classifier c1 behavior b1
[ar1-trafficpolicy-p1]cl
[ar1-trafficpolicy-p1]classifier c2 be
[ar1-trafficpolicy-p1]classifier c2 behavior b2
4.应用至接口
[ar1]int g0/0/0
[ar1-GigabitEthernet0/0/0]traffic-policy p1 inbound
[ar1-GigabitEthernet0/0/0]q
这篇关于华为路由器QOS限速实验的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!