WLAN原理实验简述——AP上线

2024-08-30 01:04
文章标签 原理 实验 ap 简述 上线 wlan

本文主要是介绍WLAN原理实验简述——AP上线,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、需求:
AP通过AC上线。
AC通过控制VLAN管理AP,创建VLAN100和放行。
AP同AC建立CAPWAP关系。

二、实验拓扑图:

在这里插入图片描述
三、实验步骤:
LSW1:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]Sysname lsw1
[lsw1]undo info enable
Info: Information center is disabled.
[lsw1]vlan 100
[lsw1-vlan100]int g0/0/2
[lsw1-GigabitEthernet0/0/2]port link-type trunk
[lsw1-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
[lsw1-GigabitEthernet0/0/2]quit
[lsw1]int g0/0/3
[lsw1-GigabitEthernet0/0/3]port link-type trunk
[lsw1-GigabitEthernet0/0/3]port trunk allow-pass vlan 100
[lsw1-GigabitEthernet0/0/3]Quit
[lsw1]interface g0/0/4
[lsw1-GigabitEthernet0/0/4]port link-type trunk
[lsw1-GigabitEthernet0/0/4]port trunk allow-pass vlan 100
[lsw1-GigabitEthernet0/0/4]quit

LSW2:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info enable
Info: Information center is disabled.
[Huawei]sysname lsw2
[lsw2]vlan 100
[lsw2-vlan100]int g0/0/1
[lsw2-GigabitEthernet0/0/1]port link-type trunk
[lsw2-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[lsw2-GigabitEthernet0/0/1]quit
[lsw2]int g0/0/2
[lsw2-GigabitEthernet0/0/2]port link-type trunk
[lsw2-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
[lsw2-GigabitEthernet0/0/2]quit

LSW3:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info enable
Info: Information center is disabled.
[Huawei]sysname lsw3
[lsw3]vlan 100
[lsw3-vlan100]int g0/0/1
[lsw3-GigabitEthernet0/0/1]port link-type trunk
[lsw3-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[lsw3-GigabitEthernet0/0/1]quit
[lsw3]int g0/0/2
[lsw3-GigabitEthernet0/0/2]port link-type access
[lsw3-GigabitEthernet0/0/2]port default vlan 100
[lsw3-GigabitEthernet0/0/2]Quit

LSW4:
sys
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname lsw4
[lsw4]vlan 100
[lsw4-vlan100]int g0/0/1
[lsw4-GigabitEthernet0/0/1]port link-type trunk
[lsw4-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[lsw4-GigabitEthernet0/0/1]quit
[lsw4]int g0/0/2
[lsw4-GigabitEthernet0/0/2]port link-type trunk
[lsw4-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
[lsw4-GigabitEthernet0/0/2]quit

LSW5:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname lsw5
[lsw5]vlan 100
[lsw5-vlan100]int g0/0/1
[lsw5-GigabitEthernet0/0/1]port link-type trunk
[lsw5-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[lsw5-GigabitEthernet0/0/1]int g0/0/2
[lsw5-GigabitEthernet0/0/2]port link-type access
[lsw5-GigabitEthernet0/0/2]port default vlan 100
[lsw5-GigabitEthernet0/0/2]quit

AC1:
sys
Enter system view, return user view with Ctrl+Z.
[AC6605]
[AC6605]sysname AC1
[AC1]VLAN 100
Info: This operation may take a few seconds. Please wait for a moment…done.
[AC1-vlan100]
[AC1-vlan100]int g0/0/1
[AC1-GigabitEthernet0/0/1]port link-type trunk
[AC1-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
[AC1-GigabitEthernet0/0/1]Quit
[AC1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC1]int vlanif 100
[AC1-Vlanif100]ip add 172.16.100.254 24
[AC1-Vlanif100]dhcp select interface
[AC1]capwap source interface vlanif 100

AP1:
dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
(E): E-Trunk down
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 0

Interface IP Address/Mask Physical Protocol
NULL0 unassigned up up(s)
Vlanif1 172.16.100.176/24 up up

ping 172.16.100.254
PING 172.16.100.254: 56 data bytes, press CTRL_C to break
Reply from 172.16.100.254: bytes=56 Sequence=1 ttl=255 time=200 ms
Reply from 172.16.100.254: bytes=56 Sequence=2 ttl=255 time=100 ms
Reply from 172.16.100.254: bytes=56 Sequence=3 ttl=255 time=90 ms
Reply from 172.16.100.254: bytes=56 Sequence=4 ttl=255 time=100 ms
Reply from 172.16.100.254: bytes=56 Sequence=5 ttl=255 time=80 ms

— 172.16.100.254 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 80/114/200 ms

dis interface vlanif 1
Vlanif1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2024-08-29 18:06:53 UTC-05:13
Description:HUAWEI, AP Series, Vlanif1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is allocated by DHCP, 172.16.100.176/24
IP Sending Frames’ Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc93-6250
Current system time: 2024-08-29 19:15:43-05:13
Input bandwidth utilization : –
Output bandwidth utilization : –

AP2:
dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
(E): E-Trunk down
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 0

Interface IP Address/Mask Physical Protocol
NULL0 unassigned up up(s)
Vlanif1 172.16.100.171/24 up up

dis int vlanif 1
Vlanif1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2024-08-30 00:35:00 UTC-05:13
Description:HUAWEI, AP Series, Vlanif1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is allocated by DHCP, 172.16.100.171/24
IP Sending Frames’ Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc32-6ac0
Current system time: 2024-08-29 19:26:10-05:13
Input bandwidth utilization : –
Output bandwidth utilization : –

ping 172.16.100.254
PING 172.16.100.254: 56 data bytes, press CTRL_C to break
Reply from 172.16.100.254: bytes=56 Sequence=1 ttl=255 time=200 ms
Reply from 172.16.100.254: bytes=56 Sequence=2 ttl=255 time=90 ms
Reply from 172.16.100.254: bytes=56 Sequence=3 ttl=255 time=70 ms
Reply from 172.16.100.254: bytes=56 Sequence=4 ttl=255 time=100 ms
Reply from 172.16.100.254: bytes=56 Sequence=5 ttl=255 time=60 ms

— 172.16.100.254 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 60/104/200 ms

AC1:G0/0/1口抓包
在这里插入图片描述

在这里插入图片描述

AC1:
[AC1]wlan
[AC1-wlan-view]regulatory-domain-profile name 1
[AC1-wlan-regulate-domain-1]country-code cn
Info: The current country code is same with the input country code.
[AC1-wlan-regulate-domain-1]quit
[AC1-wlan-view]ap-group name 1
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC1-wlan-ap-group-1]regulatory-domain-profile 1
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
[AC1-wlan-view]ap-id 1 ap-mac 00e0-fc93-6250
[AC1-wlan-ap-1]ap-name ycg
[AC1-wlan-ap-1]ap-group 1

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
Info: This operation may take a few seconds. Please wait for a moment… done.
[AC1-wlan-view]ap-id 2 ap-mac 00e0-fc32-6ac0
[AC1-wlan-ap-2]ap-name ycg2
[AC1-wlan-ap-2]ap-group 1

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
Info: This operation may take a few seconds. Please wait for a moment… done.

[AC1-wlan-view]dis 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-fc93-6250 ycg 1 172.16.100.176 AP6050DN nor 0 2M:23S
2 00e0-fc32-6ac0 ycg2 1 172.16.100.171 AP6050DN nor 0 2S


Total: 2

[AC1]wlan
[AC1-wlan-view]dis this

wlan
traffic-profile name default
security-profile name default
security-profile name default-wds
security-profile name default-mesh
ssid-profile name default
vap-profile name default
wds-profile name default
mesh-handover-profile name default
mesh-profile name default
regulatory-domain-profile name 1
regulatory-domain-profile name default
air-scan-profile name default
rrm-profile name default
radio-2g-profile name default
radio-5g-profile name default
wids-spoof-profile name default
wids-profile name default
wireless-access-specification
ap-system-profile name default
port-link-profile name default
wired-port-profile name default
serial-profile name preset-enjoyor-toeap
ap-group name 1
regulatory-domain-profile 1
ap-group name default
ap-id 1 type-id 56 ap-mac 00e0-fc93-6250 ap-sn 210235448310743EF65C
ap-name ycg
ap-group 1
ap-id 2 type-id 56 ap-mac 00e0-fc32-6ac0 ap-sn 21023544831065599A16
ap-name ycg2
ap-group 1

provision-ap

AP1:

dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
(E): E-Trunk down
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 0

Interface IP Address/Mask Physical Protocol
NULL0 unassigned up up(s)
Vlanif1 172.16.100.176/24 up up

AP2:
****dis int vlanif 1
Vlanif1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2024-08-30 00:35:00 UTC-05:13
Description:HUAWEI, AP Series, Vlanif1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is allocated by DHCP, 172.16.100.171/24
IP Sending Frames’ Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc32-6ac0
Current system time: 2024-08-29 19:26:10-05:13
Input bandwidth utilization : –
Output bandwidth utilization : –

AP1 和AP2名称均改变,并且在AC1 WLAN配置中可以查看到AP-ID1 和2,AC1 显示2个AP在线,实验成功。

这篇关于WLAN原理实验简述——AP上线的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1119361

相关文章

MySQL中的MVCC底层原理解读

《MySQL中的MVCC底层原理解读》本文详细介绍了MySQL中的多版本并发控制(MVCC)机制,包括版本链、ReadView以及在不同事务隔离级别下MVCC的工作原理,通过一个具体的示例演示了在可重... 目录简介ReadView版本链演示过程总结简介MVCC(Multi-Version Concurr

Redis主从/哨兵机制原理分析

《Redis主从/哨兵机制原理分析》本文介绍了Redis的主从复制和哨兵机制,主从复制实现了数据的热备份和负载均衡,而哨兵机制可以监控Redis集群,实现自动故障转移,哨兵机制通过监控、下线、选举和故... 目录一、主从复制1.1 什么是主从复制1.2 主从复制的作用1.3 主从复制原理1.3.1 全量复制

Redis主从复制的原理分析

《Redis主从复制的原理分析》Redis主从复制通过将数据镜像到多个从节点,实现高可用性和扩展性,主从复制包括初次全量同步和增量同步两个阶段,为优化复制性能,可以采用AOF持久化、调整复制超时时间、... 目录Redis主从复制的原理主从复制概述配置主从复制数据同步过程复制一致性与延迟故障转移机制监控与维

SpringCloud配置动态更新原理解析

《SpringCloud配置动态更新原理解析》在微服务架构的浩瀚星海中,服务配置的动态更新如同魔法一般,能够让应用在不重启的情况下,实时响应配置的变更,SpringCloud作为微服务架构中的佼佼者,... 目录一、SpringBoot、Cloud配置的读取二、SpringCloud配置动态刷新三、更新@R

Redis主从复制实现原理分析

《Redis主从复制实现原理分析》Redis主从复制通过Sync和CommandPropagate阶段实现数据同步,2.8版本后引入Psync指令,根据复制偏移量进行全量或部分同步,优化了数据传输效率... 目录Redis主DodMIK从复制实现原理实现原理Psync: 2.8版本后总结Redis主从复制实

深入探索协同过滤:从原理到推荐模块案例

文章目录 前言一、协同过滤1. 基于用户的协同过滤(UserCF)2. 基于物品的协同过滤(ItemCF)3. 相似度计算方法 二、相似度计算方法1. 欧氏距离2. 皮尔逊相关系数3. 杰卡德相似系数4. 余弦相似度 三、推荐模块案例1.基于文章的协同过滤推荐功能2.基于用户的协同过滤推荐功能 前言     在信息过载的时代,推荐系统成为连接用户与内容的桥梁。本文聚焦于

hdu4407(容斥原理)

题意:给一串数字1,2,......n,两个操作:1、修改第k个数字,2、查询区间[l,r]中与n互质的数之和。 解题思路:咱一看,像线段树,但是如果用线段树做,那么每个区间一定要记录所有的素因子,这样会超内存。然后我就做不来了。后来看了题解,原来是用容斥原理来做的。还记得这道题目吗?求区间[1,r]中与p互质的数的个数,如果不会的话就先去做那题吧。现在这题是求区间[l,r]中与n互质的数的和

hdu4407容斥原理

题意: 有一个元素为 1~n 的数列{An},有2种操作(1000次): 1、求某段区间 [a,b] 中与 p 互质的数的和。 2、将数列中某个位置元素的值改变。 import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.IOException;import java.io.Inpu

hdu4059容斥原理

求1-n中与n互质的数的4次方之和 import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.PrintWrit

STM32(十一):ADC数模转换器实验

AD单通道: 1.RCC开启GPIO和ADC时钟。配置ADCCLK分频器。 2.配置GPIO,把GPIO配置成模拟输入的模式。 3.配置多路开关,把左面通道接入到右面规则组列表里。 4.配置ADC转换器, 包括AD转换器和AD数据寄存器。单次转换,连续转换;扫描、非扫描;有几个通道,触发源是什么,数据对齐是左对齐还是右对齐。 5.ADC_CMD 开启ADC。 void RCC_AD