419
Configuration procedure
To configure ARP gateway protection:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet interface
and Layer 2 aggregate interface
view.
interface interface-type
interface-number
N/A.
3.
Enable ARP gateway protection
for the specified gateway.
arp filter source
ip-address
By default, ARP gateway
protection is disabled.
Configuration example
Network requirements
As shown in
, 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.
Figure 128 Network diagram
Configuration procedure
# Configure ARP gateway protection on Switch B.
<SwitchB> system-view
[SwitchB] interface fortygige 1/1/1
[SwitchB-FortyGigE1/1/1] arp filter source 10.1.1.1
[SwitchB-FortyGigE1/1/1] quit
[SwitchB] interface fortygige 1/1/2
[SwitchB-FortyGigE1/1/2] arp filter source 10.1.1.1
Verifying the configuration
# Verify that FortyGigE 1/1/1 and FortyGigE 1/1/2 discard the incoming ARP packets whose sender
IP address is the IP address of the gateway.