beautypg.com

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

Page 123

background image

13-10

mls qos map intp-dscp

no mls qos map intp-dscp

6. Clear accounting data of the specific ports or VLANs

Command

Explanation

Interface Mode

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

Interface Mode

show mls qos maps [cos-dp |dscp-dscp |

dscp-intp | dscp-dp | intp-dscp]

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 }

Displays QoS configuration information on

a port.

13.3 QoS Example

Example 1:

Enable QoS function, change the queue out weight of port ethernet 1/1 to 1:1:2:2:4:4:8:8, and set the port in

trust QoS mode without changing DSCP value, and set the default QoS value of the port to 5.

The configuration steps are listed below:

Switch#config

Switch(config)#mls qos

Switch(config)#interface ethernet 1/1

Switch(Config-If-Ethernet1/1)#wrr-queue bandwidth 1:1:2:2:4:4:8:8

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

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

Configuration result:

When QoS enabled in Global Mode, the egress queue bandwidth proportion of port ethernet1/1 is

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

out according to the CoS value, CoS value 0 to 7 correspond to queue out 1, 2, 3, 4, 5, 6, 7, 8, respectively. If