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.mzph.cn/bicheng/9212.shtml

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

相关文章

Linux网络——自定义序列化与反序列化

前言 之前我们学习过socket之tcp通信&#xff0c;知道了使用tcp建立连接的一系列操作&#xff0c;并通过write与read函数能让客户端与服务端进行通信&#xff0c;但是tcp是面向字节流的&#xff0c;有可能我们write时只写入了部分数据&#xff0c;此时另一端就来read了&#x…

rk3588局域网推流

最近无意间看见在网上有使用MediaMtx插件配合ffmpeg在Windows来进行推流&#xff0c;然后在使用其他软件进行拉流显示数据图像的&#xff0c;既然windows都可以使用 &#xff0c;我想linux应该也可以&#xff0c;正好手上也有一块RK3588的开发板&#xff0c;就测试了一下&#…

【每日刷题】Day35

【每日刷题】Day35 &#x1f955;个人主页&#xff1a;开敲&#x1f349; &#x1f525;所属专栏&#xff1a;每日刷题&#x1f34d; &#x1f33c;文章目录&#x1f33c; 1. 844. 比较含退格的字符串 - 力扣&#xff08;LeetCode&#xff09; 2. 2487. 从链表中移除节点 - 力…

【启明智显技术分享】“ESP-IDF环境搭建全攻略:告别基于乐鑫方案彩屏开发中的搭建难题”

前言&#xff1a; 【启明智显】专注于HMI&#xff08;人机交互&#xff09;及AIoT&#xff08;人工智能物联网&#xff09;产品和解决方案的提供商&#xff0c;我们深知彩屏显示方案在现代物联网应用中的重要性。为此&#xff0c;我们一直致力于为客户提供彩屏显示方案相关的技…

银行职员向媒体投稿发文章我找到了好方法

作为一名基层银行的媒体联络专员,我的日常工作中有一项至关重要的任务,那就是代表我所在的支行向各大媒体投稿,传播我们的金融服务、产品动态以及社会责任实践。起初,这项看似简单的工作却成了我职业生涯中的一大挑战。传统的邮件投稿方式,不仅耗时费力,而且审核流程严格,稿件从…

springboot3+springsecurity+redis 整合登录认证以及权限校验

1. 架构说明 整体架构如下(提供的对应的模块引入)&#xff0c;围绕着springsecurity中的三大核心展开&#xff1a; ​ 1、Authentication&#xff1a;存储了认证信息&#xff0c;代表当前登录用户 ​ 2、SeucirtyContext&#xff1a;上下文对象&#xff0c;用来获取Authenti…

扩散模型~

推荐&#xff1a;write_own_pipeline.ipynb - Colab (google.com) 基本管道 一直显示NVIDIA有问题&#xff0c;所以就把.to("cuda")去掉了&#xff0c;使用Colab运行的&#xff0c;代码如下&#xff1a; from diffusers import DDPMPipelineddpm DDPMPipeline.fr…

Java实战:验证改进的哥德巴赫猜想

改进的哥德巴赫猜想&#xff08;Improved Goldbach’s Conjecture&#xff09;声称每个大于5的奇数都可以表示为三个素数之和。这个猜想是对原始哥德巴赫猜想的扩展&#xff0c;针对奇数的情况。原始哥德巴赫猜想是指每个大于2的偶数都可以表示为两个素数之和。尽管改进的哥德巴…

Python轻量级Web框架Flask(13)—— Flask个人博客项目

0、前言: ★这部分内容是基于之前Flask学习内容的一个实战项目梳理内容,没有可以直接抄下来跑的代码,是学习了之前Flask基础知识之后,再来看这部分内容,就会对Flask项目开发流程有更清楚的认知,对一些开发细节可以进一步的学习。项目功能,通过Flask制作个人博客。项目架…

自动化运维工具-Ansible

一、Ansible概述 Ansible是一种基于python开发的自动化运维工具&#xff0c;它只需要在服务端安装ansible&#xff0c;无需在每个客户端安装客户端程序&#xff0c;通过ssh的方式来进行客户端服务器的管理&#xff0c;基于模块来实现批量数据配置、批量设备部署以及批量命令执…

飞天使-k8s知识点31-rancher的正确打开方式

