现在越来越多的企业都有自己的无线网络,而无线网络的组网方式一般都是使用AC+AP模式进行组网,使用无线网络能够提供经济、高效的网络接入方式。相比有线网络,无线网络下只要能接入无线网的地方都可以使用网络,用户可以自由移动。而对于AC+AP组网方式来说,转发模式分为本地转发(流量到达AP后直接转发)和集中转发(流量通过隧道到达AC,由AC集中转发)。

实验拓扑及说明

说明:1、SW1和SW2作为AP的DHCP服务器为AP分配IP地址(AP),AC作为STA的DHCP服务器为STA分配IP地址。

2、STA1采用集中转发模式,STA2采用本地转发模式

3、远程网络3.3.3.3位于IP NETWORK路由器上,用于测试数据流向

配置过程略:(文章末尾会附配置文件)

实验现象:1、AP通过交换机SW拿到地址,用于与AC等的通信

2、AP发出两个wlan信号,一个local-forward,一个center-forward

3、STA1连接local-forward信号,这个wlan使用的是本地转发模式工作,业务地址是192.168.1.0/24段。

4、STA2连接center-forward信号,这个wlan使用的是集中转发模式工作,业务地址是192.168.2.0/24段。

5、在远端路由器上开debug,然后在SW与AC之间使用抓包工具抓包,使用集中转发的wlan信号时,流量会经过AC转发,流量到达AP之后通过隧道传给AC,由AC转发。

6、使用本地转发的wlan信号时,流量不会经过AC转发,流量到达AP之后不会封装进隧道发送给AC,而是直接由AP转发。

7、配置文件:

IPNET:

sysname IPNET

interface GigabitEthernet0/0/0

ip address 10.0.12.2 255.255.255.0

#

interface GigabitEthernet0/0/1

ip address 10.0.22.2 255.255.255.0

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255

#

rip 1

undo summary

version 2

network 10.0.0.0

import-route direct

SW1:

sysname SW1

#

vlan batch 10 100 to 102 1000

#

stp instance 0 root primary

stp instance 1 root secondary

#

dhcp enable

#

stp region-configuration

region-name abc

instance 1 vlan 101

active region-configuration

#

ip pool vlan10

gateway-list 10.0.1.254

network 10.0.1.0 mask 255.255.255.0

option 43 sub-option 2 ip-address 10.0.1.3 10.0.1.4

#

interface Vlanif10

ip address 10.0.1.1 255.255.255.0

vrrp vrid 10 virtual-ip 10.0.1.254

vrrp vrid 10 priority 120

dhcp select global

#

interface Vlanif100

ip address 192.168.1.252 255.255.255.0

vrrp vrid 100 virtual-ip 192.168.1.254

vrrp vrid 100 priority 120

#

interface Vlanif101

ip address 192.168.2.252 255.255.255.0

vrrp vrid 101 virtual-ip 192.168.2.254

#

interface Vlanif1000

ip address 10.0.12.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 1000

stp disable

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 4094

stp disable

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface NULL0

#

rip 1

undo summary

version 2

network 10.0.0.0

network 192.168.1.0

network 192.168.2.0

silent-interface GigabitEthernet0/0/2

silent-interface GigabitEthernet0/0/3

SW2:

sysname SW2

#

vlan batch 10 100 to 101 1001

#

stp instance 0 root secondary

stp instance 1 root primary

#

dhcp enable

#

stp region-configuration

region-name abc

instance 1 vlan 101

active region-configuration

#

ip pool vlan10

gateway-list 10.0.1.254

network 10.0.1.0 mask 255.255.255.0

option 43 sub-option 2 ip-address 10.0.1.3 10.0.1.4

#

interface Vlanif10

ip address 10.0.1.2 255.255.255.0

vrrp vrid 10 virtual-ip 10.0.1.254

dhcp select global

#

interface Vlanif100

ip address 192.168.1.253 255.255.255.0

vrrp vrid 100 virtual-ip 192.168.1.254

#

interface Vlanif101

ip address 192.168.2.253 255.255.255.0

vrrp vrid 101 virtual-ip 192.168.2.254

