dhcp relay client-detect enable

Syntax

dhcp relay client-detect enable

undo dhcp relay client-detect enable

View

Interface view

Default level

2: System level

Parameters

None

Description

Use dhcp relay client-detect enable to enable offline detection on the DHCP relay agent.

Use undo dhcp relay client-detect enable to disable offline detection on the DHCP relay agent.

By default, this function is disabled.

With this function enabled on an interface, the DHCP relay agent removes a client’s IP-to-MAC binding entry when it is aged out, and sends a DHCP-RELEASE request to the DHCP server to release the IP address of the client.

Examples

# Enable offline detection on the DHCP relay agent.

<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay client-detect enable