1.首先启用QoS。请记住,QoS默认值禁用。当QOS禁用时,无论您对CoS映射作何种配置,都不会影响结果。系统只会以先进先出(FIFO)的方式处理一条队列,所有数据包将被丢弃。 cosmos#conf t Enter configuration commands, one per line. End with CNTL/Z. cosmos(config)#mls qos
QoS is enabled globally Microflow policing is enabled globally
QoS global counters: Total packets: 552638 IP shortcut packets: 0 Packets dropped by policing: 0 IP packets with TOS changed by policing: 0 IP packets with COS changed by policing: 0 Non-IP packets with CoS changed by policing: 0
wrr-queue cos-map<Q number (1-2)> <threshold_number (1-2)> <cos value 1> <cos value 2>
priority-queue cos-map<Q number (always 1)> <cos value 1> <cos value 2>