How to configure an AR to limit the rate of traffic based on MAC addresses

You can configure a traffic policy to limit the rate of traffic based on MAC addresses as follows:
#
traffic classifier mac1 operator and
if-match source-mac 0015-c50d-0001 //Configure a matching rule based on the source MAC address 0015-c50d-0001 in the traffic classifier mac1.
traffic classifier mac2 operator and
if-match source-mac 0015-c50d-0002 //Configure a matching rule based on the source MAC address 0015-c50d-0002 in the traffic classifier mac2.
traffic classifier mac3 operator and
if-match source-mac 0015-c50d-0003 //Configure a matching rule based on the source MAC address 0015-c50d-0003 in the traffic classifier mac3.
#
traffic behavior d1
car cir 3000 cbs 564000 pbs 939000 mode color-blind green pass yellow pass red discard //Create the traffic behavior d1 and configure the rate limit to 3000 kbit/s.
#
traffic policy myqos //Configure the traffic policy myqos.
classifier mac1 behavior d1 //Bind the traffic classifier mac1 to the traffic behavior d1.
classifier mac2 behavior d1 //Bind the traffic classifier mac2 to the traffic behavior d1.
classifier mac3 behavior d1 //Bind the traffic classifier mac3 to the traffic behavior d1.
#
interface GigabitEthernet 0/0/0
ip address 10.1.1.1 255.255.255.0
traffic-policy myqos inbound //Apply the traffic policy myqos to the inbound interface.
#

Scroll to top