簡介
本檔案介紹如何在Cisco IOS®和ClickOS存取點(AP)上手動設定或重設靜態組態資訊。
必要條件
需求
思科建議您瞭解以下主題:
採用元件
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
慣例
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
手動設定 AP
在新安裝中,當AP無法通過發現演算法找到WLC時,可以靜態配置必要的資訊,以便通過控制檯埠和AP命令列介面(CLI)加入控制器。有關 WLC 探索演算法和 LAP 註冊程序的詳細資訊,請參閱向無線 LAN 控制器 (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上的輕量級配置
將存取點移動到網路中的不同位置,且存取點無法加入先前的WLC時,或如果要手動重新設定存取點以加入另一個WLC,您必須輸入新的控制器資訊,以允許存取點與另一個控制器關聯。
通過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 IOS和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上禁用「重置」按鈕
若要停用在控制器上註冊的AP上的重設按鈕,請使用以下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