
5.
Configure the rate limit for ARP packets with the specified source IP address.
6.
Configure the rate limit for ARP Miss packets.
7.
Enable log and alarm functions for potential attacks.
Data Preparation
To complete the configuration, you need the following data:
l
Number of limited ARP entries on the interface: 20
l
Anti-spoofing mode used to prevent attacks that are initiated by user 1:
fixed-mac
l
IP addresses of VLANIF10, VLANIF20 and VLANIF30: 2.2.1.10/24, 2.2.4.10/24 and
2.2.2.10/24
l
IP address of the server: 2.2.2.2/24
l
IP address of user 4 that sends a large number of ARP packets: 2.2.4.2/24
l
Rate limit for ARP packets of user 4 and rate limit for ARP packets of other users: 10 pps
and 15 pps
l
Rate limit for ARP Miss packets of common users: 20 pps; rate limit for ARP Miss packets
on the server: 50 pps
l
Interval for writing an ARP log and sending an alarm: 300s
Procedure
Step 1
Create a VLAN, add an interface to the VLAN, and assign an IP address to the VLANIF Interface.
The configuration procedure is not mentioned here.
Step 2
Enable strict ARP learning.
<Huawei>
system-view
[Huawei]
sysname Router
[Router]
arp learning strict
Step 3
Configure interface-based ARP entry limiting.
# The number of limited ARP entries on Ethernet0/0/1, Ethernet0/0/2 and Ethernet0/0/3 is 20.
The following lists the configuration of Ethernet0/0/1.
[Router]
interface ethernet 0/0/1
[Router-Ethernet0/0/1]
arp-limit vlan 10 maximum 20
[Router-Ethernet0/0/1]
quit
Step 4
Enable the ARP anti-spoofing function.
# Set the ARP anti-spoofing mode to
fixed-mac
to prevent ARP spoofing attacks initiated by
user 1.
[Router]
arp anti-attack entry-check fixed-mac enable
Step 5
Enable the ARP anti-attack function to prevent attacks by sending ARP packets with a bogus
gateway address.
# Enable the ARP anti-attack function for preventing user 1 from sending ARP packets with a
bogus gateway address.
[Router]
arp anti-attack gateway-duplicate enable
Step 6
Configure the rate limit for ARP packets with the specified source IP address.
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
6 ARP Security Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
146