一、拓扑图

H3C 无线AC二层漫游

二、实现目的:

  无线客户端client先通过AP 1连接至无线网络,然后漫游到与同一AC相连的AP 2

三、 配置步骤

无线AC的配置如下

1)配置AC的IP地址

#创建vlan 100及其对应的vlan接口,并为该接口配置IP地址。AC将使用该接口的IP地址与AP建立LWAPP隧道

<AC> system-view

[AC] vlan 100

[AC-vlan100] quit

[AC] interface vlan-interface 100

[AC-Vlan-interface100] ip address 24.10.1.10 24

[AC-Vlan-interface100] quit

#创建vlan 200作为ESS接口的缺省vlan

[AC] vlan 200

[AC-vlan200] quit


2)配置无线接口

#配置Wlan-ESS1接口

[AC] interface wlan-ess 1

#配置Wlan-ESS1接口类型为hybrid类型

[AC-WLAN-ESS1] port link-type hybrid

#配置当前Hybrid端口的pvid为vlan200,禁止VLAN 1通过并允许VLAN 200不带tag通过。

[AC-WLAN-ESS1]undo  port hybrid vlan 1

[AC-WLAN-ESS1] port hybrid pvid vlan 200

[AC-WLAN-ESS1] port hybrid vlan 200 untagged

使能MAC-VLAN功能。

[AC-WLAN-ESS1] mac-vlan enable

[AC-WLAN-ESS1] quit

# 创建clear类型的服务模板1

[AC] wlan service-template 1 cleare

# 设置当前服务模板的SSIDintra-roam

[AC-wlan-st-1] ssid intra-roam

# WLAN-ESS1接口绑定到服务模板1

[AC-wlan-st-1] bind wlan-ess 1

# 开启服务模板1

[AC-wlan-st-1] service-templateenable

[AC-wlan-st-1] quit

(3)     配置射频接口并绑定服务模版

# 配置AP 1:创建AP1的模板,名称为ap1,型号名称选择WA2620E-AGN,并配置AP 1的***。

[AC] wlan ap ap1 model WA2620E-AGN

[AC-wlan-ap-ap1] serial-id 21023529G007C000020

[AC-wlan-ap-ap1] radio 2

# 将服务模板1绑定到AP 1radio 2口。

[AC-wlan-ap-ap1-radio-2] service-template1

[AC-wlan-ap-ap1-radio-2] radio enable

[AC-wlan-ap-ap1-radio-2] quit

[AC-wlan-ap-ap1] quit

# 配置AP 2:创建AP2的模板,名称为ap2,型号名称选择WA2620E-AGN,并配置AP 2的***。

[AC] wlan ap ap2 model WA2620E-AGN

[AC-wlan-ap-ap2] serial-id 21023529G007C000021

[AC-wlan-ap-ap2] radio 2

# 将服务模板1绑定到AP 2radio 2口。

[AC-wlan-ap-ap2-radio-2] service-template1

[AC-wlan-ap-ap2-radio-2] radio enable

[AC-wlan-ap-ap2] quit

交换机的配置如下

# 创建VLAN 100,用于转发ACAPLWAPP隧道内的流量。

<Switch> system-view

[Switch] vlan 100

[Switch-vlan100] quit

# 配置SwitchGigabitEthernet1/0/1接口的属性为Trunk,当前Trunk口的PVID100,允许VLAN 100通过。

[Switch] interfaceGigabitEthernet1/0/1

[Switch-GigabitEthernet1/0/1] portlink-type trunk

[Switch-GigabitEthernet1/0/1] porttrunk permit vlan 100

[Switch-GigabitEthernet1/0/1] porttrunk pvid vlan 100

[Switch-GigabitEthernet1/0/1] quit

# 配置SwitchAP相连的GigabitEthernet1/0/2接口属性为Access,并允许VLAN 100通过。

[Switch] interfaceGigabitEthernet1/0/2

[Switch-GigabitEthernet1/0/2] portlink-type access

[Switch-GigabitEthernet1/0/2] portaccess vlan 100

# 使能PoE功能。

[Switch-GigabitEthernet1/0/2] poeenable

[Switch-GigabitEthernet1/0/2] quit