clear dhcp relay binding
Syntax
clear dhcp relay binding
<address>
<all>
<dual-stack>
<interface interface-name>
<interfaces-vlan>
<interfaces-wildcard>
<logical-system logical-system-name>
<routing-instance routing-instance-name>
Description
Clear the binding state of a Dynamic Host Configuration Protocol (DHCP) client from the client table.
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. |
dual-stack | (Optional) Clear the binding state for DHCPv4 clients and the associated DHCPv6 bindings in the single-session DHCP dual stack. DHCPv6 clients created in a DHCPv6-only stack are not affected. |
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) The set of interfaces on which to clear bindings. 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
Output Fields
See show dhcp relay binding for an explanation of output fields.
Sample Output
- clear dhcp relay binding
- clear dhcp relay binding all
- clear dhcp relay binding dual-stack all
- clear dhcp relay binding interface
- clear dhcp relay binding <interfaces-vlan>
- clear dhcp relay binding <interfaces-wildcard>
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 binding IP address Hardware address Type Lease expires at 198.51.100.32 00:00:5e:00:53:01 active 2007-02-08 16:41:17 EST 192.168.14.8 00:00:5e:00:53:02 active 2007-02-10 10:01:06 EST user@host> clear dhcp relay binding 198.51.100.32 user@host> show dhcp relay binding IP address Hardware address Type Lease expires at 192.168.14.8 00:00:5e:00:53:02 active 2007-02-10 10:01:06 EST
clear dhcp relay binding all
The following command clears all DHCP relay agent bindings:
user@host> clear dhcp relay binding all
clear dhcp relay binding dual-stack all
The following command clears all DHCP relay agent bindings for all DHCPv4 clients and the associated DHCPv6 bindings in the single-session DHCP dual stack. DHCPv6 clients created in a DHCPv6-only stack are not affected.
user@host> clear dhcp relay binding dual-stack all
clear dhcp relay binding interface
The following command clears DHCP relay agent bindings on a specific interface:
user@host> clear dhcp relay binding interface fe-0/0/3
clear dhcp relay binding <interfaces-vlan>
The following command uses the interfaces-vlan option to clear all DHCP relay agent bindings on top of the underlying
interface ae0
, which clears DHCP bindings on all demux
VLANs on top of ae0
:
user@host> clear dhcp relay binding interface ae0
clear dhcp relay binding <interfaces-wildcard>
The following command uses the interfaces-wildcard option to clear all DHCP relay agent bindings over a specific interface:
user@host> clear dhcp relay binding ge-1/0/0.*
Release Information
Command introduced in Junos OS Release 8.3.
Options all
and interface
added in Junos
OS Release 8.4.
Options interfaces-vlan and interfaces-wildcard added in Junos OS Release 12.1.
Option dual-stack
added in Junos OS Release 15.1.