< Home

learn-client-address disable (VAP profile view)

Function

The learn-client-address disable command disables STA address learning.

The undo learn-client-address disable command disables STA address learning.

By default, STA address learning is enabled.

Format

learn-client-address { ipv4 | ipv6 } disable

undo learn-client-address { ipv4 | ipv6 } disable

Parameters

Parameter Description Value

ipv4

Indicates the IPv4 address.

-

ipv6

Indicates the IPv6 address.

-

Views

VAP profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a STA is associated with a STA address learning-enabled AP and obtains an IP address, the AP proactively reports the STA's IP address to the AC to maintain the IP address-MAC address binding entry of the STA. In addition, when a STA requests an IP address using DHCP, the AP can learn the IPv4 address of the STA gateway.

Prerequisites

  • Before STA address learning is enabled, the ND trusted interface of the AP for the IPv6 address has been disabled using the undo nd trust port command.

  • Before STA address learning is disabled, strict STA IPv4 address learning has been disabled using the undo learn-client-address dhcp-strict command and strict STA IPv6 address learning disabled using the undo learn-client-address dhcpv6-strict command.

Precautions

  • The device enabled with STA address learning can learn only a limited number of IPv6 addresses; therefore, you are advised to configure only one IPv6 prefix for the IPv6 gateway. If you configure too many IPv6 prefixes, the number of IPv6 addresses exceeds the upper limit, and extra IPv6 addresses cannot be learnt by the device. The IPv6 addresses not learnt by the device cannot be used for communications.

  • If a bridging device functions as a STA to connect to an AP enabled with STA address learning, the AP cannot learn IP addresses of users connected to the bridging device; therefore, the users cannot communicate with the network. In this situation, disable STA address learning.

  • Disabling STA address learning will lead to a Portal authentication failure.
  • When a STA requests an IP address using DHCP, the STA address learning-enabled AP can only learn the IPv4 gateway address but cannot learn the IPv6 gateway address.
  • If no STA connected to a STA address learning-enabled AP requests an IP address using DHCP, the AP cannot learn the gateway IP address.

Example

# Disable STA IPv4 address learning.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] vap-profile name vap1
[HUAWEI-wlan-vap-prof-vap1] learn-client-address ipv4 disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >