clear dhcpv6-server leases
Syntax
明确dhcpv6-server租赁(all-vrfs | vrf ] | vrf ]
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.
-
vrf -
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
-
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
清算艾尔l DHCPv6 server leases.
switch(config)#dhcpv6-server vrf primaryswitch(config-dhcpv6-server)#disableswitch(config-dhcpv6-server)#exitswitch(config)#exitswitch#clear dhcpv6-server leases
清算艾尔l DHCPv6 server leases for VRFprimary-vrf.
switch(config)#dhcpv6-server vrf primaryswitch(config-dhcpv6-server)#disableswitch(config-dhcpv6-server)#exitswitch(config)#exitswitch#clear dhcpv6-server leases vrfprimary-vrf
Clear the DHCPv6 server lease for IP address2001::1on VRFprimary-vrf.
switch(config)#dhcpv6-server vrf primaryswitch(config-dhcpv6-server)#disableswitch(config-dhcpv6-server)#exitswitch(config)#exitswitch#clear dhcpv6-server leases 2001::1 vrfprimary-vrf