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

相关文章

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

文章目录 前言一、协同过滤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

寻迹模块TCRT5000的应用原理和功能实现(基于STM32)

目录 概述 1 认识TCRT5000 1.1 模块介绍 1.2 电气特性 2 系统应用 2.1 系统架构 2.2 STM32Cube创建工程 3 功能实现 3.1 代码实现 3.2 源代码文件 4 功能测试 4.1 检测黑线状态 4.2 未检测黑线状态 概述 本文主要介绍TCRT5000模块的使用原理,包括该模块的硬件实现方式,电路实现原理,还使用STM32类

利用Django框架快速构建Web应用:从零到上线

随着互联网的发展,Web应用的需求日益增长,而Django作为一个高级的Python Web框架,以其强大的功能和灵活的架构,成为了众多开发者的选择。本文将指导你如何从零开始使用Django框架构建一个简单的Web应用,并将其部署到线上,让世界看到你的作品。 Django简介 Django是由Adrian Holovaty和Simon Willison于2005年开发的一个开源框架,旨在简

TL-Tomcat中长连接的底层源码原理实现

长连接:浏览器告诉tomcat不要将请求关掉。  如果不是长连接,tomcat响应后会告诉浏览器把这个连接关掉。    tomcat中有一个缓冲区  如果发送大批量数据后 又不处理  那么会堆积缓冲区 后面的请求会越来越慢。

HNU-2023电路与电子学-实验3

写在前面: 一、实验目的 1.了解简易模型机的内部结构和工作原理。 2.分析模型机的功能,设计 8 重 3-1 多路复用器。 3.分析模型机的功能,设计 8 重 2-1 多路复用器。 4.分析模型机的工作原理,设计模型机控制信号产生逻辑。 二、实验内容 1.用 VERILOG 语言设计模型机的 8 重 3-1 多路复用器; 2.用 VERILOG 语言设计模型机的 8 重 2-1 多

PHP原理之内存管理中难懂的几个点

PHP的内存管理, 分为俩大部分, 第一部分是PHP自身的内存管理, 这部分主要的内容就是引用计数, 写时复制, 等等面向应用的层面的管理. 而第二部分就是今天我要介绍的, zend_alloc中描写的关于PHP自身的内存管理, 包括它是如何管理可用内存, 如何分配内存等. 另外, 为什么要写这个呢, 因为之前并没有任何资料来介绍PHP内存管理中使用的策略, 数据结构, 或者算法. 而在我们