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.rhkb.cn/news/323156.html

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

相关文章

SpringCloud Alibaba Sentinel 修改Dashboard用户名和密码

目录 一、下载Sentinel的Jar包 二、在启动时修改用户名和密码的命令 三、测试登录成功 在网上找到了一大堆文章&#xff0c;没一个有用的&#xff0c;最终还是通过不断测试找到了这个方法。 一、下载Sentinel的Jar包 Releases alibaba/Sentinel GitHub 二、在启动时修改…

【网络安全产品】---应用防火墙(WAF)

what Web应用防火墙&#xff08;Web Application Firewall) WAF可对网站或者App的业务流量进行恶意特征识别及防护&#xff0c;在对流量清洗和过滤后&#xff0c;将正常、安全的流量返回给服务器&#xff0c;避免网站服务器被恶意入侵导致性能异常等问题&#xff0c;从而保障…

视频降噪算法 hqdn3d 原理分析

视频降噪 视频降噪是一种处理技术&#xff0c;旨在减少视频中的噪声&#xff0c;提高画面质量。噪声可能来自多种源头&#xff0c;包括摄像机的传感器、压缩算法、传输过程中的干扰等。降噪处理对于视频监控、视频会议、电影后期制作以及任何需要高画质输出的应用场景都非常重…

PopChar for Mac v10.1激活版:特殊字符输入工具

PopChar for Mac是一款专为Mac用户设计的字符输入工具&#xff0c;其简单直观的功能使得查找和插入特殊字符变得轻而易举。 PopChar for Mac v10.1激活版下载 首先&#xff0c;PopChar为Mac提供了访问所有字体字符的能力&#xff0c;包括那些难以通过键盘直接输入的字符。用户只…

Mac YOLO V9推理测试

环境&#xff1a; Mac M1 (MacOS Sonoma 14.3.1) Python 3.11PyTorch 2.1.2 一、准备工作 工程及模型下载&#xff1a;​​​​​​​https://github.com/WongKinYiu/yolov9 git clone https://github.com/WongKinYiu/yolov9.git 克隆后安装相关依赖&#xff08;没啥依赖好装…

【智能算法】人工原生动物优化算法(APO)原理及实现

目录 1.背景2.算法原理2.1算法思想2.2算法过程 3.结果展示4.参考文献5.获取代码 1.背景 2024年&#xff0c;X Wang受到自然界原生动物启发&#xff0c;提出了人工原生动物优化算法&#xff08; Artificial Protozoa Optimizer, APO&#xff09;。 2.算法原理 2.1算法思想 AP…

C++反汇编,指针和内存分配细节,面试题05

文章目录 20. 指针 vs 引用21. new vs malloc 20. 指针 vs 引用 指针是实体&#xff0c;占用内存空间&#xff0c;逻辑上独立&#xff1b;引用是别名&#xff0c;与变量共享内存空间&#xff0c;逻辑上不独立。指针定义时可以不初始化&#xff1b;引用定义时必须初始化。指针的…

一文玩转Vue3参数传递——全栈开发之路--前端篇(8)

全栈开发一条龙——前端篇 第一篇&#xff1a;框架确定、ide设置与项目创建 第二篇&#xff1a;介绍项目文件意义、组件结构与导入以及setup的引入。 第三篇&#xff1a;setup语法&#xff0c;设置响应式数据。 第四篇&#xff1a;数据绑定、计算属性和watch监视 第五篇 : 组件…

【2024全国青少年信息素养大赛初赛时间以及模拟题】

2024全国青少年信息素养大赛时间已经出来了 目录 全国青少年信息素养大赛智能算法挑战赛初中模拟卷 全国青少年信息素养大赛智能算法挑战赛初中模拟卷 1、比赛时间和考试内容&#xff1a; 算法创意实践挑战赛初中组于5月19日举行&#xff0c;检录时间为10:30-11:00&#xf…

微服务---gateway网关

