222
Task Command
Clear DHCPv6 packet statistics for DHCPv6 snooping.
reset ipv6 dhcp snooping packet
statistics
[
slot
slot-number
]
DHCPv6 snooping configuration examples
Example: Configuring DHCPv6 snooping
Network configuration
As shown in Figure 82, Switch B is connected to the authorized DHCPv6 server through
GigabitEthernet 1/0/1, to the unauthorized DHCPv6 server through GigabitEthernet 1/0/3, and to the
DHCPv6 client through GigabitEthernet 1/0/2.
Configure only the port connected to the authorized DHCPv6 server to forward the responses from
the DHCPv6 server. Enable the DHCPv6 snooping device to record client information in DHCPv6
snooping entries.
Figure 82 Network diagram
Procedure
# Enable DHCPv6 snooping.
<SwitchB> system-view
[SwitchB] ipv6 dhcp snooping enable
# Specify GigabitEthernet 1/0/1 as a trusted port.
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] ipv6 dhcp snooping trust
[SwitchB-GigabitEthernet1/0/1] quit
# Enable the recording of DHCPv6 snooping entries on GigabitEthernet 1/0/2.
[SwitchB]interface gigabitethernet 1/0/2
[SwitchB-GigabitEthernet1/0/2] ipv6 dhcp snooping binding record
[SwitchB-GigabitEthernet1/0/2] quit
Verifying the configuration
# Verify that the DHCPv6 client obtains an IPv6 address and all other configuration parameters only
from the authorized DHCPv6 server. (Details not shown.)
# Display DHCPv6 snooping entries on the DHCPv6 snooping device.
[SwitchB] display ipv6 dhcp snooping binding