一、组网图
WX5002的IP地址为192.168.1.9。
交换机为三层交换机,交换机上VLAN1、2、100的接口地址分别是192.168.1.254、192.168.2.254和192.168.100.254。
WA2110在VLAN 1,WX5002和交换机之间为Trunk,通过VLAN1、2。
无线客户端属于VLAN 2,网关在交换机上为192.168.2.254。
CAMS服务器在VLAN100,地址为192.168.100.10。
本例中WA2110的序列号为21023xxxxxxx7000088。
SSID的名称为elvhome-Portal。
二、配置文件
wx的交换机配置命令
# version 5.20, Release 1106P01 # sysname H3C # domain default enable isp # portal server newp ip 192.168.100.10 key portal url http://192.168.100.10 portal free-rule 0 source any destination ip 192.168.2.0 mask 255.255.255.0 # vlan 1 # vlan 2 # radius scheme radius1 primary authentication 192.168.100.10 primary accounting 192.168.100.10 key authentication h3c key accounting h3c user-name-format without-domain nas-ip 192.168.1.9 # domain isp authentication portal radius-scheme radius1 authorization portal radius-scheme radius1 accounting portal radius-scheme radius1 access-limit disable state active idle-cut disable self-service-url disable domain system access-limit disable state active idle-cut disable self-service-url disable # dhcp server ip-pool 1 network 192.168.1.0 mask 255.255.255.0 gateway-list 192.168.1.254 expired day 3 # dhcp server ip-pool 2 network 192.168.2.0 mask 255.255.255.0 gateway-list 192.168.2.254 expired day 3 # wlan rrm dot11a mandatory-rate 6 12 24 dot11a supported-rate 9 18 36 48 54 dot11b mandatory-rate 1 2 dot11b supported-rate 5.5 11 dot11g mandatory-rate 1 2 5.5 11 dot11g supported-rate 6 9 12 18 24 36 48 54 # wlan service-template 2 clear ssid elvhome-Portal bind WLAN-ESS 2 authentication-method open-system service-template enable # interface NULL0 # interface Vlan-interface1 ip address 192.168.1.9 255.255.255.0 # interface Vlan-interface2 ip address 192.168.2.9 255.255.255.0 portal server newp method direct # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all # interface GigabitEthernet1/0/2 port link-type trunk port trunk permit vlan all # interface M-Ethernet1/0/1 # interface WLAN-ESS2 port access vlan 2 # wlan ap ap1 model WA2100 serial-id 21023xxxxxx0088 radio 1 service-template 2 radio enable # ip route-static 0.0.0.0 0.0.0.0 192.168.1.254 # dhcp enable # user-interface aux 0 user-interface vty 0 4 # return
三、CAMS的配置
1、配置Portal Server.
步骤1、增加IP地址组
增加的ip地址组是指Station接入后获得的IP地址所属的网段,本例中Station获得的IP地址是192.168.2.0/24, 所以这里添加的ip地址组就是从192.168.2.1 到192.168.2.254。
步骤2、配置设备信息
配置设备信息,主要有:
IP地址:Station连接的WX5002上Wlan-ESS口所属vlan的三层口IP地址。本例中为192.168.2.9。
版本:portal 2.0
密钥:WX5002上配置的portal server 的密钥。本例中为“portal”。
若要查看完整的设置步骤请自行下载文档查看,下载地址:





