Fat AP and Cloud AP V200R010C00 Command Reference

ip address dhcp-alloc

ip address dhcp-alloc

Function

The ip address dhcp-alloc command enables the DHCP client function on an interface.

The undo ip address dhcp-alloc command disables the DHCP client function on an interface.

By default, the DHCP client function is disabled on an interface.

Format

ip address dhcp-alloc [ unicast ]

undo ip address dhcp-alloc

Parameters

Parameter

Description

Value

unicast

Indicates that the client requests the server to unicast response packets.

-

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enable an interface of the AP to obtain IP addresses using DHCP, enable the DHCP client function on the interface. A BOOTP client applies for an IP address from the server using DHCP. The DHCP client has two functions:
  • Sends DHCP Request messages to the server.
  • Processes DHCP Reply messages from the server.

To obtain an IP address, the DHCP client sends a DHCP Request message to the server. After the server receives the DHCP Request message, it sends a DHCP response message to the DHCP client. The DHCP client obtains the assigned IP address from the response message.

Example

# Enable the DHCP client function on VLANIF100 to obtain an IP address.

<Huawei> system-view
[Huawei] interface vlanif 100
[Huawei-Vlanif100] ip address dhcp-alloc
Translation
Favorite
Download
Update Date:2021-02-27
Document ID:EDOC1100064352
Views:6532969
Downloads:1323
Average rating:5.0Points