3 配置举例3.1 组网需求如图1所示,AC作为DHCP服务器为AP和Client分配IP地址,现要求使用AP自动注册功能,实现AP与AC自动关联,并且在关联后将AP转化为固化AP。
图1 AP自动注册配置举例组网图
3.2 配置步骤3.2.1 AC的配置(1) 配置AC的接口
# 创建VLAN100及其对应的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 192.168.1.1 24
[AC-Vlan-interface100] quit
(2) 配置DHCP功能
# 全局下使能DHCP功能。
[AC] dhcp enable
# 配置DHCP地址池1为AP和Client动态分配的网段为192.168.1.0/24,网关地址为192.168.1.1。
[AC] dhcp server ip-pool 1
[AC-dhcp-pool-1] network 192.168.1.0 24
[AC-dhcp-pool-1] gateway-list 192.168.1.1
[AC-dhcp-pool-1] quit
# 将与Switch相连的接口GigabitEthernet1/0/1的链路类型配置为Trunk,当前Trunk口的PVID为100,禁止VLAN1通过,允许VLAN 100通过。
[AC] interface gigabitethernet 1/0/1
[AC-GigabitEthernet1/0/1] port link-type trunk
[AC-GigabitEthernet1/0/1] port trunk pvid vlan 100
[AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[AC-GigabitEthernet1/0/1] port trunk permit vlan 100
[AC-GigabitEthernet1/0/1] quit
(3) 配置AP自动注册功能
# 开启自动AP功能。
[AC] wlan auto-ap enable
# 创建一个AP管理模板,其名称为officeap1,型号名称为WA2620E-AGN。
[AC] wlan ap officeap1 model WA2620E-AGN
# 设置自动查找AP序列号。
[AC-wlan-ap-officeap1] serial-id auto
[AC-wlan-ap-officeap1] quit
# 将所有自动AP转换为固化AP,但名称保持不变。
[AC] wlan auto-ap persistent all
3.2.2 Switch的配置# 创建VLAN 100,用于转发AC和AP间LWAPP隧道内的流量。
<Switch> system-view
[Switch] vlan 100
[Switch-vlan100] quit
# 配置Switch与AC相连的GigabitEthernet1/0/1接口的属性为Trunk,禁止VLAN 1通过,当前Trunk口的PVID为100,允许VLAN 100通过。
[Switch] interface gigabitethernet1/0/1
[Switch-GigabitEthernet1/0/1] port link-type trunk
[Switch-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[Switch-GigabitEthernet1/0/1] port trunk permit vlan 100
[Switch-GigabitEthernet1/0/1] port trunk pvid vlan 100
[Switch-GigabitEthernet1/0/1] quit
# 配置Switch与AP相连的GigabitEthernet1/0/2接口属性为Access,当前Access口允许VLAN100通过。
[Switch] interface gigabitethernet1/0/2
[Switch-GigabitEthernet1/0/2] port link-type access
[Switch-GigabitEthernet1/0/2] port access vlan 100
# 配置Switch与AP相连的GigabitEthernet1/0/2接口使能PoE功能。
[Switch-GigabitEthernet1/0/2] poe enable
[Switch-GigabitEthernet1/0/2] quit
3.3 验证配置# 按照如上配置,AC与AP可以进行关联。通过display wlan ap all命令看到AP的状态为Run。
[AC] display wlan ap all
Total Number of APs configured : 1
Total Number of configured APs connected : 0
Total Number of auto APs connected : 1
AP Profiles
--------------------------------------------------------------------------
AP Name APID State Model Serial-ID
--------------------------------------------------------------------------
officeap1 1 Idle WA2620E-AGN auto
b4b5-2f4f-ba28 2 Run WA2620E-AGN 21023529G007C000020
--------------------------------------------------------------------------
暂无评论