198
Task Command
Display information about the file that stores DHCPv6
snooping entries.
display ipv6 dhcp snooping binding database
Display DHCPv6 packet statistics for DHCPv6
snooping .
display ipv6 dhcp snooping packet statistics [ slot
slot-number ]
Clear DHCPv6 snooping entries.
reset ipv6 dhcp snooping binding { all | address
ipv6-address [ vlan vlan-id ] }
Clear DHCPv6 packet statistics for DHCPv6 snooping .
reset ipv6 dhcp snooping packet statistics [ slot
slot-number ]
DHCPv6 snooping configuration example
Network requirements
As shown in Figure 81, configure FortyGigE 1/1/1 connecting to the DHCPv6 server as a trusted port.
Enable DHCPv6 snooping to record client information in DHCPv6 snooping entries.
Figure 81 Network diagram
Configuration procedure
# Enable DHCPv6 snooping.
<SwitchB> system-view
[SwitchB] ipv6 dhcp snooping enable
# Specify FortyGigE 1/1/1 as a trusted port.
[SwitchB] interface FortyGigE 1/1/1
[SwitchB-FortyGigE1/1/1] ipv6 dhcp snooping trust
[SwitchB-FortyGigE1/1/1] quit
# Enable recording of client information in DHCPv6 snooping entries.
[SwitchB]interface FortyGigE 1/1/2
[SwitchB-FortyGigE1/1/2] ipv6 dhcp snooping binding record
[SwitchB-FortyGigE1/1/2] quit
FGE1/1/1
Switch A
DHCPv6 server
Switch B
DHCPv6 snooping
FGE1/1/2
FGE1/1/3
Unauthorized
DHCPv6 server
DHCPv6 client