当前位置: 首页 > news >正文

基础的无线实验

一、实验概述

本文基于华为eNSP模拟器,完整演示一套企业级无线网络的配置流程。网络采用核心交换机LSW1 + 无线控制器AC6605 + 路由器R1的经典三层架构,实现以下目标:

  • AP通过VLAN 100与AC建立CAPWAP管理隧道

  • 两个SSID分别映射到不同的业务VLAN(VLAN 10 / VLAN 20)

  • LSW1作为DHCP服务器为AP和终端统一分配IP地址

  • 终端可通过AC访问上层网络(1.1.1.0/24)

二、LSW1(核心交换机)配置

system-view sysname LSW1 vlan batch 10 20 100 interface GigabitEthernet 0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 100 quit port-group group-member GigabitEthernet 0/0/2 to GigabitEthernet 0/0/4 port link-type trunk quit port-group group-member GigabitEthernet 0/0/2 to GigabitEthernet 0/0/3 port trunk allow-pass vlan 10 100 port trunk pvid vlan 100 quit interface GigabitEthernet 0/0/4 port trunk allow-pass vlan 20 100 port trunk pvid vlan 100 quit dhcp enable ip pool wifi gateway-list 192.168.1.1 network 192.168.1.0 mask 24 quit ip pool vlan10 gateway-list 192.168.10.254 network 192.168.10.0 mask 24 quit ip pool vlan20 gateway-list 192.168.20.254 network 192.168.20.0 mask 24 quit interface Vlanif 100 ip address 192.168.1.1 24 dhcp select global quit interface Vlanif 10 ip address 192.168.10.254 24 dhcp select global quit interface Vlanif 20 ip address 192.168.20.254 24 dhcp select global quit ip route-static 192.168.200.0 24 192.168.1.2 ip route-static 1.1.1.0 24 192.168.1.2

三、AC6605(无线控制器)配置

system-view sysname AC6605 vlan batch 100 200 interface Vlanif 100 ip address 192.168.1.2 24 quit interface GigabitEthernet 0/0/1 port link-type access port default vlan 200 quit interface Vlanif 200 ip address 192.168.200.1 24 quit capwap source interface Vlanif 100 wlan regulatory-domain-profile name aa country-code CN quit security-profile name openlab-1 security wpa2 psk pass-phrase openlab-2 aes quit ssid-profile name openlab-1 ssid openlab-1 quit vap-profile name openlab-1 wlan 1 forward-mode tunnel service-vlan vlan-id 10 security-profile openlab-1 ssid-profile openlab-1 quit security-profile name openlab-2 security wpa2 psk pass-phrase openlab-1 aes quit ssid-profile name openlab-2 ssid openlab-2 quit vap-profile name openlab-2 wlan 2 forward-mode tunnel service-vlan vlan-id 20 security-profile openlab-2 ssid-profile openlab-2 quit ap-group name gourp-1 regulatory-domain-profile aa vap-profile openlab-1 wlan 1 radio all quit ap-group name gourp-2 regulatory-domain-profile aa vap-profile openlab-2 wlan 2 radio all quit ap auth-mode mac-auth ap-id 0 ap-mac 00e0-fcea-2130 ap-name ap-0 ap-group gourp-1 quit ap-id 1 ap-mac 00e0-fc45-1cd0 ap-name ap-1 ap-group gourp-1 quit ap-id 2 ap-mac 00e0-fcc6-35a0 ap-name ap-2 ap-group gourp-2 quit quit ip route-static 1.1.1.0 24 192.168.200.2 ip route-static 192.168.10.0 24 192.168.1.1 ip route-static 192.168.20.0 24 192.168.1.1

四、R1(路由器)配置

system-view sysname R1 interface GigabitEthernet 0/0/0 ip address 192.168.200.2 24 quit interface LoopBack0 ip address 1.1.1.1 24 quit ip route-static 192.168.1.0 24 192.168.200.1 ip route-static 192.168.10.0 24 192.168.200.1 ip route-static 192.168.20.0 24 192.168.200.1

