433
Figure 150
Network diagram for ARP gateway protection configuration
Configuration procedure
# Configure ARP gateway protection on Router B.
<RouterB> system-view
[RouterB] interface gigabitethernet1/0/1
[RouterB-GigabitEthernet1/0/1] arp filter source 10.1.1.1
[RouterB-GigabitEthernet1/0/1] quit
[RouterB] interface gigabitethernet1/0/2
[RouterB-GigabitEthernet1/0/2] arp filter source 10.1.1.1
After the configuration is complete, Router B discards the ARP packets whose source IP address is that of
the gateway.
Configuring ARP filtering
To prevent gateway spoofing and user spoofing, the ARP filtering feature controls the forwarding of ARP
packets on a port.
The port checks the sender IP and MAC addresses in a received ARP packet against configured ARP
filtering entries. If a match is found, the packet is handled normally. If not, the packet is discarded.
Configuration procedure
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Enter Layer 2 Ethernet interface
view.
interface
interface-type interface-
number
—
3.
Configure an ARP filtering
entry.
arp filter binding
ip-address mac-
address
Required
Not configured by default