389
Configuring ARP gateway protection
The ARP gateway protection feature, if configured on ports not connected with the gateway, can block
gateway spoofing attacks.
When such a port receives an ARP packet, it checks whether the sender IP address in the packet is
consistent with that of any protected gateway. If yes, it discards the packet. If not, it handles the packet
normally.
Configuration guidelines
Follow these guidelines when you configure ARP gateway protection:
• You can enable ARP gateway protection for up to eight gateways on a port.
• Commands arp filter source and arp filter binding cannot be both configured on a port.
• If ARP gateway protection works with ARP detection, MFF, and ARP snooping, ARP gateway
protection applies first.
Configuration procedure
To configure ARP gateway protection:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet interface
view/Layer 2 aggregate interface view.
interface interface-type
interface-number
N/A
3. Enable ARP gateway protection for a
specific gateway.
arp filter source ip-address Disabled by default
Configuration example
Network requirements
As shown in Figure 121, Host B launches gateway spoofing attacks to Switch B. As a result, traffic that
Switch B intends to send to Switch A is sent to Host B.
Configure Switch B to block such attacks.