配置人员和资产管理示例
组网图形
图1配置人员和资产管理示例组网图
- 业务需求
- 组网需求
- 数据规划
- 配置思路
- 配置注意事项
- 操作步骤
- 配置文件
业务需求
某商场经常发现资产遗失或寻找不到。为降低财产损失,商场希望能统一监控资产所在位置和移动路径,以便掌握资产的流向。
为实现商场的需求,可以采用人员和资产管理方案。
组网需求
- AC组网方式:旁挂二层组网。
- DHCP部署方式:AC作为DHCP服务器为AP和STA分配IP地址。
- 业务数据转发方式:直接转发。
数据规划
配置项 | 数据 |
---|---|
管理VLAN | VLAN100 |
业务VLAN | VLAN101 |
AC的源接口 | VLANIF100 |
DHCP服务器 | AC作为DHCP服务器为AP和STA分配IP地址 |
STA的IP地址池 | 10.23.101.2~10.23.101.254/24 |
AP组 | * 名称:ap-group1 * 引用模板:VAP模板wlan-net、域管理模板default、BLE模板wlan-ble |
域管理模板 | * 名称:default * 国家码:CN |
SSID模板 | * 名称:wlan-net * SSID名称:wlan-net |
安全模板 | * 名称:wlan-net * 安全策略:WPA-WPA2+PSK+AES * 密码:a1234567 |
VAP模板 | * 名称:wlan-net * 转发模式:直接转发 * 业务VLAN:VLAN101 * 引用模板:SSID模板wlan-net、安全模板wlan-net |
BLE模板 | * 名称:wlan-ble * 蓝牙Tag报文上报:开启 * 定位服务器的域名/端口号:testabc.com/10001 |
[表1数据规划表] |
配置思路
-
配置AC与定位服务器互通。
-
配置AC作为DHCP服务器为AP和STA分配IP地址。
-
配置AP上线。
-
配置WLAN覆盖业务。
-
配置蓝牙Tag定位。
-
配置定位服务器。
配置注意事项
-
纯组播报文由于协议要求在无线空口没有ACK机制保障,且无线空口链路不稳定,为了纯组播报文能够稳定发送,通常会以低速报文形式发送。如果网络侧有大量异常组播流量涌入,则会造成无线空口拥堵。为了减小大量低速组播报文对无线网络造成的冲击,建议配置组播报文抑制功能。配置前请确认是否有组播业务,如果有,请谨慎配置限速值。
- 业务数据转发方式采用直接转发时,建议在直连AP的交换机接口上配置组播报文抑制。
- 业务数据转发方式采用隧道转发时,建议在AC的流量模板下配置组播报文抑制。
-
建议在与AP直连的设备接口上配置端口隔离,如果不配置端口隔离,尤其是业务数据转发方式采用直接转发时,可能会在VLAN内形成大量不必要的广播报文,导致网络阻塞,影响用户体验。
-
隧道转发模式下,管理VLAN和业务VLAN不能配置为同一VLAN,且AP和AC之间只能放通管理VLAN,不能放通业务VLAN。
-
V200R021C00版本开始,配置CAPWAP源接口或源地址时,会检查和安全相关的配置是否已存在,包括DTLS加密的PSK、AC间DTLS加密的PSK、登录AP的用户名和密码、全局离线管理VAP的登录密码,均已存在才能成功配置,否则会提示用户先完成相关的配置。
-
V200R021C00版本开始,AC默认开启CAPWAP控制隧道的DTLS加密功能。开启该功能,添加AP时AP会上线失败,此时需要先开启CAPWAP DTLS不认证方式(capwap dtls no-auth enable )让AP上线,以便AP获取安全凭证,AP上线后应及时关闭该功能(undo capwap dtls no-auth enable),避免未授权AP上线。
操作步骤
-
配置AC与定位服务器互通
请根据实际组网情况配置路由,保证互通。
-
配置交换机和AC,使AP与AC之间互通
javascript# 配置接入交换机Switch。将Switch的接口GE0/0/1~GE0/0/4加入VLAN100和VLAN101。 <HUAWEI> system-view [HUAWEI] sysname Switch [Switch] vlan batch 100 to 101 [Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] port link-type trunk [Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/1] quit [Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] port link-type trunk [Switch-GigabitEthernet0/0/2] port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/2] quit [Switch] interface gigabitethernet 0/0/3 [Switch-GigabitEthernet0/0/3] port link-type trunk [Switch-GigabitEthernet0/0/3] port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/3] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/3] quit [Switch] interface gigabitethernet 0/0/4 [Switch-GigabitEthernet0/0/4] port link-type trunk [Switch-GigabitEthernet0/0/4] port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/4] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/4] quit # 配置AC。配置接口GE0/0/1加入VLAN100和VLAN101。 <HUAWEI> system-view [HUAWEI] sysname AC [AC] vlan batch 100 to 101 [AC] interface gigabitethernet 0/0/1 [AC-GigabitEthernet0/0/1] port link-type trunk [AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 101 [AC-GigabitEthernet0/0/1] quit
-
配置AC作为DHCP服务器,为AP和STA分配IP地址
配置基于接口地址池的DHCP服务器。
javascriptDNS服务器地址请根据实际需要配置。常用配置方法如下: 接口地址池场景,需要在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上线
javascript# 创建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 default [AC-wlan-regulate-domain-default] country-code cn [AC-wlan-regulate-domain-default] quit [AC-wlan-view] ap-group name ap-group1 [AC-wlan-ap-group-ap-group1] regulatory-domain-profile default 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的部署位置为AP配置名称,便于从名称上就能够了解AP的部署位置。例如MAC地址为60de-4476-e360的AP部署在1号区域,命名此AP为area_1,同样加入area_2和area_3。 ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth。 举例中使用的AP为AP7052DN,具有射频0和射频1两个射频。 [AC] wlan [AC-wlan-view] ap auth-mode mac-auth [AC-wlan-view] ap-id 0 ap-mac 60de-4476-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 [AC-wlan-view] ap-id 1 ap-mac 60de-4476-e380 [AC-wlan-ap-1] ap-name area_2 Warning: This operation may cause AP reset. Continue? [Y/N]:y [AC-wlan-ap-1] 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-1] quit [AC-wlan-view] ap-id 2 ap-mac 60de-4476-e3a0 [AC-wlan-ap-2] ap-name area_3 Warning: This operation may cause AP reset. Continue? [Y/N]:y [AC-wlan-ap-2] 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-2] quit # 将AP上电后,当执行命令display ap all查看到AP的"State"字段为"nor"时,表示AP正常上线。 [AC-wlan-view] display ap all Total AP information: nor : normal [3] ExtraInfo : Extra information P : insufficient power supply ---------------------------------------------------------------------------------------------- ID MAC Name Group IP Type State STA Uptime ExtraInfo ---------------------------------------------------------------------------------------------- 0 60de-4476-e360 area_1 ap-group1 10.23.100.254 AP7052DN nor 0 22S - 1 60de-4476-e380 area_2 ap-group1 10.23.100.253 AP7052DN nor 0 51S - 2 60de-4476-e3a0 area_3 ap-group1 10.23.100.252 AP7052DN nor 0 55S - ---------------------------------------------------------------------------------------------- Total: 3
-
配置WLAN覆盖业务
javascript# 创建名为"wlan-net"的安全模板,并配置安全策略。 举例中以配置WPA-WPA2+PSK+AES的安全策略为例,密码为"a1234567",实际配置中请根据实际情况,配置符合实际要求的安全策略。 [AC-wlan-view] security-profile name wlan-net [AC-wlan-sec-prof-wlan-net] security wpa-wpa2 psk pass-phrase a1234567 aes [AC-wlan-sec-prof-wlan-net] quit # 创建名为"wlan-net"的SSID模板,并配置SSID名称为"wlan-net"。 [AC-wlan-view] ssid-profile name wlan-net [AC-wlan-ssid-prof-wlan-net] ssid wlan-net [AC-wlan-ssid-prof-wlan-net] quit # 创建名为"wlan-net"的VAP模板,配置业务数据转发模式、业务VLAN,并且引用安全模板和SSID模板。 [AC-wlan-view] vap-profile name wlan-net [AC-wlan-vap-prof-wlan-net] forward-mode direct-forward [AC-wlan-vap-prof-wlan-net] service-vlan vlan-id 101 [AC-wlan-vap-prof-wlan-net] security-profile wlan-net [AC-wlan-vap-prof-wlan-net] ssid-profile wlan-net [AC-wlan-vap-prof-wlan-net] quit # 配置AP组引用VAP模板,AP上射频0和射频1都使用VAP模板"wlan-net"的配置。 [AC-wlan-view] ap-group name ap-group1 [AC-wlan-ap-group-ap-group1] vap-profile wlan-net wlan 1 radio 0 [AC-wlan-ap-group-ap-group1] vap-profile wlan-net wlan 1 radio 1 [AC-wlan-ap-group-ap-group1] quit
-
配置蓝牙Tag定位功能
javascript# 创建名为"wlan-ble"的BLE模板,配置蓝牙Tag定位功能。 [AC-wlan-view] ble-profile name wlan-ble [AC-wlan-ble-prof-wlan-ble] sniffer enable tag-mode [AC-wlan-ble-prof-wlan-ble] report enable [AC-wlan-ble-prof-wlan-ble] report-to-server domain testabc.com port 10001 [AC-wlan-ble-prof-wlan-ble] quit # 将AP覆盖范围内的蓝牙Tag设备添加到监控列表中。 [AC-wlan-view] ble monitoring-list mac 1234-1234-1000 to 1234-1234-1002 # 配置AP组引用BLE模板。 [AC-wlan-view] ap-group name ap-group1 [AC-wlan-ap-group-ap-group1] ble-profile wlan-ble [AC-wlan-ap-group-ap-group1] quit
-
配置定位服务器
根据定位服务器的使用指南进行配置。
-
检查配置结果
javascript# WLAN业务配置会自动下发给AP。配置完成后,通过执行命令display vap ssid wlan-net查看如下信息,当"Status"项显示为"ON"时,表示AP对应的射频上的VAP已创建成功。 [AC-wlan-view] display vap ssid wlan-net WID : WLAN ID -------------------------------------------------------------------------------- AP ID AP name RfID WID BSSID Status Auth type STA SSID -------------------------------------------------------------------------------- 0 area_1 0 1 60DE-4476-E360 ON WPA/WPA2-PSK 1 wlan-net 0 area_1 1 1 60DE-4476-E370 ON WPA/WPA2-PSK 0 wlan-net 1 area_2 0 1 60DE-4476-E380 ON WPA/WPA2-PSK 1 wlan-net 1 area_2 1 1 60DE-4476-E390 ON WPA/WPA2-PSK 0 wlan-net 2 area_3 0 1 60DE-4476-E3a0 ON WPA/WPA2-PSK 1 wlan-net 2 area_3 1 1 60DE-4476-E3b0 ON WPA/WPA2-PSK 0 wlan-net ------------------------------------------------------------------------------------ Total: 6 # 查看AP获取到的蓝牙Tag信息。 [AC-wlan-view] display wlan ble site-info all ------------------------------------------------------------------------------------------------------------------------------------ --------------- Index MAC Host AP ID Host AP name RSSI Power Type DetachedFlag Aging-Timeout(m) Broadcast count Advertisement d ata ------------------------------------------------------------------------------------------------------------------------------------ --------------- 0 1234-1234-1000 0 area_1 -30 50% asset-tag N 57 10 02-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-fa 1 1234-1234-1001 1 area_2 -31 51% asset-tag N 57 10 01-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-fa 2 1234-1234-1002 2 area_3 -32 55% asset-tag N 57 10 03-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-fa ------------------------------------------------------------------------------------------------------------------------------------ --------------- Total: 3 # STA可以搜索到SSID为wlan-net的无线网络关联认证接入。
配置文件
javascript
接入交换机的配置文件
#
sysname Switch
#
vlan batch 100 to 101
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100 to 101
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 101
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 101
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 101
#
return
AC的配置文件
#
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 allow-pass vlan 100 to 101
#
capwap source interface vlanif100
#
wlan
security-profile name wlan-net
security wpa-wpa2 psk pass-phrase %^%#)P{x4pF\iPP'Wm!wy%.IZyh!,_S(OXV/k>'KvG%%%^%# aes
ssid-profile name wlan-net
ssid wlan-net
vap-profile name wlan-net
service-vlan vlan-id 101
ssid-profile wlan-net
security-profile wlan-net
regulatory-domain-profile name default
ble-profile name wlan-ble
sniffer enable tag-mode
report-to-server domain testabc.com port 10001
report enable
ble monitoring-list mac 1234-1234-1000
ble monitoring-list mac 1234-1234-1001
ble monitoring-list mac 1234-1234-1002
ap-group name ap-group1
ble-profile wlan-ble
radio 0
vap-profile wlan-net wlan 1
radio 1
vap-profile wlan-net wlan 1
ap-id 0 ap-mac 60de-4476-e360 ap-sn 210235419610D2000066
ap-name area_1
ap-group ap-group1
ap-id 1 ap-mac 60de-4476-e380 ap-sn 210235419610D2000067
ap-name area_2
ap-group ap-group1
ap-id 2 ap-mac 60de-4476-e3a0 ap-sn 210235419610D2000068
ap-name area_3
ap-group ap-group1
provision-ap
#
return