ensp 中 wlan 的配置过程和示例

一、拓朴:

要求:vlan20 用于笔记本上网,使用Huawei信号,vlan30 用于手机上网,使用 Huawei-5G 信号

二、配置过程:
1、SW1 基本配置:

起 vlan batch 10 20 30,10 为管理 vlan,20、30分别为办公vlan和guestvlan

到 AC 接口为 trunk,允许vlan 10 通过

到 AP 接口为 trunk,允许vlan 10 20 30 通过,其中vlan10为 pvid(不打标记vlan)

vlan 20、30 分别起网关 10.1.20.1/24 10.1.30.1/24,接口开启 dhcp

2、AC1 基本配置 :

AC 起vlan batch 10,到 SW1 接口配置为 trunk,允许 vlan 10通过

起dhcp服务,应用到vlanif 10上

3、AC 指定 CAPWAP 隧道源地址为 vlanif 10,用于AP、AC的通信地址

capwap source interface vlanif10

dis capwap configuration

4、AC 配置 AP 组:
1)配置AP模板:创建域管理组、AP组、添加AP

wlan

regulatory-domain-profile name A #创建域管理组

country-code CN

dis regulatory-doman-profile name all

ap-group name APs #创建 AP 组,调用域管理组

regulatory-domain-profile A

dis ap-group all

ap-id 0 ap-mac 00e0-fc06-4a00 #添加AP,归入AP组

ap-name AP1

ap-group APs

dis ap all

2)配置VAP模板:创建安全组、SSID组、用VAP模板进行关联(配置业务)

wlan

security-profile name A # 创建安全组

security wpa-wpa2 psk pass-phrase 12345678 aes

ssid-profile name A #创建 SSID 组:

ssid Huawei

vap-profile name A #建 VAP 组,关联安全组--SSID 组

service-vlan vlan-id 20

ssid-profile A

security-profile A

3) AP-group 调用 VAP 组:

wlan

ap-group name APs #为指定的VAP组指定射频

radio 0 #取值范围0~2,radio0 = 2.4G

vap-profile A wlan 1 #wlan取值范围1~16,1-12、15为离线管理;13、14为WDS业务;16为mesh

dis vap-profile all | name x

5、为手机上网增加5G射频:
1)增加vap模板B:

vap-profile name B

service-vlan vlan-id 30

ssid-profile B

security-profile A

2)在AP组APs中,引入vap模板B,并为它引入到射频组:

ap-group name APs

radio 1

vap-profile B wlan 4

三、验证:双击其中一个频,输入密码,看到连接状态
四、所有配置:
复制代码
[SW1]
vlan batch 10 20 30
#
vlan 10
 description management
vlan 20
 description office
vlan 30
 description mobile
#
dhcp enable
#
interface Vlanif20
 ip address 10.1.20.254 255.255.255.0
 dhcp select interface
#
interface Vlanif30
 ip address 10.1.30.254 255.255.255.0
 dhcp select interface
#
interface GigabitEthernet0/0/1
 description toAC
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
 description toAP
 port link-type trunk
 port trunk pvid vlan 10
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 10 20 30
#

[AC1]
vlan batch 10
#
dhcp enable
#
interface Vlanif10
 ip address 10.1.10.1 255.255.255.0
 dhcp select interface
#
interface GigabitEthernet0/0/1
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 10
#
capwap source interface vlanif10
#
wlan
 traffic-profile name default
 security-profile name A
  security wpa-wpa2 psk pass-phrase 12345678 aes
 security-profile name default
 security-profile name default-wds
 security-profile name default-mesh
 ssid-profile name A
  ssid Huawei
 ssid-profile name B
  ssid Huawei-5G
 ssid-profile name default
 vap-profile name A
  service-vlan vlan-id 20
  ssid-profile A
  security-profile A
 vap-profile name B
  service-vlan vlan-id 30
  ssid-profile B
  security-profile A
 ap-group name APs
  regulatory-domain-profile A
  radio 0
   vap-profile A wlan 1
  radio 1
   vap-profile B wlan 4
 ap-group name APs2
  regulatory-domain-profile A
  radio 1
   vap-profile B wlan 4
 ap-group name default
 ap-id 0 type-id 45 ap-mac 00e0-fc06-4a00 ap-sn 2102354483101D18984A
  ap-name AP1
  ap-group APs
五、参考:

无线局域网 文档、支持、下载中心 - 华为

相关推荐
碳基沙盒2 天前
OpenClaw 多 Agent 配置实战指南
运维
蝎子莱莱爱打怪5 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
DianSan_ERP6 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅6 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒6 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
zhangfeng11336 天前
趋动云 如何ssh登录 服务区 项目server
运维·人工智能·ssh
ZeroNews内网穿透6 天前
谷歌封杀OpenClaw背后:本地部署或是出路
运维·服务器·数据库·安全
失重外太空啦6 天前
nginx
运维·nginx
2501_946205526 天前
晶圆机器人双臂怎么选型?适配2-12寸晶圆的末端效应器有哪些?
服务器·网络·机器人
Gofarlic_oms16 天前
避免Kisssoft高级分析模块过度采购的科学评估方法
大数据·linux·运维·人工智能·matlab