clear dhcp-server leases

Syntax

clear dhcp-server leases [all-vrfs |vrf] | vrf]

描述

Clears DHCPv4 server lease information. The DHCPv4 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 IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255. You can remove leading zeros. For example, the address192.169.005.100becomes192.168.5.100.

vrf

清除为一个特定的租赁VRF.

权威

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 DHCPv4 server leases.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#disableswitch(config-dhcp-server)#exitswitch(config)#exitswitch#clear dhcp-server leases

Clearing all DHCPv4 server leases for VRFprimary-vrf.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#disableswitch(config-dhcp-server)#exitswitch(config)#exitswitch#clear dhcp-server leases vrfprimary-vrf

Clear the DHCPv4 server lease for IP address10.10.10.1on VRFprimary-vrf.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#disableswitch(config-dhcp-server)#exitswitch(config)#exitswitch#clear dhcp-server leases 10.10.10.1 vrfprimary-vrf