dhcp relay release

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

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface 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 request the DHCP server with IP address 10.110.91.174 to release IP address 192.168.2.25 of the DHCP client with MAC address 00e0-fc34-2000.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] 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 >