五、验证方法

配置完成后,可通过以下方式确认网络状态:

  1. AP上线检查:在AC上执行display ap all,确认所有AP状态为normal

  2. 终端获取IP:STA连接对应SSID后,执行ipconfig(Windows)或ifconfig(Linux),确认获取到正确网段的IP。

  3. 连通性测试:从STA ping 1.1.1.1,验证跨网段路由可达。

  4. DHCP租约查看:在LSW1上执行display ip pool,确认地址池正常分配。

六、注意事项

  • 原配置中AP组名称拼写为gourp-1/gourp-2,实际部署时建议统一修正为group-1/group-2,避免后期维护混淆。

  • AP的MAC地址必须与真实设备一致,否则无法上线。

  • 若AP无法获取IP,请检查LSW1上G0/0/2~G0/0/4的PVID是否正确设置为100,以及DHCP服务是否已全局开启。

  • 隧道转发模式下,业务数据全部经由CAPWAP封装送达AC,因此AC上必须存在到达业务网段的路由。

http://www.jsqmd.com/news/1119122/

相关文章:

  • HTTP 最最最本质的拆解
  • 包裹计数目标检测数据集(约6000张单类别YOLO标注已划分)| 仓储物流包裹统计专用数据集
  • 加工贸易与保税账册进入大模型时代:料件、单耗、核销与账册风险如何智能管理
  • # 一次 MySQL DELETE 误操作的数据恢复尝试实录
  • MiMo-Code开源16天11K星:小米AI编码Agent的持久记忆和自进化机制
  • 影刀RPA新手教程:跨境电商选品完全指南——AliExpress热卖商品分析与竞品调研自动化
  • 重光研究 | 从首例基金实控人连带赔偿看私募基金维权——管理人全流程失职的责任认定4624号民事判决
  • C++ 虚继承对象内存布局
  • 专注核心需求的纯本地音乐播放器
  • Quark-Auto-Save架构设计与自动化转存技术深度解析
  • 4-Hadoop伪分布式搭建基本流程
  • MC0483过园数统计
  • 【干货】基础知识-图像处理
  • 大模型应用中的“中转层”到底解决了什么问题?
  • 西门子S7协议调试工具的技术架构与生产环境下应用
  • 每日文献阅读-复现|2026 npj Computational Materials:130 万候选如何用 AI 与第一性原理筛出 741 种超导体
  • PCB焊盘设计:SMD与NSMD的选择与应用
  • 华为MetaERP Oracle EBS 各模块业务场景与会计分录对照表。由于无法直接生成 Excel 文件,我将以清晰的表格格式呈现,你可以直接复制到 Excel 中使用。Oracle EBS 各
  • 助睿实验指导7:自媒体运营分析三次过程合并-CSDN博客
  • 亲测速度几十MB/s!2026百度网盘不限速下载黑科技,原来大家都偷偷在用
  • 影刀RPA新手教程:邮件自动发送完全指南——从SMTP配置到批量个性化发送
  • (六)海康工业相机与halcon+C#联合编程
  • Claude Code安全审查实战:从SQL注入检测到CI/CD集成指南
  • 92.从底层原理、编程规范、模块化设计到调试避坑!PLC ST 语言工控项目全流程实战
  • 120 万奖金池里,有一块没人抢的肥肉:RWKV-7 × transformers 训练适配
  • RAG落地踩坑实录:从Demo到生产的差距有多大?
  • S1.1 独立产品的变现模式地图:哪种模式最适合你
  • 通过结构化步骤化解社恐压力
  • Dify 实战指南:从零构建企业级 AI 应用与工作流
  • 华为MetaERP Oracle EBS 各模块业务场景及会计分录汇总表文件信息: 共 11个模块 | 300条业务场景 | 编制日期:2026年7月模块目录表格序号 模块名称 业务场景数 主