clear dhcp

Clears the DHCP binding database.
Syntax
clear dhcp [ ip-address ] [ vrf vrf-name ]
clear dhcp [ vrf vrf-name ]
Parameters
ip-address
Specifies the IP address of the client.
vrf vrf-name
Specifies a non-default Virtual Routing and Forwarding (VRF) instance.
Modes

User EXEC mode

Usage Guidelines

You can remove all entries in the database or remove entries for a specific IP address only.

The vrf vrf-name option is not supported for ICX 7150 or ICX 8100 devices.

Examples

The following example removes all entries from the DHCP binding database.

device# clear dhcp

The following example clears entries for a specific IP address.

device# clear dhcp 10.10.102.4

The following example clears entries for a non-default VRF instance.

device# clear dhcp vrf red
History
Release version Command history
08.0.95 This command was modified to add the vrf vrf-name option.