416
Configuring ARP defense against IP packet attacks
If the device receives a large number of IP packets from a host to unreachable destinations:
•
The device sends a large number of ARP requests to the destination subnets, and thus the load of
the destination subnets increases.
•
The device keeps trying to resolve destination IP addresses, which increases the load of the CPU.
To protect the device from IP packet attacks, enable the ARP source suppression function or ARP black
hole routing function.
If the packets have the same source address, enable the ARP source suppression function. With the
function enabled, whenever the number of ARP requests triggered by the packets with unresolvable
destination IP addresses from a host within 5 seconds exceeds a specified threshold, the device
suppresses the packets of the sending host from triggering any ARP requests within the following 5
seconds.
If the packets have various source addresses, enable the ARP black hole routing function. After receiving
an IP packet whose destination IP address cannot be resolved by ARP, the device with this function
enabled immediately creates a black hole route and simply drops all packets matching the route during
the aging time of the black hole route.
Configuring ARP source suppression
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Enable ARP source suppression.
arp source-suppression enable
Required.
Disabled by default.
3.
Set the maximum number of packets with the
same source IP address but unresolvable
destination IP addresses that the device can
receive in 5 consecutive seconds.
arp source-suppression limit
limit-value
Optional
10 by default.
Enabling ARP black hole routing
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Enable ARP black hole
routing.
arp resolving-route enable
Optional
Disabled by default
Displaying and maintaining ARP defense against IP packet
attacks
To do…
Command…
Remarks
Display the ARP source suppression
configuration information
display arp source-suppression
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view