文章目录 安装之前优化一下内核参数以及系统内核版本 rancher安装主要是使用以下命令nginx的配置为解决办法 安装之前优化一下内核参数以及系统内核版本 内核版本 4.17 cat > /etc/modules-load.d/iptables.conf <<EOF ip_tables iptable_filter EOF 然后重启服务器…

Python运维之多进程!!

本节的快速导航目录如下喔&#xff01;&#xff01;&#xff01; 一、创建进程的类Process 二、进程并发控制之Semaphore 三、进程同步之Lock 四、进程同步之Event 五、进程优先队列Queue 六、多进程之进程池Pool 七、多进程之数据交换Pipe 一、创建进程的类Process mu…

【 书生·浦语大模型实战营】学习笔记(六):Lagent AgentLego 智能体应用搭建

&#x1f389;AI学习星球推荐&#xff1a; GoAI的学习社区 知识星球是一个致力于提供《机器学习 | 深度学习 | CV | NLP | 大模型 | 多模态 | AIGC 》各个最新AI方向综述、论文等成体系的学习资料&#xff0c;配有全面而有深度的专栏内容&#xff0c;包括不限于 前沿论文解读、…

暗区突围国际服pc端海外版如何快速致富 暗区突围pc端怎么赚钱

暗区突围是一款由腾讯魔方工作室研发的高拟真硬核射击手游&#xff0c;以现代战争为游戏题材&#xff0c;采用了全新的u3d引擎打造&#xff0c;整体游戏画风逼真写实&#xff0c;搭配上优秀的射击玩法&#xff0c;辅以史诗级的背景配乐&#xff0c;致力于带给玩家无与伦比的枪战…

【因特网中自治系统内部的路由选择,RIP 进程处理 OSPFOSPF(Open Shortest Path First)最短路径优先协议】

文章目录 因特网中自治系统内部的路由选择RIP&#xff08;Routing Information Protocol&#xff09;内部网关协议RIP通告&#xff08;advertisements&#xff09;RIP: 链路失效和恢复RIP 进程处理OSPF(Open Shortest Path First)最短路径优先协议OSPF “高级” 特性(在RIP中的…

SEO之高级搜索指令(三)

初创企业需要建站的朋友看这篇文章&#xff0c;谢谢支持&#xff1a; 我给不会敲代码又想搭建网站的人建议 新手上云 &#xff08;接上一篇。。。。&#xff09; 11、link: link:也是SEO 常用的指令&#xff0c;用来搜索某个url的反向链接&#xff0c;既包括内部链接&#xf…

【C++11新特性】lambda表达式和应用场景

创作不易&#xff0c;本篇文章如果帮助到了你&#xff0c;还请点赞 关注支持一下♡>&#x16966;<)!! 主页专栏有更多知识&#xff0c;如有疑问欢迎大家指正讨论&#xff0c;共同进步&#xff01; &#x1f525;c系列专栏&#xff1a;C/C零基础到精通 &#x1f525; 给大…

力扣每日一题112:路径总和

题目 简单 给你二叉树的根节点 root 和一个表示目标和的整数 targetSum 。判断该树中是否存在 根节点到叶子节点 的路径&#xff0c;这条路径上所有节点值相加等于目标和 targetSum 。如果存在&#xff0c;返回 true &#xff1b;否则&#xff0c;返回 false 。 叶子节点 是…

java入门1.1.1版本

前言&#xff1a; 上面的内容是1.0.0~1.1的内容总结 秉持着先做再定义的理念&#xff0c;这里会带着大家先体验一下类与对象 第一步&#xff1a;新建一个java文件 鼠标右键 → 新建 → 文本文档 → 右键 → 点击重名 → 全选 → hello.java 第二步&#xff1a;用笔记本打开 …

C++进阶:map与set简单自实现

目录 1. map与set封装红黑树的方式1.1 大概实现思路1.2 红黑树模板抽象1.3 红黑树的迭代器 2. 红黑树模板的实现2.1 结点结构的定义2.2 红黑树迭代器的实现2.2.1 迭代器的结构2.2.2 迭代器的方法实现 2.3 树结构的定义2.4 红黑树接口实现2.4.1 插入2.4.2 查找2.4.3 迭代器相关 …