[an error occurred while processing this directive] [an error occurred while processing this directive]

clear dhcp relay binding

Syntax

clear dhcp relay binding
<(all | ip-address | mac-address)>
<interface interface-name>
<logical-system logical-system-name>
<routing-instance routing-instance-name>

Release Information

Command introduced in JUNOS Release 8.3.

all and interface options added in JUNOS 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 binding
clear dhcp relay binding all
clear dhcp relay binding interface

Output Fields

See show dhcp binding for an explanation of output fields.

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 binding
IP 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 binding
 

clear dhcp relay binding all

user@host> clear dhcp relay binding all
 

clear dhcp relay binding interface

user@host> clear dhcp relay binding interface fe-0/0/2
 
[an error occurred while processing this directive]