beautypg.com

3 qos example, Xample – PLANET WGSW-52040 User Manual

Page 218

background image

clear mls qos statistics [interface

| vlan ]

Clear accounting data of the specified

ports or VLAN Policy Map. If there are

no parameters, clear accounting data

of all policy map.

7. Show configuration of QoS

Command Explanation

Admin Mode

show mls qos maps [cos-intp | dscp-intp]

Display the configuration of QoS mapping.

show class-map []

Display the classified map information of

QoS.

show policy-map []

Display the policy map information of

QoS.

show mls qos {interface []

[policy | queuing] | vlan }

Display QoS configuration information on

a port.

23.3 QoS Example

Example 1:

Enable QoS function, change the queue out weight of port to 1:1:2:2:4:4:8:8, set it in trust CoS

mode and set the default CoS value of the port to 5.

The configuration steps are listed below:

Switch#config

Switch(config)#mls qos queue weight 1 1 2 2

Switch(Config-If-Ethernet1/1)# mls qos queue wrr weight 1 1 2 2 4 4 8 8

Switch(Config-If-Ethernet1/1)#mls qos cos 5

Configuration result:

When QoS enabled in Global Mode, the egress queue bandwidth proportion of all ports is

1:1:2:2:4:4:8:8. When packets with CoS value coming in through port, it will be map to the

queue out according to the CoS value, CoS value 0 to 7 correspond to queue out 0, 0, 1, 1, 2,

2, 3, 3 respectively. If the incoming packet without CoS value, it is default to 5 and will be put in

queue 2.

23-140