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

Página de 1016
You can configure class policies in a policy map only if the classes have match criteria defined for them. To
configure the match criteria for a class, use the class-map global configuration and match class-map
configuration commands. You define packet classification on a physical-port basis.
Only one policy map per ingress port or SVI is supported. You can apply the same policy map to multiple
physical ports or SVIs.
You can apply a nonhierarchical policy maps to physical ports or to SVIs. A nonhierarchical policy map is
the same as the port-based policy maps in the controller. However, you can only apply a hierarchical policy
map to SVIs.
A hierarchical policy map has two levels. The first level, the VLAN level, specifies the actions to be taken
against a traffic flow on an SVI. The second level, the interface level, specifies the actions to be taken against
the traffic on the physical ports that belong to the SVI and are specified in the interface-level policy map.
In a primary VLAN-level policy map, you can only configure the trust state or set a new DSCP or IP precedence
value in the packet. In a secondary interface-level policy map, you can only configure individual policers on
physical ports that belong to the SVI.
After the hierarchical policy map is attached to an SVI, an interface-level policy map cannot be modified or
removed from the hierarchical policy map. A new interface-level policy map also cannot be added to the
hierarchical policy map. If you want these changes to occur, the hierarchical policy map must first be removed
from the SVI.
For more information about hierarchical policy maps, see the the “Policing on SVIs” section in the “Configuring
QoS” chapter of the software configuration guide for this releaseQoS Configuration Guide (Cisco WLC 5700
Series)
.
Examples
This example shows how to create a policy map called policy1. When attached to the ingress port, it matches
all the incoming traffic defined in class1, sets the IP DSCP to 10, and polices the traffic at an average rate of
1 Mb/s and bursts at 20 KB. Traffic less than the profile is 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 conform-action transmit
Controller(config-pmap-c)#
exit
This example shows how to create a hierarchical policy map and attach it to an SVI:
Controller(config)#
class-map cm-non-int
Controller(config-cmap)#
match access-group 101
Controller(config-cmap)#
exit
Controller(config)#
class-map cm-non-int-2
Controller(config-cmap)#
match access-group 102
Controller(config-cmap)#
exit
Controller(config)#
class-map cm-test-int
Controller(config-cmap)#
match input-interface gigabitethernet2/0/2 - gigabitethernet2/0/3
Controller(config-cmap)#
exit
Controller(config)#
policy-map pm-test-int
Controller(config-pmap)#
class cm-test-int
Controller(config-pmap-c)#
police 18000000 8000 exceed-action drop
Controller(config-pmap-c)#
exit
Controller(config-pmap)#
exit
Controller(config)#
policy-map pm-test-pm-2
Controller(config-pmap)#
class cm-non-int
Controller(config-pmap-c)#
set dscp 7
Controller(config-pmap-c)#
service-policy pm-test-int
Controller(config-pmap)#
class cm-non-int-2
Controller(config-pmap-c)#
set dscp 15
Controller(config-pmap-c)#
service-policy pm-test-int
   Consolidated Platform Command Reference, Cisco IOS XE Release 3SE (Cisco WLC 5700 Series)
154
OL-29471-01  
policy-map