思科2911配置qos
时间: 2024-02-29 20:26:46 浏览: 25
配置QoS需要考虑以下几个方面:
1. 网络流量的分类和标记
2. 针对不同类型的流量设置不同的优先级和带宽
3. 配置队列和调度算法
下面是一个基本的思科2911 QoS配置示例:
1. 配置分类和标记:
```
class-map match-all VOICE
match ip dscp ef
class-map match-all VIDEO
match ip dscp af41
class-map match-all CRITICAL-DATA
match ip dscp cs3 cs4 cs5
class-map match-all NORMAL-DATA
match ip dscp default
policy-map QoS
class VOICE
priority percent 20
class VIDEO
bandwidth percent 30
class CRITICAL-DATA
bandwidth percent 20
class NORMAL-DATA
bandwidth percent 10
```
2. 配置队列和调度算法:
```
policy-map QoS
class VOICE
priority percent 20
police 64000 conform-action transmit exceed-action drop
class VIDEO
bandwidth percent 30
queue-limit 200 packets
random-detect
class CRITICAL-DATA
bandwidth percent 20
queue-limit 200 packets
fair-queue
class NORMAL-DATA
bandwidth percent 10
queue-limit 200 packets
random-detect
```
注意,这只是一个基本的示例配置,在实际应用中需要根据具体情况进行调整和优化。