< Home

dhcp relay release

Function

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.

Format

dhcp relay release client-ip-address mac-address [ server-ip-address ]

Parameters

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.

Views

Interface view, system view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Send a release packet to a DHCP server at 10.110.91.174, requesting to release the IP address 192.168.2.25 applied for by the client at 0050-ba34-2000.

<sysname> system-view
[sysname] dhcp relay release 192.168.2.25 0050-ba34-2000 10.110.91.174
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >