配置分爲:git
創建dhcp地址池api
查看ap是否上線安全
配置ssid無線名網絡
設置ap參數app
下發無線配置參數
less
1 設置VLAN1爲ap管理VLAN,VLAN2爲無線VLAN,啓用DHCP地址池功能,使192.168.1.0網段爲管理網段,192.168.2.0爲用戶網段,並打開無線功能:ide
DCWS-6028(config)#service dhcp 開啓dhcpthis
DCWS-6028(config)#ip dhcp pool acdz 配置dhcp地址池名(ap地址)spa
DCWS-6028(dhcp-acdz-config)#network-address 192.168.1.0 255.255.255.0 配置分配地址router
DCWS-6028(dhcp-acdz-config)#default-router 192.168.1.254 配置網關
DCWS-6028(dhcp-acdz-config)#dns-server 202.101.172.35 配置dns
DCWS-6028(config)# ip dhcp pool vlan2
DCWS-6028(dhcp-acdz-config)# network-address 192.168.100.0 255.255.255.0
DCWS-6028(dhcp-acdz-config)#default-router 192.168.100.254
DCWS-6028(dhcp-acdz-config)#dns-server 202.101.172.35
DCWS-6028(config-wireless)#enable 打開無線功能
2查看ap是否上線
DCWS-6028(config-wireless)#show wireless ap status 顯示管理中的ap
No managed APs discovered.
DCWS-6028(config-wireless)#
咱們能夠到是沒有被ac管理成功的ap,這是咱們要使用另一臺命令來查看沒有被管理的ap
DCWS-6028(config-wireless)#show wireless ap failure status 顯示管理失敗的ap
MAC Address
(*) Peer Managed IP Address Last Failure Type Age
------------------ --------------------------------------- ------------------------ ----------------
00-03-0f-46-15-00 192.168.1.1 No Database Entry 0d:00:01:05
3配置ssid無線名
DCWS-6028(config-wireless)#network 1 進入網絡配置
DCWS-6028(config-network)#ssid DCN 配置ssid無線名
DCWS-6028(config-network)#security mode ? 配置無線認證模式
none 配置網絡安全模式爲明文方式
static-wep 配置網絡安全模式爲靜態WEP
wapi-certificate 配置網絡安全模式爲WAPI證書認證
wapi-psk 配置網絡安全模式爲WAPI預共享密鑰認證
wep-dot1x 配置網絡安全模式爲WEP 802.1x
wpa-enterprise 配置網絡安全模式爲WPA企業版
wpa-personal 配置網絡安全模式設置爲WPA我的版
DCWS-6028(config-network)#wep key ? 配置無線密碼
<1-4> 輸入一個合法的WEP密鑰索引值
length 配置WEP密鑰的長度
type 配置WEP密鑰的類型
DCWS-6028(config-network)#vlan? 設置無線用戶屬於哪一個vlan
vlan 設置默認的VLAN標識
4設置ap參數
ap地址由show wireless ap failure status 得來
DCWS-6028(config-wireless)#ap database ? 設置ap的mac地址,用於認證
FF-FF-FF-FF-FF-FF 輸入一個AP MAC地址
DCWS-6028(config-wireless)#show wireless ap 00-03-0f-46-15-00 status 查看ap管理狀態信息
MAC address.................................... 00-03-0f-46-15-00
Location.......................................
IP Address..................................... 192.168.1.11
IP Subnet Mask................................. 255.255.255.0
IPv6 Address................................... -----
IPv6 Prefix.................................... -----
Managing Switch................................ Local Switch
Switch MAC Address............................. 00-03-0f-60-4a-a0
Switch IP Address.............................. 192.168.1.254
Status......................................... Managed
Last Disconnect Time and reason................ 0d:00:00:00 None
Configuration Status........................... Success
Last Failing Configuration Element............. None
Configuration Failure Error....................
Debug Mode..................................... Disable
Code Download Status........................... Not Started
Reset Status................................... Not Started
Profile........................................ 1 - Default
Vendor ID...................................... Digital China (Shanghai) Networks Ltd.
Protocol Version............................... 2
Software Version............................... 2.0.5.49
Hardware Version............................... 5.0.1
Uboot Version.................................. 1.1.6
Hardware Type.................................. 22 - DCWL-7962AP(R5), Indoor Dual Radio a/n, b/g/n 硬件類型
Serial Number.................................. 15041061
Discovery Reason............................... L2 Poll Received
Clients.......................... 0
……………
……………
……………
……………
DCWS-6028(config-wireless)# ap profile 1
DCWS-6028(config-ap-profile)#hwtype ? 配置硬件類型
<1-255> 輸入硬件的類型
any 兼容任何硬件類型的AP
DCWS-6028(config-wireless)#show wireless ap status
MAC Address Configuration
(*) Peer Managed IP Address Profile Status Status Age
------------------ --------------------------------------- ------- ------- ------------- --------------
00-03-0f-46-15-00 192.168.1.11 1 Managed Success 0d:00:00:02
Total Access Points............................ 1
DCWS-6028(config-wireless)#
如今咱們能夠看到show wireless ap status 能夠看到管理中的ap了
5下發無線配置參數
DCWS-6028#wireless ap profile apply 1
All configurations will be send to the aps associated to this profile and associated clients on these aps will be disconnected. Are you sure you want to apply the profile configuration? [Y/N] y
AP Profile apply is in progress.
DCWS-6028#show wireless ap status
MAC Address Configuration
(*) Peer Managed IP Address Profile Status Status Age
------------------ --------------------------------------- ------- ------- ------------- --------------
00-03-0f-46-15-00 192.168.1.11 1 Managed In Progress 0d:00:00:03
Total Access Points............................ 1
能夠看到status 的直已經變成 In Progress了,這說明下發配置成功了,若是不是In progress 那就是配置失敗
經常使用代碼擴展
DCWS(config-network)#hide-ssid // 使能隱藏SSID功能
DCWS(config-network)#station-isolation // 啓用同一SSID下的用戶隔離
DCWS-6028(config-wireless)#discovery // 配置AP發現方法和參數
DCWS(config-ap)#radio 1 power //發射功率值
DCWS(config-ap)#radio 1 channel 12 // 信道設置
DCWS(config-wireless)#mac-authentication-mode black-list // 設置黑名單
DCWS(config-wireless)#known-client F0-11-22-33-44-55 action deny name //阻止一個MAC地址訪問
DCWS-6028(config-wireless)#discovery vlan-list ? //配置ap發現的vlan
<1-4094> 輸入一個VLAN ID