目录
一、实验目的
1.了解二层直连组网工作原理
2.二层直连WLAN的组网配置方法
二、实验设备
eNSP
AC6005,1台
AP6050,2台
S3700,1台
AR用AR2220,1台
三、网络拓扑图

四、设备配置步骤
1.S3700配置
<LSW1>system-view
[LSW1]undo info-center enable
[LSW1]vlan 100
[LSW1]interface GigabitEthernet 0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type trunk
[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
AP1
[LSW1]interface Ethernet0/0/1
[LSW1-Ethernet0/0/1]port link-type access
[LSW1-Ethernet0/0/1]port default vlan 100
[LSW1-Ethernet0/0/1]q
AP2
[LSW1]interface Ethernet0/0/2
[LSW1-Ethernet0/0/2]port link-type trunk
[LSW1-Ethernet0/0/2]port trunk allow-pass vlan 100
[LSW1-Ethernet0/0/2]port trunk pvid vlan 100
2.AC的配置
<AC6005>system-view
[AC6005]undo info-center enable
[AC6005]vlan 100
[AC6005-vlan100]q
[AC6005]int GigabitEthernet 0/0/2
[AC6005-GigabitEthernet0/0/2]port link-type trunk
[AC6005-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
3.DHCP的配置
[AC6005]dhcp enable
[AC6005]interface Vlanif 100
[AC6005-Vlanif100]ip address 10.100.0.254 24
[AC6005-Vlanif100]dhcp select interface
4.Wlan的配置
[AC6005]wlan
[AC6005-wlan-view]regulatory-domain-profile name admin #创建域模版名字admin
[AC6005-wlan-regulate-domain-admin]country-code CN #配置国家码 CN
[AC6005-wlan-regulate-domain-admin]q
[AC6005-wlan-view]ap-group name ap-xg #组名ap-xg
[AC6005-wlan-ap-group-ap-xg]regulatory-domain-profile admin #引用域模版
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:y #确认此操作
[AC6005-wlan-ap-group-ap-xg]q
AP1的配置:
[AC6005-wlan-view]ap auth-mode mac-auth
[AC6005-wlan-view]ap-id 1 ap-mac xxxx-xxxx-xxxx
#查看MAC地址命令:display mac-address
[AC6005-wlan-ap-1]ap-name ap1
[AC6005-wlan-ap-1]ap-group ap-xg
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y #确认此操作
AP2的配置:
[AC6005-wlan-view]ap auth-mode mac-auth
[AC6005-wlan-view]ap-id 2 ap-mac xxxx-xxxx-xxxx
[AC6005-wlan-ap-2]ap-name ap2
[AC6005-wlan-ap-2]ap-group ap-xg
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y #确认此操作
[AC6005-wlan-ap-2]q
[AC6005-wlan-view]q
[AC6005]capwap source interface Vlanif 100 #建立capwap信道
查看AP1,AP2
[AC6005]dispaly ap all
normal:正常
fault:AP上线失败
idle:AP和AC建立连接前的初始状态
五、总结
通过这个实验掌握直连二层组网中VLAN划分、DHCP配置、Trunk/Access端口配置及CAPWAP隧道建立,理解AP上线全流程与故障排查方法。
6820




被折叠的 条评论
为什么被折叠?



