Configuring basic DHCPv6 snooping features in a common network
Restrictions and guidelines
To make sure DHCPv6 clients can obtain valid IPv6 addresses, specify the ports connected to authorized DHCPv6 servers as trusted ports. The trusted ports and the ports connected to DHCPv6 clients must be in the same VLAN.
If you configure DHCPv6 snooping settings on a Layer 2 Ethernet interface that is a member port of a Layer 2 aggregate interface, the settings do not take effect unless the interface is removed from the aggregation group.
Enabling DHCPv6 snooping
Enter system view.
system-view
Enable DHCPv6 snooping.
ipv6 dhcp snooping enable
By default, DHCPv6 snooping is disabled.
Specifying a DHCPv6 snooping trusted port
Enter interface view.
interface interface-type interface-number
This interface must connect to the DHCPv6 server.
Specify the port as a trusted port.
ipv6 dhcp snooping trust
By default, all ports are untrusted ports after DHCPv6 snooping is enabled.
Enabling recording DHCPv6 snooping entries
Enter system view.
system-view
Enter interface view.
interface interface-type interface-number
This interface must connect to the DHCPv6 clients.
Enable recording DHCPv6 snooping entries. Choose the following tasks as needed:
Enable recording DHCPv6 snooping address entries.
ipv6 dhcp snooping binding record
By default, recording of DHCPv6 snooping address entries is disabled.
Enable recording DHCPv6 snooping prefix entries.
ipv6 dhcp snooping pd binding record
By default, recording of DHCPv6 snooping prefix entries is disabled.