news 2026/5/12 3:58:43

WLAN二层旁挂组网-隧道转发

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
WLAN二层旁挂组网-隧道转发

WLAN二层隧道转发是一种数据转发模式,AP和AC之间通过CAPWAP隧道封装用户数据,所有用户报文都先送到AC集中处理,再由AC转发出去。

核心特点

  • 集中控制‌:所有用户数据都经过AC处理,便于统一管理和安全控制。
  • 配置简单‌:通常只需要在AP和AC直连的接口上配置为Trunk模式,允许业务VLAN通过。
  • 适用场景‌:适合中小规模网络,或者对集中管理和安全要求较高的环境。

​​​​​​​

R1路由配置

[Huawei-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0]ip add 192.168.111.1 24

[Huawei-GigabitEthernet0/0/0]quit

[Huawei]ip route-static 192.168.0.0 16 192.168.111.2

SW1核心交换机配置

<Huawei>system-view

[Huawei]vlan batch 100 111 110

[Huawei]interface vlanif100

[Huawei-Vlanif100]ip add 192.168.100.1 24

[Huawei-Vlanif100]interface vlanif111

[Huawei-Vlanif111]ip add 192.168.111.2 24

[Huawei]interface vlanif110

[Huawei-Vlanif110]ip add 192.168.110.1 24

[Huawei-Vlanif110]quit

[Huawei]interface GigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]port link-type access

[Huawei-GigabitEthernet0/0/1]port default vlan 111

