华为配置终端定位基本实验配置

news2024/9/22 19:40:49

配置终端定位基本示例

组网图形

图1 配置终端定位基本服务示例

  • 组网需求
  • 数据准备
  • 配置思路
  • 配置注意事项
  • 操作步骤
  • 配置文件

组网需求

如图1所示,某公司网络中,中心AP直接与RU连接。

管理员希望通过RU收集Wi-Fi终端信息,并提供给定位服务器进行定位计算,使用户可以通过地图、表格或报告等形式获取到该Wi-Fi终端的位置信息。

数据准备

项目

数据

RU管理VLAN

VLAN100

STA业务VLAN

VLAN101

DHCP服务器

中心AP作为RU和STA的DHCP服务器

RU地址池

10.23.100.3~10.23.100.254/24

STA地址池

10.23.101.2~10.23.101.254/24

AP组

  • 名称:ap-group1

  • 引用模板:域管理模板domain1、VAP模板wlan-vap、2G射频模板wlan-radio-2g、5G射频模板wlan-radio-5g和定位模板wlan-location

域管理模板

  • 名称:domain1
  • 国家码:CN

SSID模板

  • 名称:wlan-ssid

  • SSID名称:wlan-net

安全模板

  • 名称:wlan-security

  • 安全策略:WPA2+PSK+AES

  • 密码:a1234567

VAP模板

  • 名称:wlan-vap

  • 业务VLAN:VLAN101

  • 引用模板:SSID模板wlan-ssid、安全模板wlan-security

空口扫描模板

  • 名称:wlan-air-scan

  • 探测信道集合:国家码信道

2G射频模板

  • 名称:wlan-radio-2g

  • 引用模板:空口扫描模板wlan-air-scan

5G射频模板

  • 名称:wlan-radio-5g

  • 引用模板:空口扫描模板wlan-air-scan

定位模板

  • 名称:wlan-location

  • AP上报信道扫描信息的目的IP/端口号:10.23.100.2/32180

配置思路

采用如下的思路配置WLAN终端定位业务:

  • 配置WLAN基本业务,保证用户能够通过WLAN网络接入公司内部网络。
  • 配置终端定位功能,保证RU可以接收定位服务器的配置信息并将收集到的终端信息发送给定位服务器。

配置注意事项

建议在与RU直连的设备接口上配置端口隔离,如果不配置端口隔离,可能会在VLAN内形成大量不必要的广播报文,导致网络阻塞,影响用户体验。

