Cisco Cisco 5760 Wireless LAN Controller Referências técnicas

Página de 1016
The class command performs the same function as the class-map global configuration command. Use the
class command when a new classification, which is not shared with any other ports, is needed. Use the
class-map command when the map is shared among many ports.
You can configure a default class by using the class class-default policy-map configuration command.
Unclassified traffic (traffic that does not meet the match criteria specified in the traffic classes) is treated as
default traffic.
Examples
This example shows how to create a policy map called policy1. When attached to the ingress direction, it
matches all the incoming traffic defined in class1, sets the IP Differentiated Services Code Point (DSCP) to
10, and polices the traffic at an average rate of 1 Mb/s and bursts at 20 KB. Traffic exceeding the profile is
marked down to a DSCP value gotten from the policed-DSCP map and then sent.
Controller(config)#
policy-map policy1
Controller(config-pmap)#
class class1
Controller(config-pmap-c)#
set dscp 10
Controller(config-pmap-c)#
police 1000000 20000 exceed-action policed-dscp-transmit
Controller(config-pmap-c)#
exit
This example shows how to configure a default traffic class to a policy map:
Controller#
configure terminal
Controller(config)#
class-map cm-3
Controller(config-cmap)#
match ip dscp 30
Controller(config-cmap)#
match protocol ipv6
Controller(config-cmap)#
exit
Controller(config)#
class-map cm-4
Controller(config-cmap)#
match ip dscp 40
Controller(config-cmap)#
match protocol ip
Controller(config-cmap)#
exit
Controller(config)#
policy-map pm3
Controller(config-pmap)#
class class-default
Controller(config-pmap-c)#
set dscp 10
Controller(config-pmap-c)#
exit
Controller(config-pmap)#
class cm-3
Controller(config-pmap-c)
set dscp 4
Controller(config-pmap-c)#
exit
Controller(config-pmap)#
class cm-4
Controller(config-pmap-c)#
trust cos
Controller(config-pmap-c)#
exit
Controller(config-pmap)#
exit
You can verify your settings by entering the show policy-map privileged EXEC command.
This example shows how the default traffic class is automatically placed at the end of policy-map pm3 even
though class-default was configured first:
Controller#
show policy-map pm3
Policy Map pm3
Class cm-3
set dscp 4
Class cm-4
trust cos
Class class-default
set dscp 10
Controller#
   Consolidated Platform Command Reference, Cisco IOS XE Release 3SE (Cisco WLC 5700 Series)
136
OL-29471-01  
class