How to configure VLAN-based rate-limit on VLAN on ECS4510 series ?

Steven_zhangCreated at:Dec 11, 2019 13:14:26Updated at:Dec 11, 2019 13:14:36

Use class-map to classify the VLAN traffic, and policy-map to restrict rate of traffic.

 

A config example show as below,

ECS4510 series

==== Create the class-map for VLAN classification ====

ECS4510(config)# class-map test

ECS4510(config-cmap)# match vlan 1

========================================

 

==== Policy-map for traffic limitation ====

ECS4510(config)# policy-map VLAN1_limit

ECS4510(config-pmap)# class test

ECS4510(config-pmap-c)# police flow 10000 1600000 conform-action transmit violate-action drop

(Restricted to 10 Mbps, and drop packets if exceeded)

================================================================

 

==== Apply this policy-map to the ports (input for ingress, output for egress) ====

ECS4510(config)# interface ethernet 1/1

ECS4510(config-if)# service-policy input VLAN1_limit

==============================================

 

==== Check the configuration ====

ECS4510# show policy-map

Policy Map VLAN1_limit

Description:

 class test

  police flow 10000 1600000 conform-action transmit violate-action drop

 

ECS4510# show policy-map interface 1/1 input

Service-policy VLAN1_limit

============================