Rate Limit on Arista switch

glitchlist Uncategorized Leave a Comment

If you need to limit egress/ingress trafic on Arista switch read this

First create a policy-map :

policy-map type qos [TEST]
   class class-default
   police cir 5000 mbps bc 10 mbytes

It is important to select class-default for applying the policy to all traffic, if you need a certains queue you can do it

Second apply the policy to an interface

interface ethernet 10
  service-policy type qos input TEST

Verify :

show policy-map TEST summary 
Service-policy input: TEST
  Hardware programming status: Successful
  Number of class maps: 1
  Configured on: Ethernet 10 
  Active on: Ethernet 10
  Inactive on: 
show policy-map TEST counters 
Service-policy input: TEST
  Hardware programming status: Successful

  Class-map: class-default (match-any)
       police rate 5000 mbps burst-size 10 mbytes
        Interface: Ethernet 10
          Below the rate limit 2667 packets, 845839 bytes

That’s all

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.