成长值: 63715
|
本帖最后由 小乔 于 2023-9-10 15:34 编辑
配置流程WLAN不同的特性和功能需要在不同类型的模板下进行配置和维护,这些模板统称为WLAN模板,如域管理模板、射频模板、VAP模板、AP系统模板、AP有线口模板、WIDS模板、WDS模板、Mesh模板。当用户在配置WLAN业务功能时,需要在对应功能的WLAN模板中进行参数配置,配置完成后,须将此模板引用到AP组或AP中,配置下发到AP,进而配置的功能在AP上生效。由于模板之间是存在相互引用关系的,因此在用户配置过程中,需要提前了解各个模板之间存在的逻辑关系。模板的逻辑关系和基本配置流程请参见WLAN业务配置流程。
组网需求如图28-41所示,某企业中部署WLAN网络。且数据转发方式为隧道转发。管理员希望在该网络中能够对员工的上网行为进行限制,因此需要部署基于应用协议的Qos策略。 已知AP覆盖范围内的有FaceTime、SkypeForBusiness、QQ_VoIP等应用涉及语音、视频和数据业务,用户希望了解各种应用流量的使用情况,以便对网络进行容量规划以及定位网络中存在问题,包括丢弃FaceTime的报文,指定SkypeForBusiness的优先级,对QQ_VoIP进行限速等。 图28-41 配置基于应用协议的Qos策略示例组网图

