Related Documentation
- EX, J, M, MX, T Series
- show dhcp server binding
- M, MX, T Series
- Clearing DHCP Bindings for Subscriber Access
clear dhcp server binding
Syntax
Release Information
Command introduced in Junos OS Release 9.0.
Options interfaces-vlan and interfaces-wildcard added in Junos OS Release 12.1.
Description
Clear the binding state of a Dynamic Host Configuration Protocol (DHCP) client from the client table on the extended DHCP local server.
Options
address | — | (Optional) Clear the binding state for the DHCP client, using one of the following entries:
|
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.
|
interfaces-vlan | — | (Optional) Clear the binding state on the interface VLAN ID and S-VLAN ID. |
interfaces-wildcard | — | (Optional) Clear bindings on a set of interfaces. This option supports the use of the wildcard character (*). |
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
Related Documentation
- EX, J, M, MX, T Series
- show dhcp server binding
- M, MX, T Series
- Clearing DHCP Bindings for Subscriber Access
List of Sample Output
clear dhcp server binding <ip-address>clear dhcp server binding all
clear dhcp server binding interface
clear dhcp server binding <interfaces-vlan>
clear dhcp server binding <interfaces-wildcard>
Output Fields
See show dhcp server binding for an explanation of output fields.
Sample Output
clear dhcp server binding <ip-address>
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 binding
2 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.1
user@host> show dhcp server binding
1 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
The following command clears all DHCP local server bindings:
user@host> clear dhcp server binding all
clear dhcp server binding interface
The following command clears DHCP local server bindings on a specific interface:
user@host> clear dhcp server binding interface
fe-0/0/2
clear dhcp server binding <interfaces-vlan>
The following command uses the interfaces-vlan option to clear all DHCP local server bindings on top of the underlying interface ae0, which clears DHCP bindings on all demux VLANs on top of ae0:
user@host> clear dhcp server binding ae0
clear dhcp server binding <interfaces-wildcard>
The following command uses the interfaces-wildcard option to clear all DHCP local server bindings over a specific interface:
user@host> clear dhcp server binding ge-1/0/0.*
Published: 2013-03-14
Related Documentation
- EX, J, M, MX, T Series
- show dhcp server binding
- M, MX, T Series
- Clearing DHCP Bindings for Subscriber Access