ap模式和sta模式共存_AP+AC組網下的本地轉發及集中轉發

233af92b870c1653a6fbf2a5cde86ca7.png

現在越來越多的企業都有自己的無線網絡,而無線網絡的組網方式一般都是使用AC+AP模式進行組網,使用無線網絡能夠提供經濟、高效的網絡接入方式。相比有線網絡,無線網絡下只要能接入無線網的地方都可以使用網絡,用戶可以自由移動。而對于AC+AP組網方式來說,轉發模式分為本地轉發(流量到達AP后直接轉發)和集中轉發(流量通過隧道到達AC,由AC集中轉發)。

實驗拓撲及說明

b76b2e756bd79aa77ab6923ff91468ef.png

說明: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等的通信

ee6b1d7fba12822734eb03cbd414f65f.png

2、AP發出兩個wlan信號,一個local-forward,一個center-forward

3fba3a629081d6550d2105537167bcee.png

3、STA1連接local-forward信號,這個wlan使用的是本地轉發模式工作,業務地址是192.168.1.0/24段。

8334ff676ead67612ccb3fbd0e7eef3a.png

f1d0d50056e92231a82c971b72ab3acf.png

4、STA2連接center-forward信號,這個wlan使用的是集中轉發模式工作,業務地址是192.168.2.0/24段。

fd9c2d900a5295b3cbd9a94ee54b3ce7.png

18605cbf74f0d281135a20f488b91e91.png

5、在遠端路由器上開debug,然后在SW與AC之間使用抓包工具抓包,使用集中轉發的wlan信號時,流量會經過AC轉發,流量到達AP之后通過隧道傳給AC,由AC轉發。

3ae4f663daa9edc59921c5b8b8fc9f55.png

4bd9ce26ce17fac383784842a0f91fbe.png

6、使用本地轉發的wlan信號時,流量不會經過AC轉發,流量到達AP之后不會封裝進隧道發送給AC,而是直接由AP轉發。

9529465bf4ce5f11c1b60e6c19514ce7.png

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

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/457374.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/457374.shtml
英文地址,請注明出處:http://en.pswp.cn/news/457374.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

《JS權威指南學習總結--6.7屬性的特性》

內容要點: 一.ES5中查詢和設置屬性的API 1.可以通過這些API給原型對象添加方法,并將它們設置成不可枚舉的,這讓它們看起來更像內置方法。 2.可以通過這些API給對象定義不能修改或刪除的屬性,借此 "鎖定" 這個對象。 3.數…

【干貨分享】流程DEMO-事務呈批表

流程名: 事務呈批表 業務描述: 辦公采購、會議費用等事務的申請。流程發起時,會檢查預算,如果預算不夠,將不允許發起費用申請,如果預算夠用,將發起流程,同時占用相應金額的預算&…

【譯】TcMalloc: Thread-Caching Malloc

TcMalloc 的核心是分層緩存,前端沒有鎖競爭,可以快速分配和釋放較小的內存對象(一般是 256 KB)前端有兩種實現,分別是 pre-CPU 和 pre-Thread 模式,前者申請一塊大的連續內存,每一個邏輯 CPU 將…

kotlin編譯失敗_Kotlin使用GraalVM開發原生命令行應用

背景之前用kotlin開發過一款根據建表DDL語句生成plantuml ER圖的應用。被問如何使用,答曰"給你一個jar包,然后執行java -jar ddl2plantuml.jar ./ddl.sql ./er.puml 就可以了。是不是so easy?"結果被吐槽了一番,為什么不能像命令行…

Swift - 添加純凈的Alamofire

