掌握配置WLAN源接口的命令掌握配置DHCP服務器的命令掌握手工确認AP上線的方法
二、實驗拓撲三、實驗配置
AC基礎配置,主要是配置管理VLAN的IP地址,及DHCP服務,因為這裡是二層組網,所以不用配置option
dhcp enableinterface Vlanif1ip address 192.168.100.1 255.255.255.0dhcp select interface
wlanwlan ac source interface vlanif1
配置檢查先檢查下DHCP是否分出地址,可以用dis ip pool inter vlan 1 來檢查,這裡可以看到已經為4個AP分出地址了
[HW-AC6005]dis ip pool interface Vlanif1Pool-name : Vlanif1Pool-No : 0Lease : 1 Days 0 Hours 0 MinutesDomain-name : –DNS-server0 : –NBNS-server0 : –Netbios-type : –Position : Interface Status : UnlockedGateway-0 : 192.168.100.1Mask : 255.255.255.0VPN instance : ——————————————————————————–Start End Total Used Idle(Expired) Conflict Disable—————————————————————————–192.168.100.1 192.168.100.254 253 4 249(0) 0 0—————————————————————————–
因為默認華為的AC使用了mac地址對AP的上線進行認證,所以現在還不能看到AP,但是通過dis arp 可以看到AP的MAC
[HW-AC6005]dis ap allAll AP information(Normal-0,UnNormal-0):——————————————————————————AP AP AP Profile AP AP/RegionID Type MAC ID State Sysname————————————————————————————————————————————————————Total number: 0[HW-AC6005]dis arpIP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCEVLAN/CEVLAN PVC——————————————————————————192.168.100.1 00e0-fc03-800f I – Vlanif1192.168.100.254 00e0-fc03-8e30 20 D-0 GE0/0/11/-192.168.100.253 00e0-fc03-b310 20 D-0 GE0/0/31/-192.168.100.252 00e0-fc03-da40 20 D-0 GE0/0/21/-192.168.100.251 00e0-fc03-dc50 20 D-0 GE0/0/41/-——————————————————————————Total:5 Dynamic:4 Static:0 Interface:1
可能通過dis unauthorized-ap record查看未通過認證的AP列表
[HW-AC6005]dis unauthorized-ap recordUnauthorized AP record:Total number: 4——————————————————————————AP type: AP6010DN-AGNAP sn: 210235448310E6766418AP mac address: 00e0-fc03-dc50AP ip address: 192.168.100.251Record time: 2013-12-06 12:13:25——————————————————————————AP type: AP6010DN-AGNAP sn: 2102354483106D748F23AP mac address: 00e0-fc03-8e30AP ip address: 192.168.100.254Record time: 2013-12-06 12:13:24——————————————————————————AP type: AP6010DN-AGNAP sn: 210235448310BE35BA59AP mac address: 00e0-fc03-b310AP ip address: 192.168.100.253Record time: 2013-12-06 12:12:59——————————————————————————AP type: AP6010DN-AGNAP sn: 210235448310152A7C4DAP mac address: 00e0-fc03-da40AP ip address: 192.168.100.252Record time: 2013-12-06 12:12:58—————————————————————————-
通過命令确認AP上線,下面是見證奇迹的時刻了
[HW-AC6005] wlan[HW-AC6005-wlan-view]ap-confirm allInfo: Confirm AP completely. Success count: 4. Failure count: 0.[HW-AC6005-wlan-view]dis ap allAll AP information(Normal-4,UnNormal-0):——————————————————————————AP AP AP Profile AP AP/RegionID Type MAC ID State Sysname——————————————————————————0 AP6010DN-AGN 00e0-fc03-dc50 0/0 normal ap-01 AP6010DN-AGN 00e0-fc03-8e30 0/0 normal ap-12 AP6010DN-AGN 00e0-fc03-b310 0/0 normal ap-23 AP6010DN-AGN 00e0-fc03-da40 0/0 normal ap-3——————————————————————————Total number: 4
四、補充知識1、如果已經知道AP的MAC和型号(SN号是可選的),也可以通過下面命令上AP上線
wlanwlan ac source interface vlanif1ap id 0 type-id 19 mac 00e0-fc03-dc50 sn 210235448310E6766418ap id 1 type-id 19 mac 00e0-fc03-8e30 sn 2102354483106D748F23ap id 2 type-id 19 mac 00e0-fc03-b310 sn 210235448310BE35BA59ap id 3 type-id 19 mac 00e0-fc03-da40 sn 210235448310152A7C4D
2、如果想重啟一個AP,可以在WLAN配置示圖下使用命令ap reset id x 或ap reset all重啟AP,重啟時候記得抓包哦,親!
[HW-AC6005-wlan-view]ap-reset id 0Warning: Reset AP! Continue? [Y/N]yInfo: Reset AP completely.[HW-AC6005-wlan-view]dis ap allAll AP information(Normal-3,UnNormal-1):——————————————————————————AP AP AP Profile AP AP/RegionID Type MAC ID State Sysname——————————————————————————0 AP6010DN-AGN 00e0-fc03-dc50 0/0 fault ap-01 AP6010DN-AGN 00e0-fc03-8e30 0/0 normal ap-12 AP6010DN-AGN 00e0-fc03-b310 0/0 normal ap-23 AP6010DN-AGN 00e0-fc03-da40 0/0 normal ap-3——————————————————————————Total number: 4
下面是我抓到的包,這裡就是完整的AP上線時CAPWAP的交互報文
上一篇回顧
由淺入深玩轉華為WLAN——1 二層組網AP上線
下一篇學習
由淺入深玩轉華為WLAN——3 WLAN配置示例
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!