AC vlan的创建
管理 vlan:vlan1:192.168.1.100
业务 vlan:vlan10:192.168.10.100
1. [AC6005]vlan 1 //创建vlan1 2. [AC6005-vlan1]q 3. [AC6005]vlan 10 //创建vlan10 4. [AC6005-vlan10] 5. [AC6005]int vlan 1 //进入vlan1 6. [AC6005-Vlanif1]ip address 192.168.1.100 24 //为vlan1配置ip地址 7. [AC6005-Vlanif1]q 8. [AC6005]int vlan 10 //进入vlan10 9. [AC6005-Vlanif10]ip address 192.168.10.100 24 //为vlan10配置ip地址
将 连接 ap 的口上设为 trunk 接口,再 trunk 接口上允许所有的 vlan 通过
1. [AC6005]port-group 1 //创建一个组 2. [AC6005-port-group-1]group-member g0/0/1 to g0/0/4 //把连接AC的接口,放到这个组中 3. [AC6005-port-group-1]port link-type trunk //把这个组中的接口配置trunk链路 4. [AC6005-GigabitEthernet0/0/1]port link-type trunk 5. [AC6005-GigabitEthernet0/0/2]port link-type trunk 6. [AC6005-GigabitEthernet0/0/3]port link-type trunk 7. [AC6005-GigabitEthernet0/0/4]port link-type trunk 8. [AC6005-port-group-1]port trunk allow-pass vlan all ///允许所有的vlan通过 9. [AC6005-GigabitEthernet0/0/1]port trunk allow-pass vlan all 10. [AC6005-GigabitEthernet0/0/2]port trunk allow-pass vlan all 11. [AC6005-GigabitEthernet0/0/3]port trunk allow-pass vlan all 12. [AC6005-GigabitEthernet0/0/4]port trunk allow-pass vlan all
设计无线终端和 ap 的 dhcp 服务
1. [AC6005]dhcp enable //开启DHCP功能 2. [AC6005]ip pool vlan_1 //创建地址池 3. [AC6005-ip-pool-vlan_1]network 192.168.1.0 mask 24 //创建地址的网段 4. [AC6005-ip-pool-vlan_1]gateway-list 192.168.1.100 //地址池的网关 5. [AC6005-ip-pool-vlan_1]int vlan 1 //进入 vlan1 6. [AC6005-Vlanif1]dhcp select global //选择DHCP全局 7. [AC6005]ip pool vlan_10 //创建地址池 8. [AC6005-ip-pool-vlan_10]network 192.168.10.0 mask 24 //创建地址的网段 9. [AC6005-ip-pool-vlan_10]gateway-list 192.168.10.100 //地址池的网关 10. [AC6005]int vlan 10 //进入 vlan1 11. [AC6005-Vlanif10]dhcp select global //选择DHCP全局
上线AP
1. [AC6005]capwap source int vlan 1 //设置vlan1为管理下发接口 2. [AC6005]wlan 进入到wlan 3. [AC6005-wlan-view]ap-group name ap-1 //设置一个AP组 4. [AC6005-wlan-ap-group-ap-1]ap-id 0 ap-mac 00e0-fcd0-31f0 //把AP添加到AP组中,(每个AP只有一个mac地址,所以添加mac地址) 5. [AC6005-wlan-ap-0]ap-name area0 //给AP设置一个名称 6. [AC6005-wlan-ap-0]ap-group ap-1 把此AP添加到AP组中 7. 8. Warning: This operation may cause AP reset. If the country code changes, it will 9. clear channel, power and antenna gain configurations of the radio, Whether to c 10. ontinue? [Y/N]:y //是否要执行此操作 YES:是 NO:否 11. [AC6005-wlan-ap-0]ap-id 1 ap-mac 00e0-fc90-09a0 //把AP添加到AP组中 12. [AC6005-wlan-ap-1]ap-name area1 //给AP设置一个名称 13. [AC6005-wlan-ap-1]ap-group ap-1 把此AP添加到AP组中 14. 15. Warning: This operation may cause AP reset. If the country code changes, it will 16. clear channel, power and antenna gain configurations of the radio, Whether to c 17. ontinue? [Y/N]:y 18. [AC6005-wlan-ap-1]ap-id 2 ap-mac 00e0-fc4b-0180 //把AP添加到AP组中 19. [AC6005-wlan-ap-2]ap-name area2 //给AP设置一个名称 20. [AC6005-wlan-ap-2]ap-group ap-1 把此AP添加到AP组中 21. 22. Warning: This operation may cause AP reset. If the country code changes, it will 23. clear channel, power and antenna gain configurations of the radio, Whether to c 24. ontinue? [Y/N]:y 25. [AC6005-wlan-ap-2]ap-id 3 ap-mac 00e0-fc6e-4420 //把AP添加到AP组中 26. [AC6005-wlan-ap-3]ap-name area3 //给AP设置一个名称 27. [AC6005-wlan-ap-3]ap-group ap-1 把此AP添加到AP组中 28. 29. Warning: This operation may cause AP reset. If the country code changes, it will 30. clear channel, power and antenna gain configurations of the radio, Whether to c 31. ontinue? [Y/N]:y 32. [AC6005-wlan-view]dis ap all 33. nor : normal [4] 34. -------------------------------------------------------------------------------- 35. --------- 36. ID MAC Name Group IP Type State STA Uptime 37. -------------------------------------------------------------------------------- 38. --------- 39. 0 00e0-fcd0-31f0 area0 ap-1 192.168.1.58 AP2050DN nor 0 8M:10S 40. 1 00e0-fc90-09a0 area1 ap-1 192.168.1.183 AP2050DN nor 0 3M:52S 41. 2 00e0-fc4b-0180 area2 ap-1 192.168.1.206 AP2050DN nor 0 2M:18S 42. 3 00e0-fc6e-4420 area3 ap-1 192.168.1.191 AP2050DN nor 0 45S 43. -------------------------------------------------------------------------------- 44. --------- 45. Total: 4 46. 47. 出现nor代表成功