配置步骤
一、 配置L3 Switch
# 在L3 Switch上配置DHCP relay:
[L3SW]dhcp-server 1 ip 8.1.1.4
[L3SW]interface vlan-interface 2
[L3SW-Vlan-interface2]dhcp-server 1
[L3SW-Vlan-interface2]interface vlan-interface 3
[L3SW-Vlan-interface3]dhcp-server 1
[L3SW-Vlan-interface3]quit
# L3 Switch上的路由如下:
[L3SW]display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
8.0.0.0/8 DIRECT 0 0 8.10.1.8 Vlan-interface8
8.10.1.8/32 DIRECT 0 0 127.0.0.1 InLoopBack0
24.0.0.0/8 DIRECT 0 0 24.10.1.9 Vlan-interface1
24.10.1.9/32 DIRECT 0 0 127.0.0.1 InLoopBack0
24.20.1.0/24 DIRECT 0 0 24.20.1.1 Vlan-interface2
24.20.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
24.30.1.0/24 DIRECT 0 0 24.30.1.1 Vlan-interface3
24.30.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
[L3SW]
二、配置DHCP、DNS
咋服务器上配置DHCP DNS请自行配置,如果 知道如何配置请百度。
三、配置AC控制器
(1) 配置缺省网关
[AC]ip route-static 0.0.0.0 0 24.10.1.9
(2) 配置AP1和AP2
[AC]wlan ap ap1 model WA2100
[AC-wlan-ap-ap1]serial-id 210235A045B05B1236548
[AC-wlan-ap-ap1]radio 1 type 11g
% Info: Radio parameters are reset to default values.
[AC-wlan-ap-ap1]quit
[AC]wlan ap ap2 model WA2100
[AC-wlan-ap-ap2]serial-id 210235A22W0076000103
[AC-wlan-ap-ap2]radio 1 type 11g
% Info: Radio parameters are reset to default values.
[AC-wlan-ap-ap2]quit
(3) 建立无线虚接口
[AC]interface wlan-ess 1
[AC-WLAN-ESS1]quit
(4) 配置SSID
[AC]wlan service-template 1 clear
[AC-wlan-st-1]ssid h3c-clear
[AC-wlan-st-1]bind WLAN-ESS 1
[AC-wlan-st-1]authentication-method open-system
[AC-wlan-st-1]service-template enable
(5) 将SSID下发到AP上
[AC]wlan ap ap1
[AC-wlan-ap-ap1]radio 1 type 11g
[AC-wlan-ap-ap1-radio-1]service-template 1
[AC-wlan-ap-ap2-radio-1]radio enable
[AC-wlan-ap-ap1-radio-1]quit
[AC-wlan-ap-ap1]quit
[AC]wlan ap ap2
[AC-wlan-ap-ap2]radio 1 type 11g
[AC-wlan-ap-ap2-radio-1]service-template 1
[AC-wlan-ap-ap2-radio-1]radio enable
四、 验证结果
使用以下2个命令进行反复的观察,你会发现用户在不同的AP接入是不一样的。
[AC]display wlan ap all
[AC]display wlan client verbose