![SNR S2940-8G-v2 Configuration Manual Download Page 186](http://html1.mh-extra.com/html/snr/s2940-8g-v2/s2940-8g-v2_configuration-manual_1310630186.webp)
SNR S2940-8G-v2 Switch Configuration Guide
QoS Configuration
5. Configure QoS mapping
Command
Explanation
Global Mode
mls qos map (cos-dp <dp1..dp8> | dscp-dscp <in-dscp
list> to <out-dscp> | dscp-intp <in-dscp list> to <intp> |
dscp-dp <in-dscp list> to <dp> )
no mls qos map (cos-dp | dscp-dscp | dscp-intp | dscp-
dp)
mls qos map intp-dscp <dscp1..dscp8>
no mls qos map intp-dscp
Set the priority mapping for QoS,
the no command restores the default
mapping value.
6. Clear accounting data of the specific ports or VLANs
Command
Explanation
Admin Mode
clear mls qos statistics [interface
<interface-name> | vlan <vlan-
id>]
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-dp |
dscp-dscp | dscp-intp | dscp-dp
| intp-dscp]
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 | queu-
ing] | vlan <vlan-id> }
Displays QoS configuration information on a port.
26.3
QoS Example
Example 1:
Enable QoS function, change the queue out weight of port ethernet 1/0/1 to 1:1:2:2:4:4:8:8, set
the port in trust CoS mode without changing DSCP value, and set the default CoS value of the
port to 5. The configuration steps are listed below:
Switch#config
Switch(config)#interface ethernet 1/0/1
Switch(Config-If-Ethernet1/0/1)#mls qos queue weight 1 1 2 2 4 4 8 8
Switch(Config-If-Ethernet1/0/1)#mls qos cos 5
Configuration result:
186
Summary of Contents for S2940-8G-v2
Page 11: ...SNR S2940 8G v2 Switch Configuration Guide Part I Basic Management Configuration 11...
Page 46: ...SNR S2940 8G v2 Switch Configuration Guide Part II Port Configuration 46...
Page 123: ...SNR S2940 8G v2 Switch Configuration Guide Part III VLAN and MAC Table Configuration 123...
Page 164: ...SNR S2940 8G v2 Switch Configuration Guide Part IV MSTP Configuration 164...
Page 198: ...SNR S2940 8G v2 Switch Configuration Guide Part VI L3 Forward and ARP Configuration 198...
Page 218: ...SNR S2940 8G v2 Switch Configuration Guide Part VII DHCP Configuration 218...
Page 257: ...SNR S2940 8G v2 Switch Configuration Guide Part VIII Multicast Protocol 257...
Page 278: ...SNR S2940 8G v2 Switch Configuration Guide Part IX Security Function Configuration 278...
Page 376: ...SNR S2940 8G v2 Switch Configuration Guide Part X Reliability Configuration 376...
Page 395: ...SNR S2940 8G v2 Switch Configuration Guide Part XI Flow Monitor Configuration 395...
Page 403: ...SNR S2940 8G v2 Switch Configuration Guide Part XII Network Time Management Configuration 403...
Page 411: ...SNR S2940 8G v2 Switch Configuration Guide Part XIII Debugging and Diagnosis 411...