目录 gateway作用 gateway使用 添加依赖 配置yml文件 自定义过滤器 nacos上的gateway的配置文件 我们现在知道了通过nacos注册服务&#xff0c;通过feign实现服务间接口的调用&#xff0c;那对于不同权限的用户访问同一个接口&#xff0c;我们怎么知道他是否具有访问的权…

python:画折线图

import pandas as pd import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties# 设置新宋体字体的路径 font_path D:/reportlab/simsun/simsun.ttf# 加载新宋体字体 prop FontProperties(fnamefont_path)""" # 读取 xlsx 文件 d…

leetcode每日一题第七十二天

class Solution { public:TreeNode* searchBST(TreeNode* root, int val) {if(!root) return root;if(root->val val) return root;else if(root->val > val) return searchBST(root->left,val);else return searchBST(root->right,val);} };

了解tensorflow.js

1、浏览器中进行机器学习的优势 浏览器中进行机器学习&#xff0c;相对比与服务器端来讲&#xff0c;将拥有以下四大优势&#xff1a; 不需要安装软件或驱动&#xff08;打开浏览器即可使用&#xff09;&#xff1b;可以通过浏览器进行更加方便的人机交互&#xff1b;可以通过…

5.06号模拟前端面试8问

5.06号模拟前端面试8问 1.promise如何实现then处理 在JavaScript中&#xff0c;Promise 是一个代表异步操作最终完成或失败的对象。它有三种状态&#xff1a;pending&#xff08;等待&#xff09;&#xff0c;fulfilled&#xff08;完成&#xff09;&#xff0c;rejected&…

【Git】Git学习-15:分支简介和基本操作

学习视频链接&#xff1a;【GeekHour】一小时Git教程_哔哩哔哩_bilibili​编辑https://www.bilibili.com/video/BV1HM411377j/?vd_source95dda35ac10d1ae6785cc7006f365780https://www.bilibili.com/video/BV1HM411377j/?vd_source95dda35ac10d1ae6785cc7006f365780 git bran…

Superset二次开发之XAxis 功能优化

背景&#xff1a; 以柱状图&#xff08;来自Echarts 插件&#xff09;为例&#xff0c;如果X轴data数据过长&#xff0c;影响图表体验&#xff0c;为此需要省略部分内容 superset-frontend\plugins\plugin-chart-echarts\src\Timeseries\transformProps.ts import {getBaselin…

【C++】string类的使用②(容量接口Capacity || 元素获取Element access)

&#x1f525;个人主页&#xff1a; Forcible Bug Maker &#x1f525;专栏&#xff1a; STL || C 目录 前言&#x1f525;容量接口&#xff08;Capacity&#xff09;size和lengthcapacitymax_sizereserveresizeclearemptyshrink_to_fit &#x1f525;元素获取&#xff08;Ele…

【华为】IPSec VPN手动配置

【华为】IPSec VPN手动配置 拓扑配置ISP - 2AR1NAT - Easy IPIPSec VPN AR3NATIPsec VPN PC检验 配置文档AR1AR2 拓扑 配置 配置步骤 1、配置IP地址&#xff0c;ISP 路由器用 Lo0 模拟互联网 2、漳州和福州两个出口路由器配置默认路由指向ISP路由器 3、进行 IPsec VPN配置&…

Web 安全基础理论

Web 安全基础理论 培训、环境、资料、考证 公众号&#xff1a;Geek极安云科 网络安全群&#xff1a;624032112 网络系统管理群&#xff1a;223627079 网络建设与运维群&#xff1a;870959784 移动应用开发群&#xff1a;548238632 短视频制作群&#xff1a; 744125867极安云…

nginx代理原理(端口复用)探究

前言&#xff1a;对于一些常用的插件&#xff0c;我们应该学会如何使用。同时&#xff0c;其实现原理也要进行深究&#xff0c;可以为其他的项目开发做借鉴。 探究方案&#xff1a; 一、发布两个不同的服务&#xff0c;这两个服务的端口不致 二、配置nginx&#xff0c;让这两…