No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Security

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).


A man-in-the-middle (MITM) attack is a common ARP spoofing attack.

An MITM attacker establishes connections with two ends and exchanges data between them. The two ends consider that they are directly communicating, but actually the attacker has controlled the entire session. In an MITM attack, the attacker intercepts all packets going between the two ends and inserts new ones.

Figure 11-4 shows an MITM attack scenario. An attacker poses as UserB to send a bogus ARP packet to UserA. UserA then records an incorrect ARP entry for UserB. The attacker easily obtains information exchanged between UserA and UserB. Information between UserA and UserB is not protected or secure.

Figure 11-4  Man-in-the-middle attack

To defend against MITM attacks, configure dynamic ARP inspection (DAI) on the Router.

DAI prevents MITM attacks from using a DHCP snooping binding table. When the switch receives an ARP packet, it compares the source IP address, source MAC address, interface number, and VLAN ID of the ARP packet with binding entries. If the ARP packet matches a binding entry, the switch considers the ARP packet valid and allows the packet to pass through. If the ARP packet does not match a binding entry, the switch considers the ARP packet invalid and discards the packet.


This function is available only when DHCP snooping is configured. The device enabled with DHCP snooping generates DHCP snooping binding entries when DHCP users go online. If a user uses a static IP address, you need to manually configure a static binding entry for the user. For details about DHCP snooping, see DHCP Snooping Principle.

When an attacker connected to the Router enabled with DAI sends bogus ARP packets, the Router detects the attacks based on the binding entries and discards the bogus ARP packets. When both the DAI and packet discarding alarm functions are enabled on the Router, the Router generates alarms when the number of discarded ARP packets matching no binding entry exceeds the alarm threshold.

Updated: 2019-08-07

Document ID: EDOC1100034077

Views: 135132

Downloads: 244

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next