Configuration Guide QoS Configuration
Ruijie(config)# [no] policy-map
policy-map-name
Create and enter into the policy map configuration
mode, where policy-map-name is the name of the
policy map to be created.
The no option will delete an existing policy map
Ruijie(config-pmap)# [no] class
class-map-name
Create and enter into the data classifying
configuration mode, where class-map-name is the
name of the class map to be created.
The no option deletes that data classification
Ruijie(config-pmap-c)# [no] set ip
dscp new-dscp
Set new ip dscp value for the IP messages in the
dataflow. The ip dscp value does not take effect for
non-IP messages.
new-dscp is the new DSCP value to be set, whose
range varies with the specific product.
Ruijie(config-pmap-c)# police
rate-bps burst-byte [exceed-action
{drop | dscp dscp-value }]
Limit the bandwidth of the dataflow and specify the
action for the excessive bandwidth part, where
rate-bps is the limited bandwidth per second
(kbps), burst-byte is the limited burst bandwidth
(Kbyte), drop means dropping the message of the
excessive bandwidth part, dscp dscp-value means
changing the DSCP value of the message in
excessive bandwidth part, and dscp-value value
range varies with specific products.
The effective range of the burst-byte is 4 to
2097152.
Ruijie(config-pmap-c)# no police
Cancel to limit the bandwidth of the dataflow and
specify the action for the excessive bandwidth part
The DENY action in the ACL, matched with the CLASS MAP will be
ignored.
For example, the following steps create a policy-map named policy1 and associate it with
interface Gigabitethernet 1/1.
Ruijie(config)# policy-map policy1
Ruijie(config-pmap)# class class1
Ruijie(config-pmap-c)# set ip dscp 48
Ruijie(config-pmap-c)# exit
Router(config-pmap)# exit
Ruijie(config)# interface gigabitethernet 1/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# mls qos trust cos
Ruijie(config-if)# service-policy input policy1