直连式三层组网,数据业务隧道转发
适用的AC:AC6605、AC6005
适用的AP:所有形态的AP
组网需求
如图1所示,现有网络中AC连接上层网络,并通过汇聚交换机和接入交换机连接管理AP1和AP2。AC和AP之间网络属于三层组网,可对大范围内进行组网且简化网络结构,主要应用于企业用户且希望能对数据报文进行有效管理。
由于有线网络需要进行大量的网线布放,耗费大量成本和人力,且用户使用网络不具备灵活性。用户希望通过WLAN部署,减少网线布放的成本和人力,提高用户使用网络的灵活性以及网络的可维护性。
图1 组网配置图
数据规划
| 规划内容 | 规划数据 |
| WLAN安全 | WEP Open-system认证,不加密 |
| WLAN服务集 | Name:huawei-1 SSID:huawei-1 WLAN 虚接口:WLAN-ESS0 数据转发模式:隧道转发
Name:huawei-2 SSID:huawei-2 WLAN 虚接口:WLAN-ESS1 数据转发模式:隧道转发 |
| AP管理VLAN | VLAN 200 |
| AP业务VLAN | AP1:VLAN 101 AP2:VLAN 102 |
| AC Carrier ID/AC ID | other/1 |
| WLAN AC SOURCE地址 | 172.16.10.1/24 |
| AP管理IP地址池 | 192.168.10.2~192.168.10.254/24 |
| AP管理网关 | 192.168.10.1/24(汇聚交换机上) |
| AP1用户上网公网地址池 | 192.168.11.2~192.168.11.254/24 |
| AP1用户上网公网网关 | 192.168.11.1/24(AC上) |
| AP2用户上网公网地址池 | 192.168.12.2~192.168.12.254/24 |
| AP2用户上网公网网关 | 192.168.12.1/24(AC上) |
| DHCP Server | AC作为AP和用户的DHCP服务器 |
配置流程
按照图1进行物理连接,保证AC与IP骨干网之间网络连接正常。
配置接入交换机和汇聚交换机,保证AC与AP路由可达。
在AC上配置WLAN相关业务。
业务下发至AP,用户完成业务验证。
配置注意事项
接入交换机或AC上直接接AP的端口,需要添加管理VLAN tag。AP上为零配置。
业务IP地址池给STA分配IP地址,管理IP地址池给AP分配IP地址,两种地址池需要分开配置。
需要将所有二层交换机在AP管理VLAN和业务VLAN内的下行口上配置端口隔离,如果不配置端口隔离,可能会在VLAN内存在不必要的广播报文,或者导致不同AP间的WLAN用户二层互通的问题。端口隔离功能未开启时,建议从接入交换机到AC之间的所有网络设备的接口都配置undo port trunk allow-pass vlan 1,防止引起报文冲突,占用端口资源。
当用户新开局时,对于AP的射频信道的设置,用户可根据网络规划手动指定,也可使用射频调优功能自动选择最佳信道。
如果使用射频调优功能自动选择信道,用户可在所有的AP完成配置下发后,执行下述步骤:
(推荐)将射频调优模式改为定时调优(执行命令calibrate enable schedule time time-value),并将调优时间定为用户业务空闲时段(如当地时间凌晨00:00-06:00时段)。
手动固定信道:在射频模板视图下执行命令channel-mode fixed将信道固定,执行power-mode fixed将功率固定。如果有新AP加入,用户可重复执行上述步骤2~4。
在射频模板视图下执行命令channel-mode auto将信道模式该模式改为auto,执行power-mode auto将功率模式改为auto。
执行命令calibrate enable manual,配置射频调优的模式为manual。
执行命令calibrate manual startup,手动触发调优功能。
执行手动调优一小时后,调优结束。此时用户可以选以下两种方案:
操作步骤
1、配置接入交换机
# 由接入交换机给AP管理报文添加VLAN 100的tag,AC和AP之间网络属于三层组网,需要配置AP到汇聚交换机之间VLAN 100内互通
<Quidway> system-view [Quidway] vlan 100 [Quidway] interface ethernet 0/0/1 [Quidway-Ethernet0/0/1] port link-type trunk [Quidway-Ethernet0/0/1] port trunk pvid vlan 100 [Quidway-Ethernet0/0/1] port trunk allow-pass vlan 100 [Quidway-Ethernet0/0/1] port-isolate enable [Quidway-Ethernet0/0/1] quit[Quidway] interface ethernet 0/0/2 [Quidway-Ethernet0/0/2] port link-type trunk [Quidway-Ethernet0/0/2] port trunk pvid vlan 100 [Quidway-Ethernet0/0/2] port trunk allow-pass vlan 100 [Quidway-Ethernet0/0/2] port-isolate enable [Quidway-Ethernet0/0/2] quit [Quidway] interface gigabitethernet 0/0/1 [Quidway-GigabitEthernet0/0/1] port link-type trunk [Quidway-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [Quidway-GigabitEthernet0/0/1] quit
2、配置汇聚交换机
# 使能汇聚交换机的DHCP Relay功能,实现VLAN 200和VLAN 100的互通。配置汇聚交换机到AC之间VLAN 200互通
说明:此处以S5700为例,不同的设备配置命令可能稍有区别
<Quidway> system-view [Quidway] vlan batch 100 200 [Quidway] dhcp enable [Quidway] interface Vlanif 100 [Quidway-Vlanif100] ip address 192.168.10.1 24 [Quidway-Vlanif100] dhcp select relay [Quidway-Vlanif100] dhcp relay server-ip 172.16.10.1 [Quidway-Vlanif100] quit[Quidway] interface vlanif 200 [Quidway-Vlanif200] ip address 172.16.10.254 24 [Quidway-Vlanif200] quit[Quidway] interface gigabitethernet 0/0/1 [Quidway-GigabitEthernet0/0/1] port link-type trunk [Quidway-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [Quidway-GigabitEthernet0/0/1] quit [Quidway] interface gigabitethernet 0/0/2 [Quidway-GigabitEthernet0/0/2] port link-type trunk [Quidway-GigabitEthernet0/0/2] port trunk allow-pass vlan 200 [Quidway-GigabitEthernet0/0/2] quit
3、配置AC
配置AC,使AP与AC之间能够传输管理报文
# 配置AC,将接口GE0/0/1加入VLAN100
<AC6605> system-view [AC6605] sysname AC [AC] vlan batch 100 101 102 [AC] interface gigabitethernet 0/0/1 [AC-GigabitEthernet0/0/1] port link-type trunk [AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [AC-GigabitEthernet0/0/1] quit
4、配置AC与上层网络设备互通
说明:根据实际组网情况在AC上行口配置业务VLAN透传,和上行网络设备互通。
# 配置AC上行接口GE0/0/2加入VLAN101和VLAN102
[AC] interface gigabitethernet 0/0/2 [AC-GigabitEthernet0/0/2] port link-type trunk [AC-GigabitEthernet0/0/2] port trunk allow-pass vlan 101 102 [AC-GigabitEthernet0/0/2] quit
5、配置AC的接口,使能DHCP服务器,AC同时作为AP和用户的DHCP服务器
[AC] dhcp enable [AC] interface Vlanif 200 [AC-Vlanif200] ip address 172.16.10.1 24 [AC-Vlanif200] dhcp select global [AC-Vlanif200] quit [AC] interface Vlanif 101 [AC-Vlanif101] ip address 192.168.11.1 24 [AC-Vlanif101] dhcp select interface [AC-Vlanif101] quit [AC] interface Vlanif 102 [AC-Vlanif102] ip address 192.168.12.1 24 [AC-Vlanif102] dhcp select interface [AC-Vlanif102] quit
6、配置AC的全局参数
# 配置AC的国家码、AC ID、运营商标识和AC的源接口
[AC] wlan ac-global country-code cn Warning: Modify the country code may delete configuration on those AP which use the global country code and reset them, are you sure to continue?[Y/N]:y [AC] wlan ac-global ac id 1 carrier id other [AC] wlan [AC-wlan-view] wlan ac source interface vlanif 200
#置AP地址池
[AC] ip pool huawei-ap [AC-ip-pool-huawei-ap] gateway-list 192.168.10.1 [AC-ip-pool-huawei-ap] network 192.168.10.0 mask 24 [AC-ip-pool-huawei-ap] option 43 sub-option 3 ascii 172.16.10.1 [AC-ip-pool-huawei-ap] quit [AC] ip route-static 192.168.10.0 24 172.16.10.254
配置AP并上线
# 配置AP的认证方式为MAC认证
[AC-wlan-view] ap-auth-mode mac-auth
7、配置WLAN-ESS虚接口
[AC] interface wlan-ess 0 [AC-Wlan-Ess0] port hybrid pvid vlan 101 [AC-Wlan-Ess0] port hybrid untagged vlan 101 [AC-Wlan-Ess0] quit [AC] interface wlan-ess 1 [AC-Wlan-Ess1] port hybrid pvid vlan 102 [AC-Wlan-Ess1] port hybrid untagged vlan 102 [AC-Wlan-Ess1] quit
8、配置AP的各项参数
# 配置WMM模板和射频模板,参数采用默认配置,将WMM模板绑定到射频模板
[AC] wlan [AC-wlan-view] wmm-profile name huawei-ap1 [AC-wlan-wmm-prof-huawei-ap1] quit [AC-wlan-view] wmm-profile name huawei-ap2 [AC-wlan-wmm-prof-huawei-ap2] quit [AC-wlan-view] radio-profile name huawei-ap1 [AC-wlan-radio-prof-huawei-ap1] wmm-profile name huawei-ap1 [AC-wlan-radio-prof-huawei-ap1] quit [AC-wlan-view] radio-profile name huawei-ap2 [AC-wlan-radio-prof-huawei-ap2] wmm-profile name huawei-ap2 [AC-wlan-radio-prof-huawei-ap2] quit
# 配置安全模板,参数采用默认配置,即开放认证、不加密
[AC-wlan-view] security-profile name huawei-ap [AC-wlan-sec-prof-huawei-ap] quit
# 配置流量模板,参数采用默认配置
[AC-wlan-view] traffic-profile name huawei-ap [AC-wlan-traffic-prof-huawei-ap] quit
# 配置AP1和AP2的服务集,设置数据转发模式为隧道转发
[AC-wlan-view] service-set name huawei-1 [AC-wlan-service-set-huawei-1] ssid huawei-1 [AC-wlan-service-set-huawei-1] wlan-ess 0 [AC-wlan-service-set-huawei-1] service-vlan 101 [AC-wlan-service-set-huawei-1] security-profile name huawei-ap [AC-wlan-service-set-huawei-1] traffic-profile name huawei-ap [AC-wlan-service-set-huawei-1] forward-mode tunnel [AC-wlan-service-set-huawei-1] quit [AC-wlan-view] service-set name huawei-2 [AC-wlan-service-set-huawei-2] ssid huawei-2 [AC-wlan-service-set-huawei-2] wlan-ess 1 [AC-wlan-service-set-huawei-2] service-vlan 102 [AC-wlan-service-set-huawei-2] security-profile name huawei-ap [AC-wlan-service-set-huawei-2] traffic-profile name huawei-ap [AC-wlan-service-set-huawei-2] forward-mode tunnel [AC-wlan-service-set-huawei-2] quit
配置AP对应的VAP并下发配置
[AC-wlan-view] ap 1 radio 0 [AC-wlan-radio-1/0] radio-profile name huawei-ap1 [AC-wlan-radio-1/0] service-set name huawei-1 [AC-wlan-radio-1/0] quit [AC-wlan-view] commit all Warning: Committing configuration may cause service interruption,continue?[Y/N ] y
使能射频调优功能自动选择AP最佳信道
# 配置射频调优功能。缺省情况下,射频模板中的射频模式和功率模式均为auto,射频调优工作模式为manual,因此此步骤不在赘述。当射频调优工作模式为manual时,需要执行命令calibrate manual startup手动触发调优功能
<AC6605> system-view [AC6605] wlan [AC6605-wlan-view] calibrate manual startup