配置思路
采用如下的思路配置基于应用协议的Qos策略:- 配置WLAN基本业务,保证用户能够连接到无线网络。
- 配置应用可视化功能,包括指定SkypeForBusiness的优先级,丢弃FaceTime的报文和对QQ_VoIP进行限速。
表28-39 数据规划表
配置项 | | DHCP服务器 | AC作为DHCP服务器为STA和AP分配IP地址 | AP的IP地址池 | 10.23.100.2~10.23.100.254/24 | STA的IP地址池 | 10.23.101.2~10.23.101.254/24 | AC的源接口IP地址 | VLANIF 100:10.23.100.1/24 | AP组 | - 名称:ap-group1
- 引用模板:VAP模板wlan-vap、域管理模板domain1、SAC模板wlan-sac
| 域管理模板 | | SSID模板 | - 名称:wlan-ssid
- SSID名称:wlan-net
| 安全模板 | - 名称:wlan-security
- 安全策略:WPA2+PSK+AES
- 密码:a1234567
| VAP模板 | - 名称:wlan-vap
- 转发模式:隧道转发
- 业务VLAN:VLAN101
- 引用模板:SSID模板wlan-ssid、安全模板wlan-security
| SAC模板 | 名称:wlan-sac |
配置注意事项
操作步骤
配置AC,使AP与AC之间能够传输CAPWAP报文
# 配置AC,将接口GE0/0/1加入VLAN100(管理VLAN)。
<HUAWEI> system-view
[HUAWEI] sysname AC
[AC] vlan batch 100 101
[AC] interface gigabitethernet 0/0/1
[AC-GigabitEthernet0/0/1] port link-type trunk
[AC-GigabitEthernet0/0/1] port trunk pvid vlan 100
[AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[AC-GigabitEthernet0/0/1] quit
配置AC与上层网络设备互通
根据实际组网情况在AC上行口配置业务VLAN透传,和上行网络设备互通。
# 配置AC上行接口GE0/0/2加入VLAN101(业务VLAN)。
[AC] interface gigabitethernet 0/0/2
[AC-GigabitEthernet0/0/2] port link-type trunk
[AC-GigabitEthernet0/0/2] port trunk allow-pass vlan 101
[AC-GigabitEthernet0/0/2] quit
配置AC作为DHCP服务器,为STA和AP分配IP地址
# 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为AP提供IP地址,VLANIF101为STA提供IP地址。
DNS服务器地址请根据实际需要配置。常用配置方法如下:
接口地址池场景,需要在VLANIF接口视图下执行命令dhcp server dns-list ip-address &<1-8>。
全局地址池场景,需要在IP地址池视图下执行命令dns-list ip-address &<1-8>。
[AC] dhcp enable
[AC] interface vlanif 100
[AC-Vlanif100] ip address 10.23.100.1 24
[AC-Vlanif100] dhcp select interface
[AC-Vlanif100] quit
[AC] interface vlanif 101
[AC-Vlanif101] ip address 10.23.101.1 24
[AC-Vlanif101] dhcp select interface
[AC-Vlanif101] quit
配置AP上线
# 创建AP组,用于将相同配置的AP都加入同一AP组中。
[AC] wlan
[AC-wlan-view] ap-group name ap-group1
[AC-wlan-ap-group-ap-group1] quit
# 创建域管理模板,在域管理模板下配置AC的国家码并在AP组下引用域管理模板。
[AC-wlan-view] regulatory-domain-profile name domain1
[AC-wlan-regulate-domain-domain1] country-code cn
[AC-wlan-regulate-domain-domain1] quit
[AC-wlan-view] ap-group name ap-group1
[AC-wlan-ap-group-ap-group1] regulatory-domain-profile domain1
Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:y
[AC-wlan-ap-group-ap-group1] quit
[AC-wlan-view] quit
# 配置AC的源接口。
[AC] capwap source interface vlanif 100
# 在AC上离线导入AP,并将AP加入AP组“ap-group1”中。假设AP的MAC地址为00e0-fc76-e360,并且根据AP的部署位置为AP配置名称,便于从名称上就能够了解AP的部署位置。例如MAC地址为00e0-fc76-e360的AP部署在1号区域,命名此AP为area_1。
ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth命令。
举例中使用的AP为AP5030DN,具有射频0和射频1两个射频。AP5030DN的射频0为2.4GHz射频,射频1为5GHz射频。
[AC] wlan
[AC-wlan-view] ap auth-mode mac-auth
[AC-wlan-view] ap-id 0 ap-mac 00e0-fc76-e360
[AC-wlan-ap-0] ap-name area_1
Warning: This operation may cause AP reset. Continue? [Y/N]:y
[AC-wlan-ap-0] ap-group ap-group1
Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:y
[AC-wlan-ap-0] quit
# 将AP上电后,当执行命令display ap all查看到AP的“State”字段为“nor”时,表示AP正常上线。
[AC-wlan-view] display ap all
Total AP information:
nor : normal [1]
Extrainfo : Extra information
P : insufficient power supply
--------------------------------------------------------------------------------------------------
ID MAC Name Group IP Type State STA Uptime ExtraInfo
--------------------------------------------------------------------------------------------------
0 00e0-fc76-e360 area_1 ap-group1 10.23.100.254 AP5030DN nor 0 10S -
--------------------------------------------------------------------------------------------------
Total: 1
配置WLAN业务参数
# 创建名为“wlan-security”的安全模板,并配置安全策略。
举例中以配置WPA2+PSK+AES的安全策略为例,密码为“a1234567”,实际配置中请根据实际情况,配置符合实际要求的安全策略。
[AC-wlan-view] security-profile name wlan-security
[AC-wlan-sec-prof-wlan-security] security wpa2 psk pass-phrase a1234567 aes
[AC-wlan-sec-prof-wlan-security] quit
# 创建名为“wlan-ssid”的SSID模板,并配置SSID名称为“wlan-net”。
[AC-wlan-view] ssid-profile name wlan-ssid
[AC-wlan-ssid-prof-wlan-ssid] ssid wlan-net
[AC-wlan-ssid-prof-wlan-ssid] quit
# 创建名为“wlan-vap”的VAP模板,配置业务数据转发模式、业务VLAN,并且引用安全模板和SSID模板。
[AC-wlan-view] vap-profile name wlan-vap
[AC-wlan-vap-prof-wlan-vap] forward-mode tunnel
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-vap-prof-wlan-vap] service-vlan vlan-id 101
[AC-wlan-vap-prof-wlan-vap] security-profile wlan-security
[AC-wlan-vap-prof-wlan-vap] ssid-profile wlan-ssid
[AC-wlan-vap-prof-wlan-vap] quit
# 配置AP组引用VAP模板,AP上射频0和射频1都使用VAP模板“wlan-vap”的配置。
[AC-wlan-view] ap-group name ap-group1
[AC-wlan-ap-group-ap-group1] vap-profile wlan-vap wlan 1 radio 0
[AC-wlan-ap-group-ap-group1] vap-profile wlan-vap wlan 1 radio 1
[AC-wlan-ap-group-ap-group1] quit
配置AP射频的信道和功率
射频的信道和功率自动调优功能默认开启,如果不关闭此功能则会导致手动配置不生效。举例中AP射频的信道和功率仅为示例,实际配置中请根据AP的国家码和网规结果进行配置。
# 关闭AP射频0的信道和功率自动调优功能,并配置AP射频0的信道和功率。
[AC-wlan-view] ap-id 0
[AC-wlan-ap-0] radio 0
[AC-wlan-radio-0/0] calibrate auto-channel-select disable
[AC-wlan-radio-0/0] calibrate auto-txpower-select disable
[AC-wlan-radio-0/0] channel 20mhz 6
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-0/0] eirp 127
[AC-wlan-radio-0/0] quit
# 关闭AP射频1的信道和功率自动调优功能,并配置AP射频1的信道和功率。
[AC-wlan-ap-0] radio 1
[AC-wlan-radio-0/1] calibrate auto-channel-select disable
[AC-wlan-radio-0/1] calibrate auto-txpower-select disable
[AC-wlan-radio-0/1] channel 20mhz 149
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-0/1] eirp 127
[AC-wlan-radio-0/1] quit
[AC-wlan-ap-0] quit
配置应用可视化
# 使能安全引擎。
[AC-wlan-view] quit
[AC] defence engine enable
使能安全引擎后,系统自动加载默认特征库。
特征库中包含语音和视频业务优化功能所支持的语音和视频协议。
# 创建名为“wlan-sac”的SAC模板视图,并进入模板视图。
[AC] wlan
[AC-wlan-view] sac-profile name wlan-sac
# 配置VAP协议统计功能。
[AC-wlan-sac-prof-wlan-sac] vap-protocol-statistic enable
# 配置用户协议统计功能。
[AC-wlan-sac-prof-wlan-sac] user-protocol-statistic enable
# 配置SkypeForBusiness的DSCP优先级为40。
[AC-wlan-sac-prof-wlan-sac] application-group instant_message app-protocol skypeforbusiness remark dscp 40
# 配置丢弃FaceTime的报文。
[AC-wlan-sac-prof-wlan-sac] application-group voip app-protocol facetime deny
# 配置对QQ_VoIP的限速为1000kbit/s。
[AC-wlan-sac-prof-wlan-sac] application-group voip app-protocol qq_voip car 1000
[AC-wlan-sac-prof-wlan-sac] quit
# 将SAC模板“wlan-sac”绑定到的VAP模板“wlan-vap”下,使配置的策略生效。
[AC-wlan-view] vap-profile name wlan-vap
[AC-wlan-vap-prof-wlan-vap] sac-profile wlan-sac
[AC-wlan-vap-prof-wlan-vap] quit
[AC-wlan-view] quit
[AC] quit
验证配置结果
# 查看SAC功能是否开启。
<AC> display sac information
------------------------------------------------------------------------------
SAC status : enabled
App protocol number : 1630
SAC signature status : loaded
SAC signature version : 7.2.1059.1
------------------------------------------------------------------------------
# 查看area_1的射频0上的VAP对QQ_VoIP报文的统计信息。
<AC> display sac protocol-statistic total inbound protocol qq_voip ap-name area_1 radio-id 0 ssid wlan-net
Protocol Direction Packets Bytes
--------------------------------------------------------------------------
qq_voip inbound 4096 100000
--------------------------------------------------------------------------
# 查看MAC地址为286E-D488-BF0B的用户的QQ_VoIP报文的统计信息。
<AC> display sac protocol-statistic total inbound protocol qq_voip user 286E-D488-BF0B
Protocol Direction Packets Bytes
--------------------------------------------------------------------------
qq_voip inbound 1000 100000
--------------------------------------------------------------------------
配置文件
AC的配置文件
#
defence engine enable
sysname AC
#
vlan batch 100 to 101
#
dhcp enable
#
interface Vlanif100
ip address 10.23.100.1 255.255.255.0
dhcp select interface
#
interface Vlanif101
ip address 10.23.101.1 255.255.255.0
dhcp select interface
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 101
#
capwap source interface vlanif100
#
wlan
security-profile name wlan-security
security wpa2 psk pass-phrase %^%#Z'(8*=Q-k%k:|I&[!)+39P:g%^%# aes
ssid-profile name wlan-ssid
ssid wlan-net
sac-profile name wlan-sac
vap-protocol-statistic enable
user-protocol-statistic enable
application-group instant_message app-protocol skypeforbusiness remark dscp 40
application-group voip app-protocol qq_voip car 1000
application-group voip app-protocol facetime deny
vap-profile name wlan-vap
forward-mode tunnel
service-vlan vlan-id 101
ssid-profile wlan-ssid
security-profile wlan-security
sac-profile wlan-sac
regulatory-domain-profile name domain1
ap-group name ap-group1
regulatory-domain-profile domain1
radio 0
vap-profile wlan-vap wlan 1
radio 1
vap-profile wlan-vap wlan 1
ap-id 0 type-id 19 ap-mac 60de-4476-e360 ap-sn 210235554710CB000042
ap-name area_1
ap-group ap-group1
radio 0
channel 20mhz 6
eirp 127
calibrate auto-channel-select disable
calibrate auto-txpower-select disable
radio 1
channel 20mhz 149
eirp 127
calibrate auto-channel-select disable
calibrate auto-txpower-select disable
#
return
|
|