The IPv6 Neighbor Discovery (ND) protocol uses five types of ICMPv6 messages to implement the following functions: address resolution, neighbor reachability detection, duplicate address detection, router discovery, prefix discovery, automatic address configuration, and redirection. The following lists the five types of ICMPv6 messages used by ND:
For details about ND, see Neighbor Discovery in "Basic IPv6 Configuration" in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - IP Services.
ND provides powerful functions but lacks security mechanisms. Attackers often use ND to attack network devices. For example, in an RA attack, an attacker sends RA messages advertising itself as a gateway to hosts. The hosts then modify their ND entries or record incorrect IPv6 parameters. As a result, the hosts cannot communicate normally.
Based on the characteristics of RA attacks, the IPv6 RA guard function uses the following methods to prevent malicious RA attacks on Layer 2 access devices:
The two methods are mutually exclusive, and only one method can be configured on a Layer 2 interface.