一、实验目的

1)掌握AP与AC的隧道建立流程

 

二、实验仪器设备及软件

仪器设备:一台AC,两台AP,一台AR,一台交换机

软件:ENSP

 

三、实验原理

 

 

 

四、实验内容与步骤

1. 配置接入交换机,接口IP和DHCP服务器,口网关对接

[Huawei]vlan batch 100 101 200 800

[Huawei]dhcp en

[Huawei]inter vlanif100

[Huawei-Vlanif100]ip add 10.1.100.1 24

[Huawei-Vlanif100]dhcp select inter

[Huawei-Vlanif100]dhcp server option 43 sub-option 3 ascii 10.1.201.100

[Huawei-Vlanif100]inter vlanif 101

[Huawei-Vlanif101]ip add 10.1.101.1 24

[Huawei-Vlanif101]dhcp select inter

[Huawei-Vlanif101]dhcp server dns-list 8.8.8.8

[Huawei-Vlanif101]inter vlanif 200

[Huawei-Vlanif200]ip add 10.1.200.1 24

[Huawei-Vlanif200]inter vlanif 800

[Huawei-Vlanif800]ip add 10.1.201.1 24

[Huawei-Vlanif800]inter g0/0/1

[Huawei-GigabitEthernet0/0/1]port link-type trunk

[Huawei-GigabitEthernet0/0/1]port trunk pvid vlan 100

[Huawei-GigabitEthernet0/0/1]port trunk all  

[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101

[Huawei-GigabitEthernet0/0/1]inter g0/0/2

[Huawei-GigabitEthernet0/0/2]port link-type trunk

[Huawei-GigabitEthernet0/0/2]port trunk pvid vlan 100

[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan 100 101

[Huawei-GigabitEthernet0/0/2]inter g0/0/3

[Huawei-GigabitEthernet0/0/3]port link-type access

[Huawei-GigabitEthernet0/0/3]port default vlan 200

[Huawei-GigabitEthernet0/0/3]inter g0/0/4

[Huawei-GigabitEthernet0/0/4]port link-type access

[Huawei-GigabitEthernet0/0/4]port default vlan 800

[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.1.200.100

[AC6005]inter vlan 1

[AC6005-Vlanif1]ip add 10.1.201.100 24

[AC6005-Vlanif1]quit

[AC6005]ip route-static 0.0.0.0 0.0.0.0 10.1.201.1

[AC6005]inter wlan-ess0 

[AC6005-Wlan-Ess0]port hybrid untagged vlan 101

[AC6005-wlan-view]wlan ac source interface vlanif1

[AC6005-wlan-view]ap-auth-mode no-auth

[AC6005-wlan-view]wmm-profile name test id 0

[AC6005-wlan-wmm-prof-test]traffic-profile name test id 0

[AC6005-wlan-traffic-prof-test]security-profile name test id 0

[AC6005-wlan-sec-prof-test]service-set name vlan101 id 0

[AC6005-wlan-service-set-vlan101]wlan-ess 0

[AC6005-wlan-service-set-vlan101]ssid wlan101

[AC6005-wlan-service-set-vlan101]traffic-profile id 0

[AC6005-wlan-service-set-vlan101]security-profile id 0

[AC6005-wlan-service-set-vlan101] service-vlan 101

[AC6005-wlan-service-set-vlan101]radio-profile name test id 0

[AC6005-wlan-radio-prof-test]wmm-profile id 0

[AC6005-wlan-radio-prof-test]ap 0 radio 0

[AC6005-wlan-radio-0/0]radio-profile id 0

[AC6005-wlan-radio-0/0]service-set id 0 wlan 1

[AC6005-wlan-radio-0/0]ap 1 radio 0

[AC6005-wlan-radio-1/0]radio-profile id 0

[AC6005-wlan-radio-1/0]service-set id 1 wlan 1

[AC6005-wlan-radio-1/0]commit all

 

2. 配置AR:

[Huawei]inter LoopBack 0

[Huawei-LoopBack0]ip add 100.100.100.100 24

[Huawei-LoopBack0]inter g0/0/0

[Huawei-GigabitEthernet0/0/0]ip add 10.1.200.100 24

[Huawei-GigabitEthernet0/0/0]quit

[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.1.200.1

 

五、实验结果与分析

1. Ap上线:

 

 

 

2. ping通外网: