< Home

address-mode (AP provisioning view)

Function

The address-mode command sets the mode in which an AP obtains an IP address.

The undo address-mode command disables the AC from delivering this parameter setting to APs after the configuration is delivered using the commit command.

By default, the mode in which an AP obtains an IP address is not configured.

Format

address-mode { dhcp | static }

undo address-mode

Parameters

Parameter Description Value

dhcp

Indicates that an IP address is obtained in DHCP mode. The AP functions as a DHCP client and is assigned an IP address by the DHCP server.

-

static

Indicates that a static IP address is obtained. The AP must be configured with a static IP address.

-

Views

AP provisioning view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the address-mode command to configure an AP to obtain an IP address in DHCP or static mode.

Follow-up Procedure

Run the commit command to deliver configuration to APs and restart the APs to make the configuration take effect.

Example

# Configure an AP to obtain an IP address in DHCP mode.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] provision-ap
[HUAWEI-wlan-provision-ap] address-mode dhcp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >