AP+AC组网下的本地转发及集中转发
思韵闪耀
2021-03-05
0

AP+AC组网下的本地转发及集中转发

现在越来越多的企业都有自己的无线网络,而无线网络的组网方式一般都是使用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

 


【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

将IIS设置克隆到新服务器...
将IIS设置克隆到新服务器的最佳方法是使用IIS配置文件。以下是详...
2025-06-06
网页保护、网页图片保护
1、禁止另存网页,把如下代码加入到网页body/body中 程序代...
2025-05-30
搭建Git服务器及本机克隆...
Git是什么?Git是目前世界上最先进的分布式版本控制系统。SVN...
2025-03-17
ubuntu环境下搭建gi...
操作环境:服务器:Ubuntu 24.04.2 LTS+git 2...
2025-03-17
docker-compos...
1.Compose介绍 DockerCompose是一个用来定义和...
2024-04-26
firewall-cmd ...
firewalld的简要说明:firewalld 、firewal...
2024-03-15

热门资讯

一颗AP到底能覆盖多大的范围? 经常有同学问,一颗AP能够覆盖多远的距离。 这个问题先分解下,如果是用于AP桥接,这个范围最大据说有...
锐捷如何配置DHCP服务器? 1、如何配置DHCP服务器? 高级选项-》DHCP配置-》服务端 (1)开启DHCP服务 (2)客户...
CMDB、bk-cmdb、Ad... CMDB 项目地址: https://zhuanlan.zhihu.com/p/34191320 自...
12v监控电源可以带几个监控头... 12v监控电源可以带几个监控头?这监控电源的正负极怎么区分?监控头的电源线2根线哪根接正极呢? 监控...
华为NE系列路由多运营商选路(... 场景:比如电信作为默认出口的情况下,内部服务器却使用移动网络做为DNAT为外部提供服务。如果此时不做...
华为策略路由,实现双线选路上网 策略路由PBR(Policy-Based Routing)是一种依据用户制定的策略进行路由选择的机制...
广州地区常用的DNS解析服务器 广州电信DNS 首选:202.96.128.143 备用:202.96.128.68 首选:202....
华为AR路由器IPsec 配置 配置思路: 采用如下思路配置采用IKE协商方式建立IPSec隧道: 1.配置接口的IP地址和到对端的...
锐捷交换机配置DHCP SER... 今天突发奇想,想给自己的手机分配固定地址,使得接入公司无线网络时每次都取到同一ip地址,这样可以排除...
合理设置无线AP的信道 无线网络信号在空气中以电磁波传播,他的频率是2.4~2.4835GHz,而这些频段又被化分为11或1...