clear dhcpv6 relay binding
Syntax
clear dhcpv6 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 Dynamic Host Configuration Protocol for IPv6 (DHCPv6) clients from the client table.
Options
address | (Optional) Clear the binding state for the DHCPv6 client, using one of the following entries:
|
all | (Optional) Clear the binding state for all DHCPv6 clients. |
dual-stack | (Optional) Clear the binding state for DHCPv6 clients and the associated DHCPv4 bindings in the single-session DHCP dual stack. DHCPv4 clients created in a DHCPv4-only stack are not affected. |
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 (*). |
interface interface-name | (Optional) Clear the binding state for DHCPv6 clients on the specified interface. |
logical-system logical-system-name | (Optional) Clear the binding state for DHCPv6 clients on the specified logical system. |
routing-instance routing-instance-name | (Optional) Clear the binding state for DHCPv6 clients on the specified routing instance. |
Required Privilege Level
view
Output Fields
See show dhcpv6 relay binding
for an explanation of output fields.
Sample Output
- clear dhcpv6 relay binding
- clear dhcpv6 relay binding <prefix>
- clear dhcpv6 relay binding all
- clear dhcpv6 relay binding dual-stack all
- clear dhcv6p relay binding interface
- clear dhcpv6 relay binding <interfaces-vlan>
- clear dhcpv6 relay binding <interfaces-wildcard>
clear dhcpv6 relay binding
The following sample output displays the DHCPv6 bindings before
and after the clear dhcpv6 relay binding
command is issued.
user@host> show dhcpv6 relay binding Prefix Session Id Expires State Interface Client DUID 2001:db8:3c4d:15::/64 1 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01 2001:db8:3c4d:16::/64 2 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:02 2001:db8:3c4d:17::/64 3 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:03 2001:db8:3c4d:18::/64 4 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:04 2001:db8:3c4d:19::/64 5 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:05 2001:db8:3c4d:20::/64 6 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:06
clear dhcpv6 relay binding <prefix>
user@host> clear dhcpv6 relay binding 2001:db8:3c4d:15::/64 user@host> show dhcpv6 relay binding Prefix Session Id Expires State Interface Client DUID 2001:db8:3c4d:16::/64 2 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:02 2001:db8:3c4d:17::/64 3 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:03 2001:db8:3c4d:18::/64 4 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:04 2001:db8:3c4d:19::/64 5 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:05 2001:db8:3c4d:20::/64 6 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:06
clear dhcpv6 relay binding all
The following command clears all DHCP relay agent bindings:
user@host> clear dhcpv6 relay binding all
clear dhcpv6 relay binding dual-stack all
The following command clears all DHCPv6 relay agent bindings for all DHCPv6 clients and the associated DHCPv4 bindings in the single-session DHCP dual stack. DHCPv4 clients created in a DHCPv4-only stack are not affected.
user@host> clear dhcpv6 relay binding dual-stack all
clear dhcv6p relay binding interface
The following command clears DHCPv6 relay agent bindings on a specific interface:
user@host> clear dhcpv6 relay binding interface fe-0/0/2
clear dhcpv6 relay binding <interfaces-vlan>
The following command uses the interfaces-vlan option to clear all DHCPv6 relay agent bindings on top of the underlying
interface ae0
, which clears DHCPv6 bindings on all demux
VLANs on top of ae0
:
user@host> clear dhcpv6 relay binding interface ae0
clear dhcpv6 relay binding <interfaces-wildcard>
The following command uses the interfaces-wildcard option to clear all DHCPv6 relay agent bindings over a specific interface:
user@host> clear dhcpv6 relay binding ge-1/0/0.*
Release Information
Command introduced in Junos OS Release 11.4.
Options interfaces-vlan and interfaces-wildcard added in Junos OS Release 12.1.
Option dual-stack
added in Junos OS Release 15.1.