434
NOTE:
•
configure up to eight ARP filtering entries on a port.
•
Commands
arp filter source
and
arp filter binding
cannot be both configured on a port.
•
If ARP filtering works with ARP detection, MFF, ARP snooping, and ARP fast-reply, ARP filtering
applies first.
ARP filtering configuration example
Network requirements
As shown in
, the IP and MAC addresses of Host A are 10.1.1.2 and 000f-e349-1233,
respectively. The IP and MAC addresses of Host B are 10.1.1.3 and 000f-e349-1234, respectively.
Configure ARP filtering on GigabitEthernet1/0/1 and GigabitEthernet1/0/2 of Router B to permit
specific ARP packets only.
Figure 151
Network diagram for ARP filtering configuration
Configuration procedure
# Configure ARP filtering on Router B.
<RouterB> system-view
[RouterB] interface gigabitethernet1/0/1
[RouterB-GigabitEthernet1/0/1] arp filter binding 10.1.1.2 000f-e349-1233
[RouterB-GigabitEthernet1/0/1] quit
[RouterB] interface gigabitethernet1/0/2
[RouterB-GigabitEthernet1/0/2] arp filter binding 10.1.1.3 000f-e349-1234
After the configuration is complete, GigabitEthernet1/0/1 permits incoming ARP packets with sender IP
and MAC addresses as 10.1.1.2 and 000f-e349-1233 and discards other ARP packets.
GigabitEthernet1/0/2 permits incoming ARP packets with sender IP and MAC addresses as 10.1.1.9
and 000f-e349-1233 and discards other ARP packets. ARP packets from Host A are permitted, but those
from Host B are discarded.