beautypg.com

Attaching the mutation to the class, Attaching the port-shaper to the class – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 508

background image

NOTE
To configure a class map in the policy-map you must create the class map first using the class-
map
command while in global configuration mode. Refer to

Configuring a policer class map

on

page 505.

4. Provide a policing parameter for the class map. This enables policy-class-map policer configuration

mode.

switch(config-policymap-class)# police cir 4000000

5. Enter another parameter as applicable.

(config-policymap-class-police)# cbs 50000

6. Enter additional parameters as applicable.

switch(config-policymap-class-police)# eir 800000 ebs 400000 conform-set-tc 3

exceed-set-prec 4

7. Exit the policy-class-map Policer configuration mode.

switch(config-policymap-class-police)# exit

8. Exit the policy-class-map configuration mode.

switch (config-policymap-class)# exit

9. Exit the policy-map configuration mode.

switch(config-policymap)# exit

10.Return to privileged EXEC mode.

switch(config)# end

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

switch# copy running-config startup-config

Attaching the mutation to the class

You can specify the mutation-map to be used on a port. This can lead to possible contradictions if
there are other user-defined classes used in the same policy-map that have a set cos action
configured. In this case-defined cos takes priority over the mutation map.

Perform the following task in global configuration mode.

1. Select the policy map.

switch(config)# policy-map p1

2. Select the class.

switch(config-policymap)# class class-default

3. Specify the mutation map to be used on the port. Different kinds of mutations can be used

depending on the command. For complete information, refer to Network OS Command Reference.
The available commands are:

• cos-mutation
• cos-traffic-class
• dscp-mutation
• dscp-cos
• dscp-traffic-class

switch(config-policyclass)# cos-mutation plsmap

Attaching the port-shaper to the class

You can specify the shaping rate per port attached to the policy map. You can use this command to
smooth out the traffic egressing an interface. This command is allowed only for the egress direction.
This command is mutually exclusive of the scheduler and police commands.

Perform the following task in global configuration mode.

Attaching the mutation to the class

508

Network OS Administrator’s Guide

53-1003225-04