clear dhcp server binding
Syntax
Release Information
Command introduced in Junos OS Release 9.0.
Description
Clear the binding state of a Dynamic Host Configuration Protocol (DHCP) client from the client table on the extended DHCP local server.
Options
- all
(Optional) Clear the binding state for all DHCP clients.
- ip-address
(Optional) Clear the binding state for the DHCP client with the specified IP address.
- mac-address
(Optional) Clear the binding state for the DHCP client with the specified MAC address.
- interface interface-name
(Optional) Clear the binding state for DHCP clients on the specified interface.

Note: This option clears all bindings whose initial login requests were received over the specified interface. Dynamic demux login requests are not received over the dynamic demux interface, but rather the underlying interface of the dynamic demux interface. To clear a specific dynamic demux interface, use the ip-address or mac-address options.
You cannot use the interface interface-name option with the clear dhcp server binding command for DHCP passive clients (clients that are added as a result of DHCP snooped packets). For passive clients, the interface is not guaranteed to be the next-hop interface to the client, as is the case for active clients.
- logical-system logical-system-name
(Optional) Clear the binding state for DHCP clients on the specified logical system.
- routing-instance routing-instance-name
(Optional) Clear the binding state for DHCP clients on the specified routing instance.
Required Privilege Level
view
List of Sample Output
clear dhcp server bindingclear dhcp server binding all
clear dhcp server binding interface
Output Fields
See show dhcp server binding for an explanation of output fields.
Sample Output
clear dhcp server binding
The following sample output displays the address bindings in the DHCP client table on the extended DHCP local server before and after the clear dhcp server binding command is issued.
user@host> show dhcp server binding2 clients, (0 bound, 0 selecting, 0 renewing, 0 rebinding) IP address Hardware address Type Lease expires at 100.20.32.1 90:00:00:01:00:01 active 2007-01-17 11:38:47 PST 100.20.32.3 90:00:00:02:00:01 active 2007-01-17 11:38:41 PST
user@host> clear dhcp server binding 10.20.32.1user@host> show dhcp server binding1 clients, (0 bound, 0 selecting, 0 renewing, 0 rebinding) IP address Hardware address Type Lease expires at 100.20.32.3 90:00:00:02:00:01 active 2007-01-17 11:38:41 PST
clear dhcp server binding all
user@host> clear dhcp server binding allclear dhcp server binding interface
user@host> clear dhcp server binding interface
fe-0/0/2
