clear dhcp relay binding
Syntax
Release Information
Command introduced in Junos OS Release 8.3.
all and interface options added in Junos OS Release 8.4.
Description
Clear the binding state of a Dynamic Host Configuration Protocol (DHCP) client from the client table.
Options
- all
(Optional) Clear the binding state for all DHCP clients.
- interface interface-name
(Optional) Clear the binding state for DHCP clients on the specified interface.
- ip-address
(Optional) IP address of the DHCP client.
- mac-address
(Optional) MAC address of the DHCP client.
- 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 relay bindingclear dhcp relay binding all
clear dhcp relay binding interface
Output Fields
Table 1 lists the output fields for the clear dhcp relay binding command.
Table 1: clear dhcp relay binding Output Fields
Field Name | Field Description | Level of Output |
|---|---|---|
number clients, (number bound, number selecting, number renewing, number rebinding) | Summary counts of the total number of DHCP clients and the number of DHCP clients in each state | detail none |
IP address | IP address of the DHCP client. | All levels |
Hardware address | Hardware address of the DHCP client. | All levels |
Type | Type of DHCP packet processing performed on the router:
| All levels |
Lease expires at | Date and time at which the client's IP address lease expires. | All levels |
State | State of the DHCP relay address binding table on the DHCP client:
| detail |
Active binding information | Information about active IP address binding:
| All levels (unless specified otherwise) when command includes ip-address or mac-address value |
Lease information | Information about the client's IP address lease:
| All levels (unless specified otherwise) when command includes ip-address or mac-address value |
Sample Output
clear dhcp relay binding
The following sample output displays the address bindings in the DHCP client table before and after the clear dhcp relay binding command is issued.
user@host> show dhcp relay bindingIP address Hardware address Type Lease expires at 100.20.32.1 90:00:00:01:00:01 active 2007-02-08 16:41:17 EST
user@host> clear dhcp relay binding 100.20.32.1 user@host> show dhcp relay bindingclear dhcp relay binding all
user@host> clear dhcp relay binding allclear dhcp relay binding interface
user@host> clear dhcp relay binding interface
fe-0/0/2
