[WA2620i-AGN]vlan 2
[WA2620i-AGN-vlan2]ip add 192.168.45.51 24(该错误是因为没有在inter vlan 2 接口下 配置ip)
^
% Unrecognized command found at '^' position.
[WA2620i-AGN-vlan2]inter vlan 2
[WA2620i-AGN-Vlan-interface2]ip add 192.168.45.51 24
[WA2620i-AGN-Vlan-interface2]quit
创建无线虚拟接口,并设置无线终端从此无线虚拟接口接入时属于VLAN 2
[WA2620i-AGN]inter WLAN-BSS 2
创建无线服务模板,采用开放系统验证(Open-system),定义SSID为H3C
[WA2620i-AGN]wlan service-template 2 clear
[WA2620i-AGN-wlan-st-2]ssid lyy
[WA2620i-AGN-wlan-st-2]authentication-method open-system
[WA2620i-AGN-wlan-st-2]service-template enable
Please wait... Done.
[WA2620i-AGN-wlan-st-2]quit
创建无线射频接口,绑定无线虚拟接口和服务模板
[WA2620i-AGN]inter WLAN-Radio 1/0/2
[WA2620i-AGN-WLAN-Radio1/0/2]radio-type dot11g
[WA2620i-AGN-WLAN-Radio1/0/2]service-template 2 inte WLAN-BSS 2
[WA2620i-AGN-WLAN-Radio1/0/2]quit
在AP的上行链路开启完整性测试功能并验证
[WA2620i-AGN]wlan uplink-interface
使用STA连接SSID,并在AP上查看客户端列表。
[WA2620i-AGN]disp wlan client
Total Number of Clients : 1
Client Information
SSID: lyy
--------------------------------------------------------------------------------
MAC Address User Name APID/RID IP Address VLAN
--------------------------------------------------------------------------------
74ac-5fe9-bd6a -NA- 1 /2 0.0.0.0 1
--------------------------------------------------------------------------------
使用命令关闭AP的上行接口
此时AP上会有uplink-interface相关的提示信息,
[WA2620i-AGN]inter g1/0/1
[WA2620i-AGN-GigabitEthernet1/0/1]shutdown
[WA2620i-AGN-GigabitEthernet1/0/1](此时AP上会有uplink-interface相关的提示信息)
%Apr 20 19:38:09:234 2012 WA2620i-AGN IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is DOWN.
%Apr 20 19:38:09:235 2012 WA2620i-AGN IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is DOWN.
%Apr 20 19:38:09:235 2012 WA2620i-AGN IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is DOWN.
%Apr 20 19:38:10:737 2012 WA2620i-AGN WMAC/3/WMAC_ALL_UPLINK_INTERFACE_DOWN: WLAN service is disabled because all uplink interfaces are down.
[WA2620i-AGN-GigabitEthernet1/0/1]quit
再次在AP上查看客户端列表。
[WA2620i-AGN]disp wlan client
Info: Clients do not exist.
用STA搜索你的SSID,看能否找到。(搜不到)
重新开启interface G 1/0/1,再次搜索。
[WA2620i-AGN]inter g1/0/1
[WA2620i-AGN-GigabitEthernet1/0/1]undo shutdown
[WA2620i-AGN-GigabitEthernet1/0/1]
%Apr 20 19:39:54:422 2012 WA2620i-AGN IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is UP.
%Apr 20 19:39:54:427 2012 WA2620i-AGN IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is UP.
%Apr 20 19:39:54:427 2012 WA2620i-AGN IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is UP.
%Apr 20 19:40:30:186 2012 WA2620i-AGN WMAC/6/WMAC_CHANNEL_CHANGE: Channel change for APID 1, RadioId 2 from channel 0 to channel 1.
%Apr 20 19:40:33:980 2012 WA2620i-AGN WMAC/6/WMAC_CLIENT_JOIN_WLAN: Client 74ac-5fe9-bd6a successfully joins WLAN lyy, on APID 1 with BSSID 0cda-4125-e891.
%Apr 20 19:40:33:980 2012 WA2620i-AGN IFNET/3/LINK_UPDOWN: WLAN-BSS2 link status is UP.
[WA2620i-AGN-GigabitEthernet1/0/1]quit
用STA搜索你的SSID尝试连接。重新在AP上查看客户端列表。
[WA2620i-AGN]disp wlan client
Total Number of Clients : 1
Client Information
SSID: lyy
--------------------------------------------------------------------------------
MAC Address User Name APID/RID IP Address VLAN
--------------------------------------------------------------------------------
74ac-5fe9-bd6a -NA- 1 /2 0.0.0.0 1
--------------------------------------------------------------------------------