本檔案將說明test aaa radius 命令如何識別radius伺服器連線與使用者端驗證問題。
思科建議您瞭解AireOS無線LAN控制器(WLC)代碼8.2及更高版本。
本文及所述的命令特定於Cisco AireOS WLC。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
無線客戶端身份驗證問題可能是無線網路工程師面臨一些困難的一個領域。要進行故障排除,通常需要與終端使用者一起收集其他資訊,如調試日誌和捕獲。在日益重要的無線網路中,這可能導致大量停機。
直到現在,確定身份驗證失敗是由拒絕客戶端的radius伺服器造成的,還是僅僅是由於可達性問題導致的,都不是一項簡單的任務。test aaa radius 命令可讓您執行上述操作。現在,您可以遠端驗證WLC-Radius伺服器通訊是否失敗,或者客戶端的憑證是否導致通過或失敗身份驗證。
這是執行命令test aaa radius時的基本工作流程:

1. WLC將存取要求訊息傳送到radius伺服器,以及test aaa radius指令中提到的引數:
(思科控制器)> test aaa radius username <user name> password <password> wlan-id <wlan-id> apgroup <apgroup-name> server-index <server-index>
範例
test aaa radius username admin password cisco123 wlan-id 1 apgroup default-group server-index 2
2. radius伺服器驗證憑證並提供身份驗證請求的結果。
必須提供以下引數才能執行命令:
(思科控制器)> test aaa radius username <user name> password <password> wlan-id <wlan-id> apgroup <apgroup-name> server-index <server-index>
<username> ---> Username that you are testing. <password> ---> Password that you are testing <wlan-id> ---> WLAN ID of the SSID that you are testing. <apgroup-name> (optional) ---> AP group name. This will be default-group if there is no AP group configured. <server-index> (optional) ---> The server index configured for the radius server that you are trying to test. This can be found under Security > Authentication tab.
當test aaa radius命令導致通過身份驗證時。執行命令時,WLC會顯示其透過存取要求傳送的引數:
(Cisco Controller) >test aaa radius username admin password cisco123 wlan-id 1 apgroup default-group server-index 2 Radius Test Request Wlan-id........................................ 1 ApGroup Name................................... default-group Attributes Values ---------- ------ User-Name admin Called-Station-Id 00:00:00:00:00:00:WLC5508 Calling-Station-Id 00:11:22:33:44:55 Nas-Port 0x0000000d (13) Nas-Ip-Address 10.20.227.39 NAS-Identifier WLC_5508 Airespace / WLAN-Identifier 0x00000001 (1) User-Password cisco123 Service-Type 0x00000008 (8) Framed-MTU 0x00000514 (1300) Nas-Port-Type 0x00000013 (19) Tunnel-Type 0x0000000d (13) Tunnel-Medium-Type 0x00000006 (6) Tunnel-Group-Id 0x00000051 (81) Cisco / Audit-Session-Id ad14e327000000c466191e23 Acct-Session-Id 56131b33/00:11:22:33:44:55/210 test radius auth request successfully sent. Execute 'test aaa show radius' for response
要檢視身份驗證請求的結果,請運行命令test aaa show radius。如果radius伺服器無法連線且WLC必須重試或回退到其他radius伺服器,則此命令可能需要幾分鐘來顯示輸出:
(Cisco Controller) >test aaa show radius Radius Test Request Wlan-id........................................ 1 ApGroup Name................................... default-group Server Index................................... 2 Radius Test Response Radius Server Retry Status ------------- ----- ------ 10.20.227.52 1 Success Authentication Response: Result Code: Success Attributes Values ---------- ------ User-Name admin Class CACS:rs-acs5-6-0-22/230677882/20313 Session-Timeout 0x0000001e (30) Termination-Action 0x00000000 (0) Tunnel-Type 0x0000000d (13) Tunnel-Medium-Type 0x00000006 (6) Tunnel-Group-Id 0x00000051 (81)
此命令顯示radius伺服器傳回的屬性,可以是重新導向URL和存取控制清單(ACL)。 例如,使用中央Web驗證(CWA)或VLAN資訊時,會使用VLAN覆寫。
在以下範例中,當使用者名稱/密碼專案導致驗證失敗時,輸出會顯示如下:
(Cisco Controller) >test aaa show radius Radius Test Request Wlan-id........................................ 1 ApGroup Name................................... default-group Server Index................................... 2 Radius Test Response Radius Server Retry Status ------------- ----- ------ 10.20.227.52 1 Success Authentication Response: Result Code: Authentication failed ------> This result indicates that the user authentication will fail. No AVPs in Response
在這種情況下,連線測試會產生Success,但radius伺服器針對使用的使用者名稱/密碼組合傳送了access-reject指令。
(Cisco Controller) >test aaa show radius previous test command still not completed, try after some time
等待WLC完成所有重試,然後顯示輸出。時間可能因配置的重試閾值而異:
(Cisco Controller) >test aaa show radius Radius Test Request Wlan-id........................................ 1 ApGroup Name................................... default-group Server Index................................... 3 Radius Test Response Radius Server Retry Status ------------- ----- ------ 10.20.227.72 6 No response received from server Authentication Response: Result Code: No response received from server No AVPs in Response
在此輸出中,WLC嘗試連線radius伺服器6次,當沒有回應時,它將radius伺服器標示為無法連線。
如果在服務組識別碼(SSID)下設定了多個RADIUS伺服器,但主RADIUS伺服器沒有回應,WLC會嘗試設定輔助RADIUS伺服器。輸出中會顯示此情況,其中第一個radius伺服器沒有回應,而WLC會嘗試立即回應的第二個radius伺服器。
(Cisco Controller) >test aaa show radius Radius Test Request Wlan-id........................................ 1 ApGroup Name................................... default-group Radius Test Response Radius Server Retry Status ------------- ----- ------ 10.20.227.62 6 No response received from server 10.20.227.52 1 Success Authentication Response: Result Code: Success Attributes Values ---------- ------ User-Name admin
| 修訂 | 發佈日期 | 意見 |
|---|---|---|
4.0 |
23-Jul-2026
|
更新了簡介、拼寫、語法、插入的水平線以分隔各部分/可讀性。 |
3.0 |
28-Aug-2023
|
重新認證 |
2.0 |
20-Jul-2022
|
根據思科准則更新格式、機器翻譯、詞根等。 |
1.0 |
21-Nov-2017
|
初始版本 |