其他分享
首页 > 其他分享> > 华为模拟器,无线AC,隧道集中转发和直连转发实验及抓包分析区别

华为模拟器,无线AC,隧道集中转发和直连转发实验及抓包分析区别

作者:互联网

 

LSW1配置

sys
sys lsw1
vlan b 11 10 20 100

dhcp en

int vlanif 11
ip add 11.0.0.2 30

int vlanif 10
ip add 10.0.0.1 24
dhcp sel int 
dhcp server option 43 sub-option 2 ip-address 1.0.0.100

int vlanif 20
ip add 20.0.0.1 24
dhcp sel int 
dhcp server option 43 sub-option 2 ip-address 1.0.0.100

int vlanif 100
ip add 1.0.0.1 24
dhcp sel int 


int g0/0/2
p l t
p t a v 20 100
p t p v 100

int g0/0/3
p l t
p t a v 10 100
p t p v 100

int g 0/0/4
p l t
p t a v 20 100
p t p v 100

int g0/0/1
p l a
p d v 11

ip route-s 0.0.0.0 0 11.0.0.1 

  AC配置

sys
sys ac1
vlan b 100 20
int vlanif 100
ip add 1.0.0.100 24

int g0/0/1
p l t
p t a v 100 20
port trunk pvid vlan 100

---------------------------------
创建AP组

wlan
ap-group name office-1
ap-group name office-2
q
-----------------------------------------
创建域模板,配置国家代码

wlan
regulatory-domain-profile name office
country-code CN 
q
------------------------------------
AP组引用域模板

wlan
ap-group name office-1
regulatory-domain-profile office
y
q

wlan
ap-group name office-2
regulatory-domain-profile office
y
q
-----------------------------------
AC源接口或源地址配置

capwap capwap source interface Vlanif 100

-------------------------------
添加AP设备
wlan
ap auth-mode mac-auth
ap-id 0 ap-mac 00E0-FCC6-1160
ap-name office-1
ap-group office-1
y
q


ap-id 1 ap-mac 00E0-FCAA-1630
ap-name office-2
ap-group office-2
y
q

--------------------------------------

创建ssid模板
wlan
ssid-profile name 1-office
ssid 1-office
q

wlan
ssid-profile name 2-office
ssid 2-office
q

------------------------------------
创建安全模板
wlan
security-profile name office
security wpa-wpa2 psk pass-phrase 12345678 aes

------------------------------------------------
VAP 模板配置
wlan
vap-profile name office-1
  forward-mode direct-forward 
  service-vlan vlan-id 10
  ssid-profile 1-office
  security-profile office
  q
vap-profile name office-2
  forward-mode tunnel 
  service-vlan vlan-id 20
  ssid-profile 2-office
  security-profile office
  q
-----------------------------------------------
AP组引用VAP模板
wlan
ap-group name office-1
vap-profile office-1 wlan 1 radio all
q

ap-group name office-2
vap-profile office-2 wlan 1 radio all
q

---------------------------------------------

  AR1配置

sys
sys ar1
int g0/0/0
ip add 11.0.0.1 30

int lo1
ip add 1.1.1.1 32

ip route-static 10.0.0.0 255.255.255.0 11.0.0.2
ip route-static 20.0.0.0 255.255.255.0 11.0.0.2
ip route-static 1.0.0.0 255.255.255.0 11.0.0.2

  

 

标签:直连,profile,AC,name,office,int,ap,转发,100
来源: https://www.cnblogs.com/jjsunxing/p/16489046.html