dhcp release-packet source-ip

Function

The dhcp release-packet source-ip command sets the source IP address in the header of the DHCPv4 RELEASE packet.

By default, the IP address of the interface through which the device is connected to the DHCPv4 server is used as the source IP address in the header of the DHCPv4 RELEASE packet.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcp release-packet source-ip { interface-ip | subscriber-ip }

Parameters

Parameter Description Value
interface-ip

Indicates that the IP address of the interface through which the device is connected to the DHCPv4 server is used as the source IP address in the header of the DHCPv4 RELEASE packet.

-

subscriber-ip

Indicates that the IP address of a user is used as the source IP address in the header of the DHCPv4 RELEASE packet.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

When a DHCPv4 user gets offline, the functioning as a DHCPv4 relay, sends a DHCPv4 RELEASE packet to the DHCPv4 server. The dhcp release-packet source-ip command is used to configure the source IP address in the header of the DHCPv4 RELEASE packet.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Specify the IP address of a DHCPv4 user as the source IP address in the header of the DHCPv4 RELEASE packet.
<HUAWEI> system-view
[~HUAWEI] dhcp release-packet source-ip subscriber-ip
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >