Configuring the DHCP relay agent to release an IP address

You can configure the relay agent to release a client's IP address. The relay agent sends a DHCP-RELEASE message that contains the IP address. Upon receiving the DHCP-RELEASE message, the DHCP server releases the IP address. Meanwhile, the client entry is removed from the DHCP relay agent. Dynamic client entries can be generated after you enable address check or IP source guard on the DHCP relay agent. For more information about IP source guard, see Security Configuration Guide.

To configure the DHCP relay agent to send DHCP-RELEASE messages:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure the DHCP relay agent to release an IP address.

dhcp relay release ip client-ip

The IP address must be in a dynamic client entry.