dhcp relay release (System view)

Function

The dhcp relay release command configures a DHCP relay agent to request a DHCP server to release a DHCP client IP address.

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 the format of H-H-H.

server-ip-address

Specifies the IP address of a DHCP server.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp execute

Usage Guidelines

Usage Scenario

To allow a DHCP relay agent to request a DHCP server to release a DHCP client IP address so that the client can log out, run the dhcp relay release command. If a DHCP server is specified, the DHCP relay agent sends a DHCP Release message only to the specified DHCP server.

Configuration Impact

If the DHCP server's IP address is not specified, the DHCP relay agent sends Release packets to all DHCP servers.

Example

# Configure a DHCP relay agent to send Release packets to the DHCP server with the IP address of 10.110.91.174, requesting the IP address 192.168.2.25 for the DHCP client with the MAC address of 00e0-fc34-2000.
<HUAWEI> system-view
[~HUAWEI] dhcp relay release 192.168.2.25 00e0-fc34-2000 10.110.91.174
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >