This section provides an example for configuring ARP bidirectional isolation and ARP VLAN CAR. A configuration networking diagram is provided to help you understand the configuration procedure. The example provides the networking requirements, configuration roadmap, configuration procedure, and configuration files.
ARP is an open protocol and sets up IP-address-to-MAC-address mappings. When being used on an Ethernet network, ARP offers possibilities for malicious attackers because of its simplicity, openness, and lack of security measures. Attackers forge and send excessive ARP request and response packets to the router. The ARP buffer of the router has a limited storage capability, so that it will be incapable of caching legitimate ARP packets after being overflowed. ARP security enables the router to process ARP request and reply packets separately, so that the router can rapidly respond to ARP request packets. In addition, ARP security allows you to set a rate limit for ARP packets, so that excessive ARP packets will be discarded when the preset rate limit is reached.
As shown in Figure 1, only the user-side interface is connected to the Layer 2 devices. Therefore, configure ARP bidirectional isolation and ARP VLAN CAR on the user-side interface GE 0/1/0.
The configuration roadmap is as follows:
Enable ARP bidirectional isolation.
Configure the rate limit of packets to be sent to the CPU.
To complete the configuration, you need the following data:
Rate limit of ARP packets to be sent to the CPU
<HUAWEI> system-view [~HUAWEI] sysname Device [*HUAWEI] commit [~Device] interface gigabitethernet 0/1/0 [~Device-GigabitEthernet0/1/0] arp-safeguard enable [*Device-GigabitEthernet0/1/0] commit
[~Device-GigabitEthernet0/1/0] arp rate-limit 50 [*Device-GigabitEthernet0/1/0] commit [~Device-GigabitEthernet0/1/0] quit
Check ARP bidirectional isolation statistics on the interface board in slot 1.
<Device> display arp-safeguard statistics slot 1 ArpRequest-Count : 23 ArpReply-Count : 23 ArpToCp-Count : 23 ArpDrop-Count : 23
Check the rate limit of ARP packets on GE 0/1/0.
<Device> display arp rate-limit interface gigabitethernet 0/1/0 Interface: GigabitEthernet0/1/0 arp rate-limit: 50