The dhcp relay release command configures DHCP relay to send a request to a DHCP server for releasing the IP address for which a client applies.
| Parameter | Description | Value |
|---|---|---|
| client-ip-address | Specifies the IP address of a DHCP client. | The value is in dotted decimal notation. |
| mac-address | Specifies the MAC address of a DHCP client. | The value is in H-H-H format. An H is a hexadecimal number of four digits. |
| server-ip-address | Specifies the IP address of a DHCP server. | The value is in dotted decimal notation. |
The dhcp relay release command is applicable to DHCP relay and can only take effect on the DHCP relay which is connected to the DHCP server directly. When a user is forcibly disconnected, a DHCP relay sends a request to a DHCP server for releasing the IP address assigned to the user.
After DHCP servers receive the request, they release the lease on the specified IP address. DHCP servers can assign released client IP addresses to other clients.
When the IP address of the DHCP server is not specified, there are two cases:
If the dhcp relay release command is used in the system view, release packets are sent to all DHCP servers.
If the dhcp relay release command is used in the interface view, release packets are sent to all relay addresses configured on the interface.