DHCPv6 can dynamically allocate IPv6 addresses to DHCPv6 clients. However, this process has security risks, such as spoofing attacks. DHCPv6 snooping can be deployed to ensure that clients can obtain IPv6 addresses from a legitimate server. Figure 1 shows DHCPv6 snooping deployed on a Layer 3 network. When DHCPv6 snooping is deployed on a Layer 3 network, the DHCPv6 relay function must be enabled.
As shown in Figure 1, DHCPv6 snooping can only work on a Layer 3 device. The following operations can be performed on the DHCPv6 relay agent to prevent various types of DHCPv6 attacks: