Configuring port-based traffic policing

Follow these steps to associate the policy map with the Interface. By associating the policy map, the policing parameters are applied to the port.

Before you begin

Use an ingress or egress policy map that has been created and populated with policing parameters.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode
    device(config)# interface ethernet 2/2
    
  3. Attach an input or output policy map.
    device(conf-if-eth-2/2)# service-policy out policy_2
    
    For rate limiting ingress traffic just replace the out keyword with in and use an ingress policy map.
  4. Return to privileged EXEC mode.
    device(conf-if-eth-2/2)# end
    
  5. Verify the configuration.
    device# show policy-map interface ethernet 2/2 out
    
    Egress Direction :
     Policy-Map policy_2
        Class default
          Police cir 4000000 cbs 50000 eir 800000 ebs 400000
            Stats:
              Operational cir:4006912 cbs:50000 eir:0 ebs:400000
              Conform Byte:0 Exceed Byte:0 Violate Byte:0
    
    Note

    Note

    Egress policer is not supported on the SLX 9150 device. The police command affects only the CIR.

Port-based traffic policing configuration example

device# configure terminal
device(config)# interface ethernet 2/2
device(conf-if-eth-2/2)# service-policy out policy_2
device(conf-if-eth-2/2)# end
device# show policy-map interface ethernet 2/2 out