clear dhcpv6-server leases
Syntax
clear dhcpv6-server leases [all-vrfs | <IPV6-ADDR> vrf <VRF-NAME>] | vrf <VRF-NAME>]
Description
Clears DHCPv6 server lease information. The DHCPv6 server must be disabled before clearing lease information.
Command context
Manager (#)
Parameters
all-vrfs
Clears leases for all VRFs.
<IPV6-ADDR> vrf <VRF-NAME>
Clears the lease for a specific client on a specific VRF. Specify the client address in IPv6 format (
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F. You can use two colons (::) to represent consecutive zeros (but only once), remove leading zeros, and collapse a hextet of four zeros to a single 0. For example, this address2222:0000:3333:0000:0000:0000:4444:0055
becomes2222:0:3333::4444:55
.vrf <VRF-NAME>
Clears leases for a specific VRF.
Authority
Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.
Examples
Clearing all DHCPv6 server leases.
switch(config)# dhcpv6-server vrf primary switch(config-dhcpv6-server)# disable switch(config-dhcpv6-server)# exit switch(config)# exit switch# clear dhcpv6-server leases
Clearing all DHCPv6 server leases for VRF primary-vrf.
switch(config)# dhcpv6-server vrf primary switch(config-dhcpv6-server)# disable switch(config-dhcpv6-server)# exit switch(config)# exit switch# clear dhcpv6-server leases vrf primary-vrf
Clear the DHCPv6 server lease for IP address 2001::1 on VRF primary-vrf.
switch(config)# dhcpv6-server vrf primary switch(config-dhcpv6-server)# disable switch(config-dhcpv6-server)# exit switch(config)# exit switch# clear dhcpv6-server leases 2001::1 vrf primary-vrf