简介
本文档介绍如何手动设置或重置 Cisco IOS® 和 ClickOS 无线接入点 (AP) 上的静态配置信息。
先决条件
要求
Cisco 建议您了解以下主题:
使用的组件
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
规则
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
手动配置AP
在新的安装过程中,当某个 AP 无法通过发现算法找到 WLC 时,您可以通过控制台端口和该 AP 的命令行界面 (CLI) 静态配置加入控制器所需的信息。 有关 WLC 发现算法和 LAP 注册过程的详细信息,请参阅向无线局域网控制器 (WLC) 注册轻型 AP (LAP)。
要通过 AP CLI 界面手动配置 AP 上的静态信息,您可以使用以下 EXEC 模式 CLI 命令:
AP#capwap ap ip address
AP#capwap ap ip default-gateway
AP#capwap ap primary-base
AP#capwap ap secondary-base
(optional)
AP#capwap ap hostname
(optional)
AP#capwap ap ip [ ]
AP#capwap ap primary-base
AP#capwap ap hostname
(optional)
注意:必须在启用模式下发出这些命令。默认启用口令是 Cisco。AP 将使用用户通过 CLI 命令配置的静态信息来加入控制器。在 AP 加入控制器后,用户可以通过控制器在 LAP 上配置新设置。
重置 AP 上的轻量级配置
当您将 AP 移至网络中的其他位置且 AP 无法加入之前的 WLC 时,或者当您想手动重新配置 AP 以加入另一个 WLC 时,必须输入新的控制器信息,以使您的 AP 能与其他控制器关联。
通过 AireOS 或 Catalyst WLC 重置 AP
除上述方法外,您还可以从 WLC 重置 LAP 的配置。当 LAP 注册到控制器时,可以在控制器中使用以下命令以重置 LAP 上的配置:
通过 CLI 重置 AP
要使用该方法,您需要在特权 EXEC 模式下登录到 AP 控制台模式:
AP#clear capwap ap ?
all-config <-- if you need to reset AP to factory default (this command causes system)
controller <-- if you need to clear static configuration for WLC IP address (this command may cause termination session to WLC and new DTLS handshake)
dot1x <-- if you need to reset dot1x credentials for AP authentication
hostname <-- if you need to reset AP host name config
ip <-- if you need to remove static IP configuration on AP. (this command may cause termination session to WLC and new DTLS handshake)
AP#capwap ap erase ?
all <-- Erase all AP config (this commands causes AP to reboot)
static-ip <-- Erase static IP/DNS config (this command causes termination session to WLC and new DTLS handshake)
使用重置按钮重置 AP
要使用该方法,您必须手动操作 AP。对于 Cisco IO 和 ClickOS AP,操作过程是相同的。
- 断开 AP 电源。
- 按住 AP 上的 Mode(模式)按钮,接通 AP 电源。
- 持续按住模式按钮 20 秒或更长时间。
IOS Bootloader - Starting system.
flash is writable
Tide XL MB - 40MB of flash
...
button pressed for 22 seconds
AP#Button is pressed. Configuration reset activated..
Keep the button pressed for > 20 seconds for full reset
Wait for the button to be released ....
Button pressed for 22 seconds
如何禁用注册到控制器的 AP 上的 Reset 按钮
若要禁用注册到控制器的 AP 上的 Reset 按钮,请使用以下 CLI 命令:
(Cisco Controller) >config ap rst-button disable
故障排除
您可以在具有控制台端口的 LAP 上使用以下 debug 命令来排查与 IP 地址分配相关的问题:
- 在基于 ClickOS 的 AP 上:
debug dhcp events
debug dhcp errors
debug dhcp packets
注意:如果AP没有控制台端口,则需要对LAP所插入的端口进行有线嗅探器跟踪,以查看哪些数据包由LAP接收并传输到LAP。
您可以使用以下 debug 命令通过 WLC CLI 监控发现过程:
- 在基于 Cisco IOS 和 ClickOS 的 AP 上:
debug capwap client events
debug capwap client errors
debug capwap client detail