Configuring bridge-domain based rate limiting

Before you begin

Before configuring bridge-domain based limiting, the associated bridge-domain VPLS or VLL instance must be configured.

About this task

Perform the following steps to apply a bridge domain for traffic filtering and policing.

Procedure

  1. In privileged EXEC mode, access global configuration mode.
    device# configure terminal
    
  2. Create the class map and access its configuration mode.
    device(config)# class-map BD-1000
    
  3. Add a match statement to the bridge domain.
    device(config-classmap)# match bridge-domain 1000
    
  4. Access global configuration mode.
    device(config-classmap)# exit
    
  5. Create the policy map and access its configuration mode.
    device(config)# policy-map QOS-BD
    
  6. Add the class map to the policy map and access the policy-class configuration mode.
    device(config-policymap)# class BD-1000
    
  7. Configure the class map.
    device(config-policymap-class)# police cir 100000 cbs 6000
    
    This step configures the committed information rate for the class map.
  8. Access global configuration mode.
    device(config-policymap-class)# exit
    device(config-policymap)# exit
    
  9. Access the interface configuration mode for the interface that you want to apply the policy map.
    device(config)# interface ethernet 1/4
    
  10. Apply the policy map to the interface.
    device(conf-if-eth-1/4)# service-policy in QOS-BD
    
  11. Access global configuration mode.
    device(conf-if-eth-1/4)# exit
    
  12. Optionally, apply the policy map globally.
    device(config)# qos service-policy in QOS-BD

Example

The following example provides the configuration in the previous steps.

device# configure terminal
device(config)# class-map BD-1000
device(config-classmap)# match bridge-domain 1000
device(config-classmap)# exit
device(config)# policy-map QOS-BD
device(config-policymap)# class BD-1000
device(config-policymap-class)# police cir 100000 cbs 6000
device(config-policymap-class)# exit
device(config-policymap)# exit
device(config)# interface ethernet 1/4
device(conf-if-eth-1/4)# service-policy in QOS-BD
device(conf-if-eth-1/4)# exit
device(config)# qos service-policy in QOS-BD