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

华为无线AC内三层漫游配置详解

在这里插入图片描述

重要说明

1、在一台ac中实现三层漫游
2、ac和核心的互联vlan和ap的管理vlan是同一个广播域,可以不用配option 43
3、直接转发模式,ac上可以不起业务vlan,ac和核心交换机上可以只放行一个互联vlan 10
4、ac上要启两个vap魔板,两个ap-group,每个ap-group对应一个vap魔板
5、2个vap和ap-group魔板可以调用 相同的一个ssid和security魔板
6、漫游注意ssid和密码都得一样

直接转发模式配置:

SW1

vlan batch 10 20 100 to 101 200

dhcp enable

interface Vlanif10
ip address 10.0.10.1 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 10.0.10.10
dhcp server option 43 sub-option 3 ascii 10.0.10.10

interface Vlanif20
ip address 10.0.20.1 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 10.0.20.10
dhcp server option 43 sub-option 3 ascii 10.0.20.10

interface Vlanif100
ip address 192.168.100.1 255.255.255.0
dhcp select interface

interface Vlanif101
ip address 192.168.101.1 255.255.255.0
dhcp select interface

interface Vlanif200
ip address 192.168.200.1 255.255.255.0
dhcp select interface

interface MEth0/0/1

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 100 to 101

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 20 200

interface GigabitEthernet0/0/3
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 100

interface GigabitEthernet0/0/4
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 101

interface GigabitEthernet0/0/5
port link-type trunk
port trunk pvid vlan 20
port trunk allow-pass vlan 20 200

AC1

vlan batch 10 100 to 101

interface Vlanif10
ip address 10.0.10.10 255.255.255.0

interface MEth0/0/1
undo negotiation auto
duplex half

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 100 to 101

ip route-static 0.0.0.0 0.0.0.0 10.0.10.1

capwap source ip-address 10.0.10.10

user-interface con 0
authentication-mode password
user-interface vty 0 4
protocol inbound all
user-interface vty 16 20
protocol inbound all

wlan
security-profile name test //安全魔板
security wpa-wpa2 psk pass-phrase adminadmin aes

ssid-profile name test //SSID魔板
ssid admin

vap-profile name test100 //第一个ap的vap魔板
service-vlan vlan-id 100
ssid-profile test
security-profile test

vap-profile name test101 //第2个ap的vap魔板
service-vlan vlan-id 101
ssid-profile test
security-profile test

ap-group name test100 //第一个vap魔板关联进这个组
vap-profile test100 wlan 1 radio all

ap-group name test101 //第2个vap魔板关联进这个组
vap-profile test100 wlan 1 radio all

ap-id 0 type-id 69 ap-mac 00e0-fce1-0250 //第一个ap
ap-name 1-lay-01
ap-group test100

ap-id 1 type-id 69 ap-mac 00e0-fc0a-43b0 //第2个ap
ap-name 2-lay-01
ap-group test101

现在漫游后的数据转发流程是:

sta->漫游后的ap->sw->Hac->家乡Hap->sw->外网

在这里插入图片描述

如果是隧道转发数据流程是:

sta->漫游后的ap->sw->Hac->sw->外网

没有次优路径绕行

如果非要用直接转发模式,为了解决hap家乡代理,数据有次优路径绕行,可以配置ac做为家乡代理,不用再把数据回到家乡hap上面再出去,而是到ac后直接发给核心交换机出去上网

vap-profile name test100 //第一个ap的vap魔板
home-agent ac

vap-profile name test101 //第2个ap的vap魔板
home-agent ac

只要AP获取到地址就能查看到mac

在这里插入图片描述

查看ap是不是上线了

在这里插入图片描述

查看vap配置

在这里插入图片描述

http://www.lryc.cn/news/271859.html

相关文章:

  • GPT-5、开源、更强的ChatGPT!OpenAI公布2024年计划
  • java idea中做一个简易的图书管理系统(控制台输入输出,无数据库)
  • C# PrinterSettings修改打印机纸张类型,paperType
  • TV端Web页面性能优化实践
  • 2023年终总结
  • 深入探索MongoDB集群模式:从高可用复制集
  • gem5学习(8):创建一个简单的缓存对象--Creating a simple cache object
  • 【PTA-C语言】实验七-函数与指针I
  • C# 让数据保留小数后两位,不足的补充0
  • RK3568驱动指南|第九篇 设备模型-第92章 引用计数器实验
  • 苹果电脑Dock栏优化软件 mac功能亮点
  • 【UE5蓝图】读取本地json文件修改窗口大小
  • ACM32F403/F433 12 位多通道国产芯片,支持 MPU 存储保护功能,应用于工业控制,智能家居等产品中
  • 2024最新前端React面试题:JSX是什么,它和JS有什么区别
  • 3d导入模型怎样显示原本材质---模大狮模型网
  • web前端开发网页制作html/css结课作业
  • 工业相机如何实现实时和本地Raw格式图像和Bitmap格式图像的保存和相互转换(C#代码,UI界面版)
  • C++初阶------------------入门C++
  • 深度学习核心技术与实践之自然语言处理篇
  • AI-ChatGPTCopilot
  • 网络安全-真实ip获取伪造与隐藏挖掘
  • CMake入门教程【核心篇】添加子目录(add_subdirectory)
  • Prototype原型模式(对象创建)
  • [Redis实战]分布式锁
  • SpingBoot的项目实战--模拟电商【2.登录】
  • http——https实现指南
  • ROS仿真R2机器人之安装运行及MoveIt的介绍
  • 【linux 多线程并发】线程属性设置与查看,绑定CPU,线程分离与可连接,避够多线程下的内存泄漏
  • 70.乐理基础-打拍子-三连音
  • 100天精通Python(实用脚本篇)——第111天:批量将PDF转Word文档(附上脚本代码)