beautypg.com

Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 507

background image

To delete a policy-map, use the no keyword as in the following example.

switch(config)# no policy-map policymap1

3. Configure a class map in the policy-map by providing the class map name. This enables policy class

map configuration mode. Note that the class map name in the following example matches the name
provided when you create the class map by using the class-map command (refer to

Configuring a

policer class map

on page 505).

switch(config-policymap)# class default

4. Set QoS and policing parameters for the class map as shown in the following example. For

information on all of the optional parameters for this command, refer to the Network OS Command
Reference
.

switch(config-policymap-class)# police cir 40000 cbs 5000 eir 40000 ebs 3000 set-

priority pmap1 conform-set-dscp 61 conform-set-tc 7 exceed- set-dscp 63 exceed-set-

tc 3

The CIR parameter is mandatory for a class map. All other parameters are optional. Note that the
parameter for set-priority (pmap1) includes the name for the created priority-map (refer to

Configuring

a policer priority-map

on page 505). For details on setting QoS and policing parameters, refer to

Policing parameters

on page 483.

To delete the mandatory CIR parameter, you must delete all Policer parameters while in the policy-
map class configuration mode as in the following example:

switch(config-policymap-class)# no police

To delete any optional parameter, use the no keyword while in the policy-map class police
configuration mode. The following example removes the EBS setting.

switch(config-policymap-class-police)# no ebs

5. Exit the policy class map configuration mode.

switch(config-policymap-class)# exit

6. Exit the policy-map configuration mode.

switch(config-policymap)# exit

7. Return to privileged EXEC mode.

switch(config)# end

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

switch# copy running-config startup-config

Configuring parameters for a class map (policy-class-map Policer mode)

You can configure QoS and policing parameters when configuring a class map in the policy-class-map
configuration mode as shown in the preceding procedure, or you can create or modify parameters for a
class map in the policy-class-map policer attributes mode, as shown in the following example. Using the
policy-class-map policer mode is a convenience for adding or modifying single or multiple attributes for
a policy.

1. Enter the configure terminal command to change to 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 policymap2

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

To delete a policy-map, use the no keyword as in the following example.

switch(config)# no policy-map policymap2

3. Configure a class map in the policy-map by providing the class map name. This enables policy-class-

map configuration mode.

switch(config-policymap)# class default

Configuring parameters for a class map (policy-class-map Policer mode)

Network OS Administrator’s Guide

507

53-1003225-04