Command Reference QoS Commands
2.17 service-policy
Use this command to apply the policy map to the interface, the virtual group or globally. Use the no or
default form of this command to remove the policy map.
service-policy { input | output } policy-map-name
no service-policy { input | output } policy-map-name
default service-policy { input | output } policy-map-name
Applies the policy map to the input direction.
Applies the policy map to the output direction.
No policy map is configured on the interface or virtual group by default.
Interface configuration mode, and virtual group configuration mode.
The following example applies policy map “po” to the input direction of interface GigabitEthernet 1/3.
Ruijie(config)# interface gigabitethernet 1/3
Ruijie(config-if-GigabitEthernet 1/3)# service-policy input po
The following example applies policy map “po” to the output direction of virtual group 3.
Ruijie(config)# virtual-group 3
Ruijie(config-VirtualGroup)# service-policy output po
show mls qos interface policers
Displays the policy map configuration on the interface.
show mls qos virtual-group
policers
Displays the policy map configuration on the virtual group.
Use this command to configure the CoS, DSCP or VID value for the traffic. Use the no form of this
command to remove the CoS, DSCP or VID value from the traffic.
set { ip dscp new-dscp | cos new-cos [ none-tos ] | vid new-vid }