wlan二层旁挂组网实验

实验拓扑图

在这里插入图片描述

代码:

SW1

<Huawei>sys 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn sw1
[sw1]undo info-center enable 
Info: Information center is disabled.
[sw1]vlan batch 10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/1]port default vlan 30
[sw1-GigabitEthernet0/0/1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type trunk
[sw1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10
[sw1-GigabitEthernet0/0/2]int g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type trunk
[sw1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20
[sw1-GigabitEthernet0/0/3]q
[sw1]int vlan 20
[sw1-Vlanif20]ip add 10.1.20.1 24
[sw1-Vlanif20]int vlan 30
[sw1-Vlanif30]ip add 10.1.30.2 24
[sw1-Vlanif30]q
[sw1]ping -a 10.1.20.1 10.1.30.1PING 10.1.30.1: 56  data bytes, press CTRL_C to breakReply from 10.1.30.1: bytes=56 Sequence=1 ttl=255 time=120 msReply from 10.1.30.1: bytes=56 Sequence=2 ttl=255 time=40 msReply from 10.1.30.1: bytes=56 Sequence=3 ttl=255 time=10 msReply from 10.1.30.1: bytes=56 Sequence=4 ttl=255 time=50 msReply from 10.1.30.1: bytes=56 Sequence=5 ttl=255 time=40 ms--- 10.1.30.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 10/52/120 ms[sw1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[sw1]int vlan 20
[sw1-Vlanif20]dhcp select int

SW2

<Huawei>sys 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn sw2
[sw2]undo info-center enable 
Info: Information center is disabled.
[sw2]vlan batch 10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2]int g0/0/3
[sw2-GigabitEthernet0/0/3]port link-type trunk
[sw2-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20
[sw2-GigabitEthernet0/0/3]int g0/0/1
[sw2-GigabitEthernet0/0/1]port link-type trunk
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
[sw2-GigabitEthernet0/0/1]port trunk pvid vlan 10
[sw2-GigabitEthernet0/0/1]int g0/0/2
[sw2-GigabitEthernet0/0/2]port link-type trunk
[sw2-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20
[sw2-GigabitEthernet0/0/2]port trunk pvid vlan 10

AR

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sysn AR
[AR]undo info-center enable 
Info: Information center is disabled.
[AR]int g0/0/1
[AR-GigabitEthernet0/0/1]
[AR-GigabitEthernet0/0/1]ip add 10.1.30.1 24
[AR-GigabitEthernet0/0/1]q
[AR]ip route-static 10.1.20.0 24 10.1.30.2

AC

<AC6005>sys 
Enter system view, return user view with Ctrl+Z.
[AC6005]sysn AC
[AC]undo info-center enable 
Info: Information center is disabled.
[AC]vlan batch 10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC]int g0/0/2
[AC-GigabitEthernet0/0/2]port link-type trunk
[AC-GigabitEthernet0/0/2]port trunk allow-pass vlan 10
[AC-GigabitEthernet0/0/2]int vlan 10
[AC-Vlanif10]ip add 10.1.10.1 24
[AC-Vlanif10]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC]dhcp enable
[AC]int vlan 10
[AC-Vlanif10]dhcp select int
[AC-Vlanif10]q
[AC]capwap source ip-address 10.1.10.1
[AC]wlan
[AC-wlan-view]ap-group name huawei
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC-wlan-ap-group-huawei]q
[AC-wlan-view]ap auth-mode no-auth 
Warning: It is insecure to configure none authentication mode.
[AC-wlan-view]q
[AC]dis ap all
Info: This operation may take a few seconds. Please wait for a moment.done.
--------------------------------------------------------------------------------
ID   MAC            Name  Group  IP  Type  State  STA  Uptime
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Total: 0
[AC]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 STAUptime
--------------------------------------------------------------------------------
------------------
0    00e0-fc44-0700 00e0-fc44-0700 default 10.1.10.232 AP4050DN-E      nor   0  32S
1    00e0-fc6e-48f0 00e0-fc6e-48f0 default 10.1.10.112 AP4050DN-E      nor   0  32S
--------------------------------------------------------------------------------
------------------
Total: 2
[AC]wlan
[AC-wlan-view]ap-id 0
[AC-wlan-ap-0]ap-group huawei
Warning: This operation may cause AP reset. If the country code changes, it willclear 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.
[AC-wlan-ap-0]q
[AC-wlan-view]ap-id 1
[AC-wlan-ap-1]ap-group huawei
Warning: This operation may cause AP reset. If the country code changes, it willclear 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.
[AC-wlan-ap-1]q
[AC-wlan-view]dis ap all
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
fault: fault           [2]
--------------------------------------------------------------------------------
--------
ID   MAC            Name           Group  IP Type            State STA Uptime
--------------------------------------------------------------------------------
--------
0    00e0-fc44-0700 00e0-fc44-0700 huawei -  AP4050DN-E      fault 0   -
1    00e0-fc6e-48f0 00e0-fc6e-48f0 huawei -  AP4050DN-E      fault 0   -
--------------------------------------------------------------------------------
--------
Total: 2
[AC-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
--------------------------------------------------------------------------------
-----------------
0    00e0-fc44-0700 00e0-fc44-0700 huawei 10.1.10.232 AP4050DN-E      nor   0   
1M:23S
1    00e0-fc6e-48f0 00e0-fc6e-48f0 huawei 10.1.10.112 AP4050DN-E      nor   0   
44S
--------------------------------------------------------------------------------
-----------------
Total: 2
# 切换为mca认证	
[AC-wlan-view]ap auth-mode mac-auth # 创建ssid模板
[AC-wlan-view]ssid-profile name huawei
[AC-wlan-ssid-prof-huawei]ssid huawei
Info: This operation may take a few seconds, please wait.done.
[AC-wlan-ssid-prof-huawei]q# 创建安全模板
[AC-wlan-view]security-profile name huawei
[AC-wlan-sec-prof-huawei]security wpa-wpa2 psk pass-phrase a1234567 aes
[AC-wlan-sec-prof-huawei]q# 创建vap模板
[AC-wlan-view]vap-profile name huawei# 引入ssid模板和安全模板
[AC-wlan-vap-prof-huawei]security-profile huawei
Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-huawei]ssid-profile huawei
Info: This operation may take a few seconds, please wait.done.# 设置业务vlan为20和直接转发方式
[AC-wlan-vap-prof-huawei]service-vlan vlan-id 20
Info: This operation may take a few seconds, please wait.done.
[AC-wlan-vap-prof-huawei]forward-mode direct-forward 
[AC-wlan-vap-prof-huawei]q# 创建域管理模板
[AC-wlan-view]regulatory-domain-profile name huawei
[AC-wlan-regulate-domain-huawei]country-code CN
Info: The current country code is same with the input country code.
[AC-wlan-regulate-domain-huawei]q# 进入ap组华为中,并且绑定于管理模板huawei和vap模板huawei
[AC-wlan-view]ap-group name huawei
[AC-wlan-ap-group-huawei]regulatory-domain-profile huawei
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
[AC-wlan-ap-group-huawei]vap-profile huawei wlan 1 radio all
Info: This operation may take a few seconds, please wait...done.
[AC-wlan-ap-group-huawei]q
# 检查是否上线
[AC-wlan-view]dis vap ssid huawei
Info: This operation may take a few seconds, please wait.
WID : WLAN ID            
--------------------------------------------------------------------------------
--
AP ID AP name        RfID WID  BSSID          Status  Auth type     STA   SSID  
--------------------------------------------------------------------------------
--
0     00e0-fc44-0700 0    1    00E0-FC44-0700 ON      WPA/WPA2-PSK  0     huawei
0     00e0-fc44-0700 1    1    00E0-FC44-0710 ON      WPA/WPA2-PSK  0     huawei
1     00e0-fc6e-48f0 0    1    00E0-FC6E-48F0 ON      WPA/WPA2-PSK  0     huawei
1     00e0-fc6e-48f0 1    1    00E0-FC6E-4900 ON      WPA/WPA2-PSK  0     huawei
--------------------------------------------------------------------------------
--
Total: 4

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/682288.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Error: error:0308010C:digital envelope routines::unsupported 问题如何解决

Error: error:0308010C:digital envelope routines::unsupported 通常与 Node.js 的加密库中对某些加密算法的支持有关。这个错误可能是因为 Node.js 的版本与某些依赖库不兼容导致的。特别是在 Node.js 17 版本中&#xff0c;默认使用 OpenSSL 3&#xff0c;而一些旧的加密方式…

socket实现TCP UDP

1、socket通信建立流程 1.1、创建服务端流程 使用 socket 函数来创建 socket服务。 使用 bind 函数绑定端口。 使用 listen 函数监听端口。 使用 accept 函数接收客户端请求。 1.2、创建客户端流程 使用 socket 函数来创建 socket 服务。 使用 connect 函数连接到 socke…

探索智能编程新境界:我与Baidu Comate的独特体验之旅

文章目录 一、认识Baidu Comate二、VS Code安装Baidu Comate教程三、Baidu Comate功能体验功能概览具体功能1.根据注释自动生成代码2.函数注释3.行间注释4.代码解释5.生成单元测试6.代码优化7.答疑解惑 四、交互体验五、总结 一、认识Baidu Comate ✨Baidu Comate插件是一款基…

漏洞管理是如何在攻击者之前识别漏洞从而帮助人们阻止攻击的

漏洞管理 是主动查找、评估和缓解组织 IT 环境中的安全漏洞、弱点、差距、错误配置和错误的过程。该过程通常扩展到整个 IT 环境&#xff0c;包括网络、应用程序、系统、基础设施、软件和第三方服务等。鉴于所涉及的高成本&#xff0c;组织根本无法承受网络攻击和数据泄露。如果…

Spring底层入门(九)

boot的执行流程分为构造SpringApplication对象、调用run方法两部分 1、Spring Boot 执行流程-构造 通常我们会在SpringBoot的主启动类中写以下的代码&#xff1a; 参数一是当前类的字节码&#xff0c;参数二是main的args参数。 public class StartApplication {public static…

Selenium 自动化 —— 常用的定位器(Locator)

什么是定位器 定位器&#xff08;Locator&#xff09;是识别DOM中一个或多个特定元素的方法。 也可以叫选择器 Selenium 通过By类&#xff0c;提供了常见的定位器。具体语法如下&#xff1a; By.xxx("");我们选择单个元素时可以使用findByElement&#xff1a; Web…

JUC下的ForkJoinPool详解

详细介绍 ForkJoinPool 是 Java 并发包 (java.util.concurrent) 中的一个特殊线程池&#xff0c;专为分治算法设计&#xff0c;能够高效地处理大量可分解的并行任务。它基于工作窃取&#xff08;work-stealing&#xff09;算法&#xff0c;当一个工作线程的任务队列为空时&…

pytest教程-43-钩子函数-pytest_report_header

领取资料&#xff0c;咨询答疑&#xff0c;请➕wei: June__Go 上一小节我们学习了pytest_runtest_makereport钩子函数的使用方法&#xff0c;本小节我们讲解一下pytest_report_header钩子函数的使用方法。 pytest_report_header 钩子函数允许你在 pytest 的终端报告的头部添…

在此计算机上找不到autocad20*你需要安装autocad20*才可以安装此语言包,安装不成功的解决办法

因为AutoCAD2020未卸载干净导致&#xff0c;需要把AutoCAD2020的注册表清理干净&#xff0c;才可以安装 注册表打开&#xff0c;HKEY LOCAL MACHINE SOFTWARE Classesinstaller Products\7D2F3875100F0000102000060BECB6AB AHKEY LOCAL MACHINE SOFTWARE Classesinstaller Pro…

网工内推 | 技术支持工程师,最高15k,加班有补贴

01 星网信通 招聘岗位&#xff1a;售前技术支持 职责描述&#xff1a; 1、售前技术支持&#xff1a;技术交流、产品选型报价、方案制作等工作&#xff1b; 2、招投标支持&#xff1a;项目招标参数撰写、标书质疑、应标文件技术部分撰写及资质文件归纳准备、现场讲标及技术澄清…

Java 语法 (杂七杂八的知识)

面向对象三大特性 封装, 多态, 继承 基本数据类型 一字节 (Byte) 占八位 (bit) JDK, JRE, JVM JDK (Java Development Kit) : Java 开发工具包, 包括了 JRE, 编译器 javac, 和调试工具 Jconsole, jstack 等 JRE (Java Runtime Environment) : Java 运行时环境, 包括了 JVM , …

为什么职场关系越来越冷漠?

不知道从什么时候开始&#xff0c;我们的职场关系变得越来越冷漠了。 早上上班打卡的时候&#xff0c;一个个都低着头&#xff0c;眼神紧紧盯着手机&#xff0c;生怕错过什么重要的信息&#xff1b; 下班后大家一哄而散&#xff0c;各自抱着手机“享受”生活&#xff0c;谁也…