Binding the policy-map to an interface, Policer binding rules, Displaying policing settings and policy-maps – Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 510: Displaying policy-maps, Binding the, Policy-map to an interface

Binding the policy-map to an interface
Use the service-policy command to associate a policy-map to an interface to apply policing
parameters.
1. Enable the global configuration mode.
switch# configure terminal
2. Specify the Ethernet interface, as in the following 10-gigabit Ethernet example
switch(config)# interface te 1/1/2
3. Bind a policy-map to egress traffic on the interface. The following associates binds policymap1 to
outbound traffic on the interface.
switch(config-if-te-1/1/2)# service-policy out policymap1
You can unbind the policy-map by using the no keyword.
switch(config-if-te-1/1/2)# no service-policy out
4. Bind a policy-map to inbound traffic on the interface. The following associates binds policymap1 to
inbound traffic on the interface.
switch(config-if-te-1/1/2)# service-policy in policymap1
You can unbind the policy-map by using the no keyword.
switch(config-if-te-1/1/2)# no service-policy in
5. Return to privileged EXEC mode.
switch(conf-if-te-1/1/2)# end
6. Enter the copy command to save the running-config file to the startup-config file.
switch# copy running-config startup-config
Policer binding rules
Consider the following rules when binding a policy-map to an interface:
• You can bind the same policy-map to multiple interfaces but only one policy per interface per
direction is allowed.
• You cannot bind policy-maps to an interface if a class map is not associated with the policy-map.
• If policy-map is bound to an interface and the policy-map does not have mandatory Policer
attributes, then traffic coming on that interface will be treated as conformed traffic. Packets on that
interface will be marked as green and color based actions such as DSCP, CoS mapping and so on
will not be applied.
Displaying policing settings and policy-maps
Consider the topics discussed below when displaying policing settings and policy-maps.
Displaying policy-maps
In the following example, the show policymap command is used to display Policer policies and
parameters set for the 10-gigabit Ethernet interface 4/1 inbound traffic.
switch(conf-if-te-5/1/33)# do show policy-map interface tengigabitethernet 5/1/33
Ingress Direction :
Policy-Map pmap1
Class default
Police cir 43454
Stats:
Operational cir:39944 cbs:6518 eir:0 ebs:0
Conform Byte:0 Exceed Byte:0 Violate Byte:0
Egress Direction :
Policy-Map pmap1
Class default
Police cir 43454
Stats:
Binding the policy-map to an interface
510
Network OS Administrator’s Guide
53-1003225-04