
Server 1 sends an ARP request message to the Gateway, and the Gateway sends a unicast ARP response message to Server 1.
Assuming that broadcast ARP request packets need to be counted on the intermediate device SW1, create a MAC ACL to match packets with type 0806 and a source MAC of 0001-0001-0001.
Step 1: Define a MAC ACL to match ARP traffic in one direction (using ARP Requests as an example).
acl mac 4000
rule 0 permit type 0806 ffff source-mac 0001-0001-0001 ffff-ffff-ffff
Step 2: Define classifier matching ACL and counting behaviors.
traffic classifier classifier_1
if-match acl 4000
traffic behavior behavior_1
accounting packet
Step 3: Define QoS related classifiers and behaviors.
qos policy policy_1
classifier classifier_1 behavior behavior_1
Step 4: Apply QoS to the corresponding direction of the corresponding interface.
interface GigabitEthetrne 1/0/1
qos apply policy policy_1 inbound
interface GigabitEthernet 1/0/2
qos apply policy policy_1 outbound
When configuring traffic statistics for ARP packets, note that it is necessary to create a MAC ACL to match ARP packets with type number 0806 based on their source and destination MAC addresses.