< Home

ip-address (AP view)

Function

The ip-address command configures a static IPv4 address and gateway for an AP.

The undo ip-address command restores the default static IPv4 address and gateway for an AP.

By default, no static IPv4 address and gateway are configured for an AP.

Format

ip-address ip-address { mask-length | mask } [ gateway gateway ]

undo ip-address

Parameters

Parameter Description Value

ip-address

Specifies the static IPv4 address for an AP.

The value is in dotted decimal notation.

mask

Specifies the IPv4 address mask for an AP.

The value is in dotted decimal notation.

mask-length

Specifies the IPv4 address mask length for an AP.

The value is an integer that ranges from 0 to 32.

gateway gateway

Specifies the egress gateway for AP routes.

The value is in dotted decimal notation.

Views

AP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure an AP to go online using a specified IPv4 address, run the command to configure a static IPv4 address for the AP.

Prerequisites

The AP has been configured to obtain an IP address in static mode using the address-mode (AP provisioning view) command.

Precautions

Ensure that there are reachable routes between the configured IPv4 address and the AC source address for an AP to go online. Otherwise, the AP may fail to go online.

CAPWAP packets between the central AP and RUs are forwarded at Layer 2 and are independent of IP addresses on an agile distributed WLAN. Therefore, the configuration of an IP address does not affect the RU going online. Ensure that a route is reachable between the IP address of the RU and the central AP source address. Otherwise, services involving IP addresses may be affected, for example, Telnet.

If the AP and AC are connected through a Layer-3 network, the egress gateway for AP routes must be configured.

Example

# Set the static IPv4 address of the AP to 10.1.1.1/24.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ap-id 0
[HUAWEI-wlan-ap-0] address-mode static
Warning: The incorrect configuration will cause the AP to go out of management. This operation will deliver parameter setting and ma
y cause reboot of AP(s). Continue?[Y/N]:y
[HUAWEI-wlan-ap-0] ip-address 10.1.1.1 24
Warning: The incorrect configuration will cause the AP to go out of management. This operation will deliver parameter setting and ma
y cause reboot of AP(s). Continue?[Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >