Specifications

B-199
Cisco MWR 2941 Mobile Wireless Edge Router Software Configuration Guide, Release 12.2(33)MRB
OL-21227-02
Appendix B Cisco MWR 2941 Router Command Reference
match cos
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 case, the QoS treatment is priority 64 and bandwidth 512). The service policy
configured in this example is attached to all packets leaving Fast Ethernet interface 0/0.1. The service
policy can be attached to any interface that supports service policies.
Router(config)# class-map voice
Router(config-cmap)# match cos 7
Router(config)# class-map video-n-data
Router(config-cmap)# match cos 5
Router(config)# policy-map cos-based-treatment
Router(config-pmap)# class voice
Router(config-pmap-c)# priority 64
Router(config-pmap-c)# exit
Router(config-pmap)# class video-n-data
Router(config-pmap-c)# bandwidth 512
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)# interface fastethernet0/0.1
Router(config-if)# service-policy output cos-based-treatment
Related Commands Command Description
class-map Creates a class map to be used for matching packets to a specified class.
policy-map Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
service-policy Attaches a policy map to an input interface or VC, or an output interface or
VC, to be used as the service policy for that interface or VC.
set cos Sets the Layer 2 CoS value of an outgoing packet.
show class-map Displays all class maps and their matching criteria.