beautypg.com

Configuring the policer policy-map, Configuring, The policer policy-map – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 506

background image

The police priority-map will re-mark CoS values according to color-based green (conform), yellow
(exceed), and red (violate) priorities. Creating a police priority-map is optional. If you do not define
priority mapping for a color, the map defaults to priorities of 0, 1, 2, 3, 4, 5, 6, and 7 (in other words,
nothing is modified). You can configure a maximum of 32 priority-maps (one reserved as a default),
but only one map can be associated with a policer.

NOTE
You can set a priority-map when creating a policy-map by using appropriate policer attributes.

To configure a priority-map, use the following steps:

1. Enter global configuration mode.

switch# configure terminal

2. Create a priority-map by providing a priority-map name. This enables police priority-map

configuration mode.

switch(config)# police-priority-map pmap1

The name for the priority-map (in this case pmap1) can be a character string up to 64 characters.

3. Create color-based priority mapping. The following example sets the CoS for traffic that conforms to

the CIR set in the policy-map.

switch(config-policepmap)# conform 0 1 1 2 1 2 2 1 1

The following example sets the CoS for traffic that exceeds the CIR setting, but conforms to the EIR
set in the policy-map.

switch(config-policepmap)# exceed 3 3 3 3 4 5 6 7

4. Exit the police priority-map configuration mode.

switch (config-policepmap)# exit

5. Return to privileged EXEC mode.

switch(config)# end

6. Enter the copy command to save the running-config file to the startup-config file.

switch# copy running-config startup-config

To delete color-based CoS mapping, use the no keyword as shown in the following examples:

• To delete the conform color, use the following example:

switch(config-policepmap)# no conform

• To delete the exceed color, use the following example:

switch(config-policpmap)# no exceed

• To delete an entire police priority-map, use the following example:

switch(config)# no police-priority-map name

Configuring the policer policy-map

Configure a rate-limit policy-map to associate QoS and policing parameters with traffic belonging to a
specific classification map. A policy-map can only contain one classification map. You can apply
one policy-map per interface per traffic direction (inbound and outbound) by using the service-policy
command.

To configure a policy-map, add a classification map, and configure QoS and policing parameters for
the classification map, use the following steps:

1. Enter the global configuration mode.

switch# configure terminal

2. Configure a policy-map by providing a policy-map name. This enables policy-map configuration

mode.

switch(config)# policy-map policymap1

The name for the policy-map (in this case policymap1) can be a character string up to 64
characters.

Configuring the policer policy-map

506

Network OS Administrator’s Guide

53-1003225-04