ap模式和sta模式共存_AP+AC组网下的本地转发及集中转发
現(xiàn)在越來越多的企業(yè)都有自己的無線網(wǎng)絡(luò),而無線網(wǎng)絡(luò)的組網(wǎng)方式一般都是使用AC+AP模式進(jìn)行組網(wǎng),使用無線網(wǎng)絡(luò)能夠提供經(jīng)濟(jì)、高效的網(wǎng)絡(luò)接入方式。相比有線網(wǎng)絡(luò),無線網(wǎng)絡(luò)下只要能接入無線網(wǎng)的地方都可以使用網(wǎng)絡(luò),用戶可以自由移動。而對于AC+AP組網(wǎng)方式來說,轉(zhuǎn)發(fā)模式分為本地轉(zhuǎn)發(fā)(流量到達(dá)AP后直接轉(zhuǎn)發(fā))和集中轉(zhuǎn)發(fā)(流量通過隧道到達(dá)AC,由AC集中轉(zhuǎn)發(fā))。
實(shí)驗(yàn)拓?fù)浼罢f明
說明:1、SW1和SW2作為AP的DHCP服務(wù)器為AP分配IP地址(AP),AC作為STA的DHCP服務(wù)器為STA分配IP地址。
2、STA1采用集中轉(zhuǎn)發(fā)模式,STA2采用本地轉(zhuǎn)發(fā)模式
3、遠(yuǎn)程網(wǎng)絡(luò)3.3.3.3位于IP NETWORK路由器上,用于測試數(shù)據(jù)流向
配置過程略:(文章末尾會附配置文件)
實(shí)驗(yàn)現(xiàn)象:1、AP通過交換機(jī)SW拿到地址,用于與AC等的通信
2、AP發(fā)出兩個wlan信號,一個local-forward,一個center-forward
3、STA1連接local-forward信號,這個wlan使用的是本地轉(zhuǎn)發(fā)模式工作,業(yè)務(wù)地址是192.168.1.0/24段。
4、STA2連接center-forward信號,這個wlan使用的是集中轉(zhuǎn)發(fā)模式工作,業(yè)務(wù)地址是192.168.2.0/24段。
5、在遠(yuǎn)端路由器上開debug,然后在SW與AC之間使用抓包工具抓包,使用集中轉(zhuǎn)發(fā)的wlan信號時,流量會經(jīng)過AC轉(zhuǎn)發(fā),流量到達(dá)AP之后通過隧道傳給AC,由AC轉(zhuǎn)發(fā)。
6、使用本地轉(zhuǎn)發(fā)的wlan信號時,流量不會經(jīng)過AC轉(zhuǎn)發(fā),流量到達(dá)AP之后不會封裝進(jìn)隧道發(fā)送給AC,而是直接由AP轉(zhuǎn)發(fā)。
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
總結(jié)
以上是生活随笔為你收集整理的ap模式和sta模式共存_AP+AC组网下的本地转发及集中转发的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 05笔记 离散数学——函数——基于离散数
- 下一篇: Ubuntu 键盘错位解决 更改键盘布