DGS-6604
m
match
CLI Reference Guide
422
In the following example, classes called voice and video-n-data are created to
classify traffic based on the CoS values. QoS treatment is then given to the
appropriate packets in the cos-based-treatment policy map (in this example, the
QoS treatment is a single rate policer and a two rate policer for class voice and
video-n-data respectively). The service policy configured in this example is
attached to Ethernet interface eth3.1.
The following example specifies a class map called cos and specifies that the
CoS values of 1, 2, and 3 are match criteria for the class:
Verify the settings by entering the
show class-map
command.
Switch(config)# class-map voice
Switch(config-cmap)# match cos 7
Switch(config-cmap)# exit
Switch(config)# class-map video-n-data
Switch(config-cmap)# match cos 5
Switch(config-cmap)# exit
Switch(config)# policy-map cos-based-treatment
Switch(config-pmap)# class voice
Switch(config-pmap-c)# police 8000 1000 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# class video-n-data
Switch(config-pmap-c)# police cir 500000 bc 10000 pir 1000000 be 10000
exceed-action drop violate-action drop
exceed-action 2 violate-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface eth3.1
Switch(config-if)# service-policy cos-based-treatment
Switch(config)# class-map cos
Switch(config-cmap)# match cos 1,2,3
Switch(config-cmap)# exit
Summary of Contents for DGS-6600-48TS
Page 1: ...0 9 3...