Swift - 添加純凈的Alamofire 如果你有代碼潔癖,不能容忍任何多余的東西,請繼續往下看. 1. 下載Alamofire (https://github.com/Alamofire/Alamofire) 2. 解壓縮并打開 Alamofire.xcworkspace 3. 刪除不必要的內容 (根據你的需求自己定) 4. 順便把文件夾里面的無關內容也刪除掉…

jquery 獲取系統默認年份_你沒有看錯,爬網頁數據,C# 也可以像 Jquery 那樣

一:背景1. 講故事前段時間搞了一個地方性民生資訊號,資訊嘛,都是我抄你的,你抄官媒的,小市民都喜歡奇聞異事,所以就存在一個需求,如何去定向抓取奇聞異事的地方號上的新聞,其實做起來…

linux下怎么編譯運行C語言程序?

linux下的C語言編譯器是gcc,C的編譯器是g。 linux下編程可以使用編輯器vi或vim,建議使用vim,因為它有語法高亮顯示。程序編寫好后,假設你的程序名為test.c,可以使用gcc -o test test.c。test就是編譯好的可執行程序./t…

undertow 怎么創建線程_為什么很多SpringBoot開發者放棄了Tomcat,選擇了Undertow

點擊上方“后端技術精選”,選擇“置頂公眾號”技術文章第一時間送達!作者:阿邁達toutiao.com/a6775476659416990212/前言在SpringBoot框架中,我們使用最多的是Tomcat,這是SpringBoot默認的容器技術,而且是內…

一起玩轉CoordinatorLayout

作為Material Design風格的重要組件,CoordinatorLayout協調多種組件的聯動,實現各種復雜的效果,在實際項目中扮演著越來越重要的角色。本篇博客將由淺到深,帶你一起玩轉CoordinatorLayout。 官方文檔對CoordinatorLayout是這樣描述的&#xf…

離散數學圖論旅行規劃問題_2020年MathorCup高校數學建模挑戰賽——C 題 倉內揀貨優化問題...

下面的鏈接是精華版思路,亮點是對第六問的探討。高度概括一下:第一問曼哈頓,第二問用免疫,三問增加任務單,四問增加揀貨員,五問改變復核臺,六問亮點來探討~ 有點皮MathorCup C題 倉內揀貨優化問…

Asp.NetWebForm的控件屬性

一:GridView: 1.綁定ID 的值:DataKeyNames"Id", 2.自動產生列的意思:AutoGenerateColumns 3.如何注冊腳本:ClientScript.RegisterStartupScript(this.GetType(),"text","alert(刪除成功)"&#xf…

【VBA編程】10.自定義集合

自定義集合類型,類似于變量聲明,只是要將Dim關鍵字和New collection關鍵字搭配起來使用,其語法描述如下:其中集合名的命名方式同于標準變量的命名 Dim 集合名 As New collection 對于已經定義的集合對象,可以使用集合的…

git fork clone 區別_Working with Git | Git 與 GitHub

關于各位好,這里是 Chinas Prices Project 項目的知乎專欄。關于 CPP 項目,您可以在這篇文章里了解到更多的信息。若您對這個項目感興趣,我們非常歡迎您與我們交流您的想法與見解。在一個團隊的成員同時為一個項目進行開發工作時,…

舒適的路線(codevs 1001)

題目描述 DescriptionZ小鎮是一個景色宜人的地方&#xff0c;吸引來自各地的觀光客來此旅游觀光。Z小鎮附近共有N(1<N≤500)個景點&#xff08;編號為1,2,3,…,N&#xff09;&#xff0c;這些景點被M&#xff08;0<M≤5000&#xff09;條道路連接著&#xff0c;所有道路都…

PHP_Smarty

模板 數據與表現層的標簽分離 smarty是PHP 與 HTML代碼的分離 小型模板類 $smarty 的工作流程&#xff1a; 把需要顯示的全局變量&#xff0c;賦值塞到對象內部的屬性上&#xff0c;一個數組中.編譯模板&#xff0c;把{$標簽},解析成相應的<?php echo 代碼引入編譯后的PHP文…

讀中文_挑戰來了!康輝喊你讀中文十級繞口令!

文章來源&#xff1a;央視頻漢語橋木甬讀桶不讀涌&#xff0c;月農讀膿不讀朧。米更讀粳不讀梗&#xff0c;日青讀晴不讀睛。米宗讀粽不讀綜&#xff0c;言丁讀訂不讀釘。土竟讀境不是鏡&#xff0c;土平讀坪不是評。耳令讀聆不讀嶺&#xff0c;火登讀燈不讀澄。言甬讀誦不讀蛹…

ios 自定義鍵盤

由于項目需要&#xff0c;需要自定義鍵盤。ios系統鍵盤會緩存鍵盤輸入&#xff0c;并保存在系統目錄下的文件里&#xff0c;并且是明文存儲&#xff0c;存在帳號密碼泄漏風險。在別人代碼基礎上修改了下&#xff0c;美化了下界面&#xff0c;去掉了字符輸入&#xff0c;加了點擊…

對象入參指定泛型類型_為什么要使用泛型,而不是直接將類型作為參數傳遞?

其實很多類型系統都是用類型參數的的形式來實現Universal Type的&#xff0c;Parametric Polymorphism 和System F可以了解一下&#xff0c;如果只局限于一兩個熱門語言的話&#xff0c;可能會有此疑問&#xff0c;但是從type theory的角度來說&#xff0c;高階類型本身就是typ…

【GOF23設計模式】迭代器模式

【GOF23設計模式】迭代器模式 來源&#xff1a;http://www.bjsxt.com/ 一、【GOF23設計模式】_迭代器模式、JDK內置迭代器、內部類迭代器 1 package com.test.iterator;2 /**3 * 自定義的迭代器接口4 */5 public interface MyIterator {6 void first(); //將游標指向第…

SQLServer 維護腳本分享(08)臨時數據庫(tempdb)

dbcc sqlperf(logspace) --各數據庫日志大小及使用百分比dbcc loginfo --查看當前數據庫的虛擬日志文件--臨時表Tempdb最近使用情況 SELECT t1.session_id ,t1.internal_objects_alloc_page_count*8.0/1024 as internal_objects_alloc_MB ,t1.internal_objects_dealloc_p…