[Huawei-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/2

[Huawei-GigabitEthernet0/0/2]port link-type trunk

[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan 100 110

[Huawei-GigabitEthernet0/0/2]port trunk pvid vlan 100

[Huawei-GigabitEthernet0/0/2]interface GigabitEthernet 0/0/3

[Huawei-GigabitEthernet0/0/3]port link-type access

[Huawei-GigabitEthernet0/0/3]port default vlan 100

[Huawei-GigabitEthernet0/0/3]quit

[Huawei]ip route-static 0.0.0.0 0 192.168.111.1

[Huawei]ip route-static 192.168.0.0 16 192.168.110.2

AC1上面的配置

<AC6605>system-view

[AC6605]vlan batch 100 110

[AC6605]interface vlanif 110

[AC6605-Vlanif110]ip add 192.168.110.2 24

[AC6605-Vlanif110]interface vlanif 100

[AC6605-Vlanif100]ip add 192.168.100.2 24

[AC6605]interface GigabitEthernet 0/0/1

[AC6605-GigabitEthernet0/0/1]port link-type trunk

[AC6605-GigabitEthernet0/0/1]port trunk pvid vlan 100

[AC6605-GigabitEthernet0/0/1]port trunk allow-pass 100 110

[AC6605-GigabitEthernet0/0/1]quit

[AC6605]vlan batch 101 102

[AC6605]interface vlanif 101

[AC6605-Vlanif101]ip add 192.168.101.1 24

[AC6605-Vlanif101]interface vlanif 102

[AC6605-Vlanif102]ip add 192.168.102.1 24

[AC6605-Vlanif102]quit

[AC6605]ip route-static 0.0.0.0 0 192.168.110.1

AC1上配置DHCP

[AC6605]dhcp enable

[AC6605]ip pool vlan100

[AC6605-ip-pool-vlan100]network 192.168.100.0 mask 24

[AC6605-ip-pool-vlan100]gateway-list 192.168.100.1

[AC6605-ip-pool-vlan100]dns-list 8.8.8.8

[AC6605-ip-pool-vlan100]quit

[AC6605]ip pool vlan101

[AC6605-ip-pool-vlan101]network 192.168.101.0 mask 24

[AC6605-ip-pool-vlan101]gateway-list 192.168.101.1

[AC6605-ip-pool-vlan101]dns-list 8.8.8.8

[AC6605-ip-pool-vlan101]quit

[AC6605]ip pool vlan102

[AC6605-ip-pool-vlan102]network 192.168.102.0 mask 24

[AC6605-ip-pool-vlan102]gateway-list 192.168.102.1

[AC6605-ip-pool-vlan102]dns-list 8.8.8.8

[AC6605-ip-pool-vlan102]quit

[AC6605]interface vlanif 100

[AC6605-Vlanif100]dhcp select global

[AC6605-Vlanif100]quit

[AC6605]interface vlanif101

[AC6605-Vlanif101]dhcp select global

[AC6605-Vlanif101]quit

[AC6605]interface vlanif102

[AC6605-Vlanif102]dhcp select global

[AC6605-Vlanif102]quit

在AC1上配置AP上线

指定和AP建立capwap的地址或接口

[AC6605]capwap source interface vlanif 100

配置域管理模版

[AC6605]wlan

[AC6605-wlan-view]regulatory-domain-profile name default

[AC6605-wlan-regulate-domain-default]country-code cn

[AC6605-wlan-regulate-domain-default]quit

创建AP组(因为有多个AP所以创建组来进行区分)

[AC6605]wlan

[AC6605-wlan-view]ap-group name ap-office1

[AC6605-wlan-ap-group-ap-office1]regulatory-domain-profile default

onfigurations of the radio and reset the AP. Continue?[Y/N]:y

[AC6605-wlan-ap-group-ap-office1]quit

[AC6605-wlan-view]ap-group name ap-office2

[AC6605-wlan-ap-group-ap-office2]regulatory-domain-profile default

onfigurations of the radio and reset the AP. Continue?[Y/N]:y

[AC6605-wlan-ap-group-ap-office2]quit

[AC6605-wlan-view]

将AP添加到AP组中

[AC6605-wlan-view]ap-id 1 ap-mac 00e0-fc6e-26b0

[AC6605-wlan-ap-1]ap-name ap1

[AC6605-wlan-ap-1]ap-group ap-office1

Warning: This operation may cause AP reset. If the country code changes, it willclear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.. done.

[AC6605-wlan-ap-1]quit

[AC6605-wlan-view]ap-id 2 ap-mac 00e0-fcc0-34c0

[AC6605-wlan-ap-2]ap-name ap2

[AC6605-wlan-ap-2]ap-group ap-office1

Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.. done.

[AC6605-wlan-ap-2]quit

[AC6605-wlan-view]ap-id3ap-mac00e0-fca7-18d0

[AC6605-wlan-ap-3]ap-name ap3

[AC6605-wlan-ap-3]ap-group ap-office2

Warning: This operation may cause AP reset. If the country code changes, it willclear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.. done.

[AC6605-wlan-ap-3]quit

[AC6605-wlan-view]ap-id4ap-mac00e0-fc8f-3db0

[AC6605-wlan-ap-4]ap-name ap4

[AC6605-wlan-ap-4]ap-group ap-office2

Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.. done.

[AC6605-wlan-ap-4]quit

配置AP上线

  1. 配置SSID模版
  2. 配置安全模版
  3. 配置vap模版
  4. 在ap组中应用vap模版、

配置SSID模版

[AC6605]wlan

[AC6605-wlan-view]ssid-profile name ssid-office1

[AC6605-wlan-ssid-prof-ssid-office1]quit

[AC6605-wlan-view]ssid

[AC6605-wlan-view]ssid-profile name ssid-office2

[AC6605-wlan-ssid-prof-ssid-office2]

[AC6605-wlan-ssid-prof-ssid-office2]quit

配置安全模版

[AC6605-wlan-view]security-profile name sec-office1

[AC6605-wlan-sec-prof-sec-office1]security wpa-wpa2 psk pass-phrase a1234567 aes

[AC6605-wlan-sec-prof-sec-office1]security-profile name sec-office2

[AC6605-wlan-sec-prof-sec-office2]security wpa-wpa2 psk pass-phraseb1234567 aes

配置vap模版

[AC6605-wlan-view]vap-profile name vap-office1

[AC6605-wlan-vap-prof-vap-office1]forward-mode tunnel

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office1]service-vlan vlan-id 101

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office1]ssid-profile ssid-office1

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office1]security-profile sec-office1

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office1]quit

[AC6605-wlan-view]

[AC6605-wlan-view]vap-profile name vap-office2

[AC6605-wlan-vap-prof-vap-office2]forward-mode tunnel

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office2]service-vlan vlan-id 102

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office2]ssid-profile ssid-office2

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office2]security-profile sec-office2

Info: This operation may take a few seconds, please wait.done.

[AC6605-wlan-vap-prof-vap-office2]quit

在ap组中应用vap模版

[AC6605-wlan-view]ap-group name ap-office1

[AC6605-wlan-ap-group-ap-office1]vap-profile vap-office1 wlan 1 radio 0

Info: This operation may take a few seconds, please wait...done.

[AC6605-wlan-ap-group-ap-office1]vap-profile vap-office1 wlan 1 radio 1

Info: This operation may take a few seconds, please wait...done.

[AC6605-wlan-ap-group-ap-office1]quit

[AC6605-wlan-view]ap-group name ap-office2

[AC6605-wlan-ap-group-ap-office2]vap-profile vap-office2wlan2radio 0

Info: This operation may take a few seconds, please wait...done.

[AC6605-wlan-ap-group-ap-office2]vap-profile vap-office2wlan2radio 1

Info: This operation may take a few seconds, please wait...done.

[AC6605-wlan-ap-group-ap-office2]quit

测试结果

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/4 13:56:26

YOLOE视觉提示功能全测评,分割精度让人眼前一亮

YOLOE视觉提示功能全测评&#xff0c;分割精度让人眼前一亮 在工业质检产线上&#xff0c;一台高速运转的贴片机每分钟要完成2.4万次元件拾取与放置。当某批次0201封装电阻出现微米级偏移时&#xff0c;传统基于固定类别的YOLOv8模型会直接“视而不见”——它从未见过这个型号…

作者头像 李华
网站建设 2026/5/10 14:24:09

GLM-4V-9B多场景应用合集:教育答题辅助、工业缺陷图分析、社交内容审核

GLM-4V-9B多场景应用合集&#xff1a;教育答题辅助、工业缺陷图分析、社交内容审核 1. 这不是“又一个”多模态模型&#xff0c;而是能真正跑在你电脑上的视觉理解助手 你可能已经见过不少标榜“本地运行”的多模态模型项目——点开 README&#xff0c;第一步就是“请确保你有…

作者头像 李华
网站建设 2026/5/11 9:09:10

SiameseUIE中文-base效果对比:StructBERT孪生架构 vs BERT-CRF抽取精度分析

SiameseUIE中文-base效果对比&#xff1a;StructBERT孪生架构 vs BERT-CRF抽取精度分析 1. 为什么中文信息抽取需要新思路&#xff1f; 你有没有遇到过这样的问题&#xff1a;手头有一堆新闻稿、客服对话或电商评论&#xff0c;想快速把里面的人名、公司、时间、产品属性和情…

作者头像 李华
网站建设 2026/5/5 23:22:51

一键部署HY-Motion 1.0:Gradio可视化界面快速体验指南

一键部署HY-Motion 1.0&#xff1a;Gradio可视化界面快速体验指南 1. 为什么你需要HY-Motion 1.0 你是否遇到过这样的问题&#xff1a;想为3D角色制作一段自然流畅的动作&#xff0c;却要花数小时在动画软件里逐帧调整骨骼&#xff1f;或者需要快速生成多个动作变体用于测试&…

作者头像 李华
网站建设 2026/5/11 23:46:03

通义千问2.5-7B-Instruct企业级部署:负载均衡架构设计案例

通义千问2.5-7B-Instruct企业级部署&#xff1a;负载均衡架构设计案例 1. 为什么选Qwen2.5-7B-Instruct做企业服务&#xff1f; 很多团队在选型时会纠结&#xff1a;7B模型够不够用&#xff1f;要不要直接上14B或32B&#xff1f;其实关键不在参数大小&#xff0c;而在“能不能…

作者头像 李华
网站建设 2026/5/5 22:18:39

Qwen3-Embedding-4B保姆级教程:知识库文本自动清洗与停用词规避

Qwen3-Embedding-4B保姆级教程&#xff1a;知识库文本自动清洗与停用词规避 1. 为什么需要“清洗”知识库&#xff1f;——从语义失真说起 你有没有试过这样搜索&#xff1a;“苹果手机怎么重启”&#xff0c;结果却匹配出“红富士苹果富含维生素C”&#xff1f; 这不是模型笨…

作者头像 李华