dhcpc unicast-flag enable

Function

The dhcpc unicast-flag enable command sets the Bootp flags field value in a DHCP request message to 0x0000 (Unicast).

The undo dhcpc unicast-flag enable command restores the default configuration.

By default, the Bootp flags field value in a DHCP request message is 0x8000 (Broadcast).

Format

dhcpc unicast-flag enable

undo dhcpc unicast-flag enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

By default, DHCP request and response messages are broadcast ones. If the client requires the server to respond in unicast mode for security, run the dhcpc unicast-flag enable command to set the Bootp flags field value in a DHCP request message to 0x0000 (Unicast) before enabling the DHCP client function.

Example

# Configure the Bootp flags field in the DHCP client request packet to unicast.
<HUAWEI> system-view
[~HUAWEI] dhcpc unicast-flag enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >