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.
learn-client-address { ipv4 | ipv6 } disable
undo learn-client-address { ipv4 | ipv6 } disable
Parameter | Description | Value |
---|---|---|
ipv4 |
Indicates the IPv4 address. |
- |
ipv6 |
Indicates the IPv6 address. |
- |
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.