《WLAN》直连二层组网步骤及方式

一、实验目的

1.理解二层直连组网工作原理
2.掌握二层直连WLAN的组网配置方法

二、实验设备

eNSP
AC6005,1台
AP6050,2台
SW1用S3700,1台
AR用AR2220,1台

三、网络拓扑&流程图

1.eNSP的网络拓扑图
在这里插入图片描述
2.以下是AC、AP中,AC的基本配置流程,我在eNSP中也基本按照以下流程图配置的
在这里插入图片描述

四、设备配置步骤

一、
SW1的配置

<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

1.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

2.DHCP的配置

[AC6005]dhcp enable          
[AC6005]interface Vlanif 100
[AC6005-Vlanif100]ip address 10.100.0.254 24
[AC6005-Vlanif100]dhcp select interface
[AC6005-Vlanif100]q 

3.WLAN的基本配置
配置域模版,模版的名字 “admin”

[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

4.创建AP组

[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

5.配置AP认证模式为MAC认证,并离线导入AP

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

6.建立capwap信道

[AC6005]capwap source interface Vlanif 100

7.查看AP1、AP2的上线情况

[AC6005]display ap all 
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor  : normal          [2]
--------------------------------------------------------------------------------
-----------
ID   MAC            Name Group IP           Type            State STA Uptime
--------------------------------------------------------------------------------
-----------
1    00e0-fcf0-7810 AP1  ap-xh 10.100.0.5   AP6050DN        nor   0   1H:31M:44S
2    00e0-fc43-70a0 AP2  ap-xh 10.100.0.249 AP6050DN        nor   0   1H:59M:40S
--------------------------------------------------------------------------------
-----------
Total: 2
[AC6005]

AP状态
normal : AP正常状态
fault :AP上线失败状态。
idle :AP和AC建立连接前的初始状态。

总结

通过这个实验掌握直连二层组网中VLAN划分、DHCP配置、Trunk/Access端口配置及CAPWAP隧道建立,理解AP上线全流程与故障排查方法。

好的,我可以给你提供一个可能的直连二层组网WLAN业务配置的实例,仅供参考: 假设AP6010-1的管理IP地址为192.168.1.1,AP6010-2的管理IP地址为192.168.1.2,WLAN业务所在的VLAN为VLAN10,以下是具体的配置步骤: 1. 对AP6010-1和AP6010-2进行基本配置: ``` AP6010-1(config)# interface vlan 1 AP6010-1(config-if)# ip address 192.168.1.1 255.255.255.0 AP6010-1(config-if)# exit AP6010-1(config)# wireless ssid WLAN-A AP6010-1(config-wireless-ssid)# security-profile WPA2-PSK-A AP6010-2(config)# interface vlan 1 AP6010-2(config-if)# ip address 192.168.1.2 255.255.255.0 AP6010-2(config-if)# exit AP6010-2(config)# wireless ssid WLAN-B AP6010-2(config-wireless-ssid)# security-profile WPA2-PSK-B ``` 2. 配置VLAN: ``` AP6010-1(config)# vlan database AP6010-1(config-vlan)# vlan 10 AP6010-1(config-vlan)# exit AP6010-1(config)# interface gigabitethernet 1/0/1 AP6010-1(config-if)# switchport mode access AP6010-1(config-if)# switchport access vlan 10 AP6010-1(config-if)# exit AP6010-2(config)# vlan database AP6010-2(config-vlan)# vlan 10 AP6010-2(config-vlan)# exit AP6010-2(config)# interface gigabitethernet 1/0/1 AP6010-2(config-if)# switchport mode access AP6010-2(config-if)# switchport access vlan 10 AP6010-2(config-if)# exit ``` 3. 配置trunk口: ``` AP6010-1(config)# interface gigabitethernet 1/0/2 AP6010-1(config-if)# switchport mode trunk AP6010-1(config-if)# exit AP6010-2(config)# interface gigabitethernet 1/0/2 AP6010-2(config-if)# switchport mode trunk AP6010-2(config-if)# exit ``` 4. 配置STP: ``` AP6010-1(config)# spanning-tree AP6010-1(config-stp)# exit AP6010-2(config)# spanning-tree AP6010-2(config-stp)# exit ``` 5. 配置ACL: ``` AP6010-1(config)# access-list 101 permit ip any any AP6010-1(config)# interface vlan 10 AP6010-1(config-if)# ip access-group 101 in AP6010-1(config-if)# exit AP6010-2(config)# access-list 101 permit ip any any AP6010-2(config)# interface vlan 10 AP6010-2(config-if)# ip access-group 101 in AP6010-2(config-if)# exit ``` 6. 最后,进行基本的测试。用户连接到WLAN-A或WLAN-B,测试网络连接是否正常。 需要注意的是,以上配置仅供参考,具体的配置步骤可能与不同的网络设备型号和厂商有关,需要根据实际情况进行具体的调整和修改。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值