vrrp vrid 101 priority 120

#

interface Vlanif1001

ip address 10.0.22.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 1001

stp disable

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 4094

stp disable

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/24

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface NULL0

#

rip 1

undo summary

version 2

network 10.0.0.0

network 192.168.1.0

network 192.168.2.0

silent-interface GigabitEthernet0/0/2

silent-interface GigabitEthernet0/0/3

AC1:

sysname AC1

#

vlan batch 10 100 to 101

#

dhcp enable

#

ip pool vlan100

gateway-list 192.168.1.254

network 192.168.1.0 mask 255.255.255.0

#

ip pool vlan101

gateway-list 192.168.2.254

network 192.168.2.0 mask 255.255.255.0

#

interface Vlanif10

ip address 10.0.1.3 255.255.255.0

#

interface Vlanif100

ip address 192.168.1.250 255.255.255.0

dhcp select global

#

interface Vlanif101

ip address 192.168.2.250 255.255.255.0

dhcp select global

#

interface MEth0/0/1

undo negotiation auto

duplex half

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

ip route-static 0.0.0.0 0.0.0.0 10.0.1.254

#

capwap source interface vlanif10

#

wlan

security-profile name wlan-net

ssid-profile name local

ssid local-forward

ssid-profile name center

ssid center-forward

vap-profile name local

service-vlan vlan-id 100

ssid-profile local

security-profile wlan-net

vap-profile name center

forward-mode tunnel

service-vlan vlan-id 101

ssid-profile center

security-profile wlan-net

ap-group name local

radio 0

vap-profile local wlan 1

radio 1

vap-profile center wlan 2

ap-id 0 type-id 56 ap-mac 00e0-fc3e-6f60

ap-name area_1

ap-group local

radio 0

channel 20mhz 6

eirp 127

radio 1

channel 20mhz 149

eirp 127

AC2:

sysname AC2

#

vlan batch 10 100 to 101

#

dhcp enable

#

ip pool vlan100

gateway-list 192.168.1.254

network 192.168.1.0 mask 255.255.255.0

#

ip pool vlan101

gateway-list 192.168.2.254

network 192.168.2.0 mask 255.255.255.0

#

interface Vlanif10

ip address 10.0.1.4 255.255.255.0

#

interface Vlanif100

ip address 192.168.1.251 255.255.255.0

dhcp select global

#

interface Vlanif101

ip address 192.168.2.251 255.255.255.0

dhcp select global

#

interface MEth0/0/1

undo negotiation auto

duplex half

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

ip route-static 0.0.0.0 0.0.0.0 10.0.1.254

#

capwap source interface vlanif10

#

wlan

security-profile name wlan-net

ssid-profile name local

ssid local-forward

ssid-profile name center

ssid center-forward

vap-profile name local

service-vlan vlan-id 100

ssid-profile local

security-profile wlan-net

vap-profile name center

forward-mode tunnel

service-vlan vlan-id 101

ssid-profile center

security-profile wlan-net

ap-group name local

radio 0

vap-profile local wlan 1

radio 1

vap-profile center wlan 2

ap-id 0 type-id 56 ap-mac 00e0-fc3e-6f60

ap-name area_1

ap-group local

radio 0

channel 20mhz 6

eirp 127

radio 1

channel 20mhz 149

eirp 127

ap模式和sta模式共存_AP+AC组网下的本地转发及集中转发相关推荐

  1. ap模式和sta模式共存_【经验】解密Wi-Fi模块如何实现AP模式和STA模式的切换

    Wizard Gecko WGM110 Wi-Fi模块支持 AP (Access Point) 和station mode,并且在运行过程中可以实现角色的互换,同时不需要复位模块. Command/E ...

  2. ESP8266的AP模式与STA模式简单测试

    系列文章: ESP8266的AP模式与STA模式简单测试 简单的Java服务器和客户端的通信 STM32 ESP8266和Java服务器透传模式下的双向通信 jsp向servlet传输数据 Servl ...

  3. ap模式和sta模式共存_wifi芯片及在STA和AP模式共存时的控制方法

    wifi芯片及在STA和AP模式共存时的控制方法 [专利摘要]本发明公开了一种支持STA模式和AP模式共存的wifi芯片以及其在STA模式和AP模式共存时的控制方法.该方法包括:接收同时开启STA模式 ...

  4. ap模式和sta模式共存_锐捷AP缺省VLAN和用户VLAN那些事儿 | 运维实战家

    "运维实战家"专栏,从技术到实践,和您聊聊运维的那些事儿,讲述运维人的"昨天.今天和明天" 作者: 过嗨涛 田小杨 前言 在进行无线网络部署时,如果AP VLA ...

  5. ap模式和sta模式共存_让无线网卡同时工作在 AP 和 STA 模式

    这个帖子里的方法有点过时了,不推荐继续使用. 有的时候会碰到这么一种情况,带着电脑和手机出去蹭网,无奈只有一个账号,手机上了电脑就没得用了,电脑用了手机就上不了网.如果能用电脑连接 Wifi 然后再开 ...

  6. ap模式和sta模式共存_无线Wifi图传模块AP和STA工作模式详解

    无线Wifi图传模块包括两种工作模式AP和STA,在这两模式的支持下,无线Wifi图传模块产品可以实现一发多收的功能.下面我们就从AP和STA的基本概念开始了解它们. 一.AP和STA的基本概念 AP ...

  7. ap模式和sta模式共存_WIFI模块的STA模式和AP模式有什么区别

    展开全部 WIFI模块中,AP和STA模式中分别意思是: 1.AP:也就是无线62616964757a686964616fe4b893e5b19e31333431366239接入点,是一个无线网络的创 ...

  8. esp8266设置sta失败_ESP8266的AP模式与STA模式简单测试

    一.三种工作模式STA模式(Station):工作在STA模式下的8266就像是一个接收机一样,它可以接收来自无线路由器发出的信号,实现了8266通过接收路由器的信号而能够连接互联网,如果把8266安 ...

  9. WiFi模块的AP模式和STA模式

    WiFi模块内置无线网络协议IEEE802.11协议栈以及TCP/IP协议栈,实现用户串口或TTL电平信息与无线网络之间的转换. WiFi模块两种拓扑类型:基础网(Infra)和自组网(Adhoc): ...

最新文章

  1. 分析部署无线局域网的关键要素
  2. 移动平台的meta标签-----神奇的功效
  3. 网站建设套用模板后该如何做到出类拔萃?
  4. jquery源码 DOM加载
  5. 分享45套2011年和2012年的高质量免费网站模板
  6. 设计师们知道几个网站?属于设计师的网址导航!
  7. 游侠原创:手机电子商务与社交隐私--网络安全的下一个关注点
  8. Webappbuilder开发快速预览
  9. python自学视频教程 38-python编程开发入门中文视频培训教程38讲
  10. 复习宝典之Spring
  11. NLP ---文本情感分析
  12. access mysql连接字符串_access 数据库连接字符串
  13. Windows phone 7中关于Zune软件使用几个问题
  14. ppt中插入html格式图表
  15. None of the following candidates is applicable because of a receiver type mismatch
  16. 前端更新需要清空浏览器缓存_浏览器缓存机制分析及前端缓存清理
  17. 计算机关闭自带杀毒,Win10专业版系统中关闭自带杀毒软件操作方法
  18. 高级面试题--SpringBoot启动流程解析
  19. 理论力学类毕业论文文献包含哪些?
  20. 60.ElasticSearch

热门文章

  1. vue 实现瀑布流布局的 组件/插件总汇:vue-waterfall、vue-waterfall-easy、vue-virtual-collection、vue-grid-layout
  2. java 星期几、得周一、得周日、上周、下周、相差、日期工具类
  3. AutoHotkey调用VBA实现批量精确筛选数据透视表某字段内容。
  4. 120分钟React快速扫盲教程
  5. docker安装nginx容器小记
  6. linux下各权限的细分
  7. WPF RichTextBox相关总结
  8. How to: Build a Client Application
  9. 关于更改当前公司(一)--ChangeCompany
  10. 递归实现进制转换(C++版)