SGS-6341-Series User Manual

Table Of Contents
23-138
show mls qos maps [cos-intp | dscp-intp]
Display the configuration of QoS mapping.
show class-map [<class-map-name>]
Display the classified map information of
QoS.
show policy-map [<policy-map-name>]
Display the policy map information of
QoS.
show mls qos {interface [<interface-id>]
[policy | queuing] | vlan <vlan-id>}
Display QoS configuration information on
a port.
23.3 QoS Example
Example 1:
Enable QoS function to 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 is 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 mapped to the
queue out according to the CoS value; CoS value 0 to 7 corresponds to queue out 0, 0, 1, 1, 2,
2, 3, 3 respectively. If the incoming packet without CoS value, it is defaulted to 5 and will be put
in queue 2.
Example 2:
In port ethernet1/2, set the bandwidth for packets from segment 192.168.1.0 to 10 Mb/s, with a
burst value of 4 MB; all packets exceed this bandwidth setting will be dropped.
The configuration steps are listed below:
Switch#config
Switch(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Switch(config)#class-map c1
Switch(Config-ClassMap-c1)#match access-group 1
Switch(Config-ClassMap-c1)#exit
User’s Manual of SGS-6341 series