操作步骤
  1. 配置定位服务器(略)。
  2. 配置中心AP,使AP与中心AP之间能够传输CAPWAP报文

    # 配置中心AP连接AP的接口GigabitEthernet0/0/1~GigabitEthernet0/0/3加入VLAN100(管理VLAN)。
    
    <HUAWEI> system-view
    [HUAWEI] sysname AP
    [AP] vlan batch 100 101
    [AP] interface gigabitethernet 0/0/1
    [AP-GigabitEthernet0/0/1] port link-type trunk
    [AP-GigabitEthernet0/0/1] port trunk pvid vlan 100
    [AP-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 101
    [AP-GigabitEthernet0/0/1] quit
    [AP] interface gigabitethernet 0/0/2
    [AP-GigabitEthernet0/0/2] port link-type trunk
    [AP-GigabitEthernet0/0/2] port trunk pvid vlan 100
    [AP-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 101
    [AP-GigabitEthernet0/0/2] quit
    [AP] interface gigabitethernet 0/0/3
    [AP-GigabitEthernet0/0/3] port link-type trunk
    [AP-GigabitEthernet0/0/3] port trunk pvid vlan 100
    [AP-GigabitEthernet0/0/3] port trunk allow-pass vlan 100 101
    [AP-GigabitEthernet0/0/3] quit

  3. 配置中心AP与定位服务器互通

    # 配置中心AP连接定位服务器的接口GE0/0/24加入VLAN100。
    
    [AP] interface gigabitethernet 0/0/24
    [AP-GigabitEthernet0/0/24] port link-type trunk
    [AP-GigabitEthernet0/0/24] port trunk pvid vlan 100
    [AP-GigabitEthernet0/0/24] port trunk allow-pass vlan 100 101
    [AP-GigabitEthernet0/0/24] quit

  4. 配置中心AP作为DHCP服务器,为STA和RU分配IP地址

    # 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为RU提供IP地址,VLANIF101为STA提供IP地址。
    
    [AP] dhcp enable
    [AP] interface vlanif 100
    [AP-Vlanif100] ip address 10.23.100.1 24
    [AP-Vlanif100] dhcp select interface
    [AP-Vlanif100] quit
    [AP] interface vlanif 101
    [AP-Vlanif101] ip address 10.23.101.1 24
    [AP-Vlanif101] dhcp select interface
    [AP-Vlanif101] quit

  5. 配置RU上线

    # 创建AP组,用于将相同配置的RU都加入同一AP组中。
    [AP] wlan
    [AP-wlan-view] ap-group name ap-group1
    [AP-wlan-ap-group-ap-group1] quit
    # 创建域管理模板,在域管理模板下配置中心AP的国家码并在AP组下引用域管理模板。
    [AP-wlan-view] regulatory-domain-profile name domain1
    [AP-wlan-regulatory-domain-prof-domain1] country-code cn
    [AP-wlan-regulatory-domain-prof-domain1] quit
    [AP-wlan-view] ap-group name ap-group1
    [AP-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. Continu e?[Y/N]:y  
    [AP-wlan-ap-group-ap-group1] quit
    [AP-wlan-view] quit
    # 配置中心AP的管理VLAN。
    [AP] management-vlan 100
    # 在中心AP上离线导入RU,并将RU加入AP组“ap-group1”中。根据RU的部署位置为RU配置名称,便于从名称上就能够了解RU的部署位置。例如MAC地址为fcb6-9897-c520的RU部署在1号区域,命名此RU为area_1。​​​​​​​
    ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth。
    
    举例中使用的RU为R240D,具有射频0和射频1两个射频。
    
    [AP] wlan
    [AP-wlan-view] ap auth-mode mac-auth
    [AP-wlan-view] ap-id 1 ap-mac fcb6-9897-c520
    [AP-wlan-ap-1] ap-name area_1
    [AP-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  
    [AP-wlan-ap-1] quit
    [AP-wlan-view] ap-id 2 ap-mac fcb6-9897-c9c0
    [AP-wlan-ap-2] ap-name area_2
    [AP-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  
    [AP-wlan-ap-2] quit
    [AP-wlan-view] ap-id 3 ap-mac fcb6-9897-ca40
    [AP-wlan-ap-3] ap-name area_3
    [AP-wlan-ap-3] 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  
    [AP-wlan-ap-3] quit
    # 将RU上电后,当执行命令display ap all查看到RU的“State”字段为“nor”时,表示RU正常上线。
    
    [AP-wlan-view] display ap all
    Total AP information:
    nor  : normal          [3]
    ----------------------------------------------------------------------------------------
    ID   MAC            Name   Group     IP            Type                State STA Uptime
    ----------------------------------------------------------------------------------------
    1    fcb6-9897-c520 area_1 ap-group1 10.23.100.254 R240D               nor   0   25S
    2    fcb6-9897-c9c0 area_2 ap-group1 10.23.100.253 R240D               nor   0   20S
    3    fcb6-9897-ca40 area_3 ap-group1 10.23.100.252 R240D               nor   0   10S
    ----------------------------------------------------------------------------------------
    Total: 3

  6. 配置WLAN业务参数

    # 创建名为“wlan-security”的安全模板,并配置安全策略。
    举例中以配置WPA2+PSK+AES的安全策略为例,密码为“a1234567”,实际配置中请根据实际情况,配置符合实际要求的安全策略。
    
    [AP-wlan-view] security-profile name wlan-security
    [AP-wlan-sec-prof-wlan-security] security wpa2 psk pass-phrase a1234567 aes
    [AP-wlan-sec-prof-wlan-security] quit
    # 创建名为“wlan-ssid”的SSID模板,并配置SSID名称为“wlan-net”。
    
    [AP-wlan-view] ssid-profile name wlan-ssid
    [AP-wlan-ssid-prof-wlan-ssid] ssid wlan-net
    [AP-wlan-ssid-prof-wlan-ssid] quit
    # 创建名为“wlan-vap”的VAP模板,配置业务VLAN,并且引用安全模板和SSID模板。
    
    [AP-wlan-view] vap-profile name wlan-vap
    [AP-wlan-vap-prof-wlan-vap] service-vlan vlan-id 101
    [AP-wlan-vap-prof-wlan-vap] security-profile wlan-security
    [AP-wlan-vap-prof-wlan-vap] ssid-profile wlan-ssid
    [AP-wlan-vap-prof-wlan-vap] quit
    # 配置AP组引用VAP模板,RU上射频0和射频1都使用VAP模板“wlan-vap”的配置。
    
    [AP-wlan-view] ap-group name ap-group1
    [AP-wlan-ap-group-ap-group1] vap-profile wlan-vap wlan 1 radio 0
    [AP-wlan-ap-group-ap-group1] vap-profile wlan-vap wlan 1 radio 1
    [AP-wlan-ap-group-ap-group1] quit

  7. 配置WLAN空口扫描功能

    # 创建名为“wlan-air-scan”的空口扫描模板,并配置空口扫描信道集合。
    [AP-wlan-view] air-scan-profile name wlan-air-scan
    [AP-wlan-air-scan-prof-wlan-air-scan] scan-channel-set country-channel
    [AP-wlan-air-scan-prof-wlan-air-scan] quit
    # 创建名为“wlan-radio-2g”的2G射频模板,并引用名为“wlan-air-scan”的空口扫描模板。
    [AP-wlan-view] radio-2g-profile name wlan-radio-2g
    [AP-wlan-radio-2g-prof-wlan-radio-2g] air-scan-profile wlan-air-scan
    [AP-wlan-radio-2g-prof-wlan-radio-2g] quit
    # 创建名为“wlan-radio-5g”的5G射频模板,并引用名为“wlan-air-scan”的空口扫描模板。
    [AP-wlan-view] radio-5g-profile name wlan-radio-5g
    [AP-wlan-radio-5g-prof-wlan-radio-5g] air-scan-profile wlan-air-scan
    [AP-wlan-radio-5g-prof-wlan-radio-5g] quit
    # 配置AP组引用射频模板。
    [AP-wlan-view] ap-group name ap-group1
    [AP-wlan-ap-group-ap-group1] radio-2g-profile wlan-radio-2g radio 0
    [AP-wlan-ap-group-ap-group1] radio-5g-profile wlan-radio-5g radio 1
    [AP-wlan-ap-group-ap-group1] quit

  8. 配置终端定位功能

    # 创建名为“wlan-location”的定位模板,使能终端定位功能,并配置定位信息上报的目的地和端口号。
    [AP-wlan-view] location-profile name wlan-location
    [AP-wlan-location-prof-wlan-location] private mu-enable
    [AP-wlan-location-prof-wlan-location] private server ip-address 10.23.100.2 port 32180
    [AP-wlan-location-prof-wlan-location] quit
    # 配置AP组引用定位模板。
    [AP-wlan-view] ap-group name ap-group1
    [AP-wlan-ap-group-ap-group1] location-profile wlan-location radio all
    [AP-wlan-ap-group-ap-group1] quit

  9. 验证配置结果

    WLAN业务配置会自动下发给RU,配置完成后,通过执行命令display vap ssid wlan-net查看如下信息,当“Status”项显示为“ON”时,表示RU对应的射频上的VAP已创建成功。
    
    [AP-wlan-view] display vap ssid wlan-net
    WID : WLAN ID
    ------------------------------------------------------------------------------------
    AP ID AP name        RfID WID  BSSID          Status  Auth type     STA   SSID     
    ------------------------------------------------------------------------------------
    1     area_1         0    1    FCB6-9897-C520 ON      WPA2-PSK      1     wlan-net
    1     area_1         1    1    FCB6-9897-C530 ON      WPA2-PSK      0     wlan-net
    2     area_2         0    1    FCB6-9897-C9C0 ON      WPA2-PSK      0     wlan-net
    2     area_2         1    1    FCB6-9897-C9D0 ON      WPA2-PSK      0     wlan-net
    3     area_3         0    1    FCB6-9897-CA40 ON      WPA2-PSK      0     wlan-net
    4     area_3         1    1    FCB6-9897-CA50 ON      WPA2-PSK      0     wlan-net
    ------------------------------------------------------------------------------------
    Total: 6

配置文件
中心AP的配置文件

#
 sysname AP
#
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 101
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 101
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 101
#
interface GigabitEthernet0/0/24
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100 101
#
management-vlan 100
#
wlan
 security-profile name wlan-security
  security wpa2 psk pass-phrase %^%#_b"h2cpaO$9bZ-;`-_;CN5)k,_\UP3[!AJE6Vtg3%^%# aes
 ssid-profile name wlan-ssid
  ssid wlan-net
 vap-profile name wlan-vap
  service-vlan vlan-id 101
  ssid-profile wlan-ssid
  security-profile wlan-security
 location-profile name wlan-location
  private mu-enable
  private server ip-address 10.23.100.2 port 32180
 regulatory-domain-profile name domain1
 air-scan-profile name wlan-air-scan
 radio-2g-profile name wlan-radio-2g
  air-scan-profile wlan-air-scan
 radio-5g-profile name wlan-radio-5g
  air-scan-profile wlan-air-scan
 ap-group name ap-group1
  regulatory-domain-profile domain1
  location-profile wlan-location radio all
  radio 0
   radio-2g-profile wlan-radio-2g
   vap-profile wlan-vap wlan 1
  radio 1
   radio-5g-profile wlan-radio-5g
   vap-profile wlan-vap wlan 1
 ap-id 1 type-id 55 ap-mac fcb6-9897-c520 ap-sn 21500826402SF4900166
  ap-name area_1
  ap-group ap-group1
 ap-id 2 type-id 55 ap-mac fcb6-9897-c9c0 ap-sn 21500826402SF4900203
  ap-name area_2
  ap-group ap-group1
 ap-id 3 type-id 55 ap-mac fcb6-9897-ca40 ap-sn 21500826402SF4900207
  ap-name area_3
  ap-group ap-group1
#
return

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1527261.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Python 基于 OpenCV 视觉图像处理实战 之 OpenCV 简单实战案例 之二 素描画风格效果

Python 基于 OpenCV 视觉图像处理实战 之 OpenCV 简单实战案例 之二 素描画风格效果 目录 Python 基于 OpenCV 视觉图像处理实战 之 OpenCV 简单实战案例 之二 素描画风格效果 一、简单介绍 二、素描画风格效果实现原理 三、案例简单实现步骤 一、简单介绍 Python是一种跨…

机器人可反向驱动能力与力控架构

反向驱动性是电机传动系统的机械特性&#xff0c;它描述了运动是否可以轻松反转 。特别是&#xff0c;反向驱动能力取决于两个因素&#xff1a;传动运动效率和整体执行器机械阻抗。反向运动中传动装置的低运动效率意味着所施加的外力的大部分被运动反作用力抵消。然而&#xff…

T100中常用的SQL语句

汇总总结一下在T100中常用的SQL语句。 一、基础资料的查询 这里把aimm200中的所有的需要的数据全部串查到一个结果集中&#xff0c;然后直接Excel汇出即可。 select imafsite 据点,imaf001 料件编号,imaal003 品名,imaal004 规格,--imaf172 交货前置时间,imaf013 补给策略imaa…

windows查看局域网内所有已使用的IP IP扫描工具 扫描网段下所有的IP Windows环境下

推荐使用&#xff1a; Advanced IP Scanner 官网下载&#xff1a; https://www.advanced-ip-scanner.com/

Flutter-自定义表情雨下落动画

简述 今天给大家分享一个Flutter的表情雨的实现&#xff0c;具体的效果见下图&#xff0c;这个效果其实是工作中的一个小小的需求&#xff0c;这里面单独拿出来讲讲下这个效果的实现思路。 在以前特别是新手&#xff0c;遇到一些动画效果都是拿到需求后&#xff0c;在网络上去…

day03vue学习

day03 一、今日目标 1.生命周期 生命周期介绍生命周期的四个阶段生命周期钩子声明周期案例 2.综合案例-小黑记账清单 列表渲染添加/删除饼图渲染 3.工程化开发入门 工程化开发和脚手架项目运行流程组件化组件注册 4.综合案例-小兔仙首页 拆分模块-局部注册结构样式完善…

以太坊开发学习-solidity(一)环境搭建

文章目录 一 前言以太坊/Ethereum是什么?以太坊/Ethereum虚拟机(EVM)什么是智能合约?如何构建智能合约&#xff1f;什么是Solidity&#xff1f; solidity 编译环境在线编译Remix 本地编译一. node安装使用1. 安装 nodejs / npm2. 安装 Solidity 编译器 solc3. 自定义项目4. 使…

DAY 15补 对称二叉树

对称二叉树 给你一个二叉树的根节点 root &#xff0c; 检查它是否轴对称。 输入&#xff1a;root [1,2,2,3,4,4,3] 输出&#xff1a;true输入&#xff1a;root [1,2,2,null,3,null,3] 输出&#xff1a;false思路 首先想清楚&#xff0c;判断对称二叉树要比较的是哪两个节…

Redis各场景应用集合

应用场景 1、缓存&#xff08;Cache&#xff09;,分布式缓存 有一些存储于数据库中的数据会被频繁访问&#xff0c;如果频繁的访问数据库&#xff0c;数据库负载会升高&#xff0c;同时由于数据库IO比较慢&#xff0c;应用程序的响应会比较差。此时&#xff0c;如果引入Redis来…

javaAPI操作Elasticsearch

mapping属性 mapping是对索引库中文档的约束, 常见的mapping属性包括: type: 字段数据类型,常见的简单类型有: 字符串: text(可分词的文本), keyword(精确值, 例如: 品牌,国家)数值: long, integer, short, byte, double, float布尔: boolean日期: date对象: object index: 是否…

EI Scopus检索 | 第二届大数据、物联网与云计算国际会议(ICBICC 2024) |

会议简介 Brief Introduction 2024年第二届大数据、物联网与云计算国际会议(ICBICC 2024) 会议时间&#xff1a;2024年12月29日-2025年1月1日 召开地点&#xff1a;中国西双版纳 大会官网&#xff1a;ICBICC 2024-2024 International Conference on Big data, IoT, and Cloud C…

RediSearch比Es搜索还快的搜索引擎

1、介绍 RediSearch是一个Redis模块&#xff0c;为Redis提供查询、二次索引和全文搜索。要使用RediSearch&#xff0c;首先要在Redis数据上声明索引。然后可以使用重新搜索查询语言来查询该数据。RedSearch使用压缩的反向索引进行快速索引&#xff0c;占用内存少。RedSearch索…

Redis数据结构对象之集合对象和有序集合对象

集合对象 集合对象的编码可以是intset或者hashtable. 概述 intset编码的集合对象使用整数集合作为底层实现&#xff0c;集合对象包含的所有元素都被保存在整数集合里面。 另一方面&#xff0c;hashtable编码的集合对象使用字典作为底层实现&#xff0c;字典的每个键都是一个…

REDHAWK——连接(续)

文章目录 前言一、突发 IO1、数据传输①、输入②、输出 2、突发信号相关信息 (SRI)3、多输出端口4、使用复数数据①、在 C 中转换复数数据 5、时间戳6、端口统计①、C 二、消息传递1、消息生产者①、创建一个消息生产者②、发送消息 2、消息消费者①、创建消息消费者②、注册接…

力扣106---从中序和后序序列构造二叉树

题目描述&#xff1a; 给定两个整数数组 inorder 和 postorder &#xff0c;其中 inorder 是二叉树的中序遍历&#xff0c; postorder 是同一棵树的后序遍历&#xff0c;请你构造并返回这颗 二叉树 。 示例 1: 输入&#xff1a;inorder [9,3,15,20,7], postorder [9,15,7,20…

项目性能优化—使用JMeter压测SpringBoot项目

我们的压力测试架构图如下&#xff1a; 配置JMeter 在JMeter的bin目录&#xff0c;双击jmeter.bat 新建一个测试计划&#xff0c;并右键添加线程组&#xff1a; 进行配置 一共会发生4万次请求。 ctrl s保存&#xff1b; 添加http请求&#xff1a; 配置http请求&#xff1a;…

工控机的无限可能2--智慧城市

一、智能柜 随着网络技术的发展&#xff0c;网购因方便快捷、价格优惠、不受时空限制等优势已成为用户重要的消费方式。快递员因满柜&#xff0c;或柜型单一不能投递&#xff0c;只能将快件堆放在车上或公共过道处苦等&#xff0c;快递、资产管理也随之出现。 如下&#xff0…

使用Windows远程访问Kali Linux桌面

安装xrdp、xfce4 apt-get install -y xrdp xfce4修改 xrdp 配置文件启用 xfce 桌面 vim /etc/xrdp/startwm.sh修改后文件如下&#xff1a; #!/bin/sh # xrdp X session start script (c) 2015, 2017, 2021 mirabilos # published under The MirOS Licence# Rely on /etc/pam…

Unity InputField实现框自适应内容简便方法

要实现InputField框自适应输入内容&#xff0c;除了通过代码进行处理&#xff0c;还可以是使用以下简便的方法。 1、创建InputField组件&#xff1a;右键->UI->Input Field -TextMeshPro。 2、把Input Field Settings中的Line Type设置为Multi Line Newline模式&#x…

第五篇:数字视频广告格式概述 - IAB视频广告标准《数字视频和有线电视广告格式指南》

第五篇&#xff1a;第五篇&#xff1a;数字视频广告格式概述 - IAB视频广告标准《数字视频和有线电视广告格式指南 --- 我为什么要翻译介绍美国人工智能科技公司IAB系列技术标准&#xff08;2&#xff09; ​​​​​​​翻译计划 第一篇序言第二篇简介和目录第三篇概述- IA…