wlan二层旁挂组网实验

news2024/11/18 7:38:29

实验拓扑图

在这里插入图片描述

代码:

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.1
  PING 10.1.30.1: 56  data bytes, press CTRL_C to break
    Reply from 10.1.30.1: bytes=56 Sequence=1 ttl=255 time=120 ms
    Reply from 10.1.30.1: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 10.1.30.1: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 10.1.30.1: bytes=56 Sequence=4 ttl=255 time=50 ms
    Reply from 10.1.30.1: bytes=56 Sequence=5 ttl=255 time=40 ms

  --- 10.1.30.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-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 STA
 Uptime
--------------------------------------------------------------------------------
------------------
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 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.
[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 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.
[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.coloradmin.cn/o/1657893.html

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

相关文章

Vuex 和 Pinia 两个状态管理模式的区别

Pinia和Vuex一样都是是vue的全局状态管理器。其实Pinia就是Vuex5&#xff0c;只不过为了尊重原作者的贡献就沿用了这个看起来很甜的名字Pinia。&#xff08;实际项目中千万不要即用Vuex又用Pinia&#xff0c;不然你会被同事‘’请去喝茶的‘’。 一、安装&#xff08;常用命令安…

2024年软件测试最全Jmeter--【作为测试你必须要知道的】基础名词与环境搭建,2024年最新年末阿里百度等大厂技术面试题汇总

网上学习资料一大堆&#xff0c;但如果学到的知识不成体系&#xff0c;遇到问题时只是浅尝辄止&#xff0c;不再深入研究&#xff0c;那么很难做到真正的技术提升。 需要这份系统化的资料的朋友&#xff0c;可以戳这里获取 一个人可以走的很快&#xff0c;但一群人才能走的更…

盘点企业信息防泄密软件对比|揭秘企业信息防泄密软件好用榜

在当今信息化社会&#xff0c;企业信息防泄密软件的需求日益凸显。这些软件不仅关乎企业的核心竞争力&#xff0c;更直接关系到企业的生死存亡。本文将对市面上几款主流的企业信息防泄密软件进行深入对比分析&#xff0c;以期为企业提供有益的参考。 一、企业信息防泄密软件好…

【C语言项目】贪吃蛇(上)

个人主页 ~ gitee仓库~ 欢迎大家来到C语言系列的最后一个篇章–贪吃蛇游戏的实现&#xff0c;当我们实现了贪吃蛇之后&#xff0c;我们的C语言就算是登堂入室了&#xff0c;基本会使用了&#xff0c;当然&#xff0c;想要更加熟练地使用还需要多多练习 贪吃蛇 一、目标二、需要…

java培训班还值得去培训吗?

请大家关注我的公众号&#xff1a;老胡聊Java 1 应届生或者在校生&#xff0c;如果感觉有必要&#xff0c;可以去提升下技术&#xff0c;因为应届生或在校生找工作时&#xff0c;未必要提升真实项目经验&#xff0c;所以用应届生身份学到的spring boot等java技术背面试题&#…

80端口被占用,解决办法

1.首先打开控制面板&#xff08;可以在左下角搜索&#xff09; 2. 点击程序 3.点击启用或关闭Windows功能 4. 关闭Internet Information Services 下图是关闭后的样子 5.点击确定&#xff0c;然后重启 这样就解决了80端口被占用的问题。

如何理解vlanif接口无法up的原因?直连不通(PVID问题)?如何排查?

目录 案列一&#xff1a;如何理解vlanif接口无法up的原因&#xff1f; 案例二&#xff1a;vlan接口正常up&#xff0c;同网段&#xff0c;无法ping通&#xff1f;&#xff08;PVID&#xff09; 原因一&#xff1a;pvid&#xff08;native vlan&#xff09;两端不一致——帧的…

操作系统——进程控制

创建进程 fork fork是一个系统调用函数&#xff0c;用来创建子进程&#xff0c;通过多个执行流完成任务。子进程和父进程共用一份代码&#xff0c;子进程数据使用写时拷贝&#xff0c;即子进程数据在创建的时候和父进程相同&#xff0c;但是当要修改数据的时候&#xff0c;子进…

软件项目管理期末复习题8-16章

第八章软件项目质量计划 一、填空题 1、&#xff08;审计&#xff09;是对过程或产品的一次独立质量评估。 2、质量成本包括预防成本和&#xff08;缺陷成本&#xff09;。 3、&#xff08;软件质量&#xff09;是软件满足明确说明或者隐含的需求的程度。 5、McCall质量模…

【C++】STL — vector的接口讲解 +详细模拟实现

前言: 本章我们将学习STL中另一个重要的类模板vector… vector是表示可变大小数组的序列容器。就像数组一样&#xff0c;vector也采用的连续存储空间来存储元素。但是又不像数组&#xff0c;它的大小是可以动态改变的本质讲&#xff0c;vector使用动态分配数组来存储它的元素v…

电脑缺失opencl.dll怎么办,轻松解决opencl.dll的多种方法分享

当我们在操作电脑过程中遇到系统提示“由于找不到opencl.dll&#xff0c;无法继续执行代码”&#xff0c;这个错误会导致软件应用无法正常运行。OpenCL.dll作为一个与Open Computing Language&#xff08;开放计算语言&#xff09;相关的动态链接库文件&#xff0c;它在执行需要…

基士得耶CP 6303c速印机不制版故障检修

故障&#xff1a;基士得耶CP 6303c经常提示版纸卡纸&#xff0c;重设版纸 版纸还没下滚筒&#xff0c;卡在版纸仓里面,手动滚动裁纸刀可以解决&#xff0c;但第二天又是这个毛病&#xff1b; 版纸定位传感器的灵敏度调节一下,然后给机器全面做个清洁大保养&#xff0c;尤其是传…

健康体检系统源码,体检中心、医院体检科管理系统,C/S架构,成熟稳定运行。支持预约管理、检查项目管理、结果录入、报告生成、数据分析

一套C/S架构的智慧健康体检管理系统源码&#xff0c;三级综合医院应用案例 体检系统是一种用于管理和记录个人或群体健康信息的软件系统。它通常包括预约管理、检查项目管理、结果录入、报告生成、数据分析等功能&#xff0c;旨在提高体检流程的效率和准确性&#xff0c;为医院…

高扬程水泵:专业设备,高效输送水源/恒峰智慧科技

在广袤无垠的森林中&#xff0c;每一棵树木都承载着生命的希望与自然的恩赐。然而&#xff0c;当森林遭遇火灾的威胁时&#xff0c;这些生机勃勃的生命便岌岌可危。此时&#xff0c;森林消防高扬程水泵便成为了守护森林安全的重要武器&#xff0c;以其专业性与高效性&#xff0…

第1章 信息系统综合知识 1.2 信息化

第1章 信息系统综合知识 1.2 信息化 1.2.1 信息的含义 信息化是推动经济社会发展转型的一个历史性过程。在这个过程中&#xff0c;综合利用各种信息技术&#xff0c;改造、支撑人类的各项 政治、经济、社会活动&#xff0c;并把贯穿于这些活动中的各种数据有效、可靠地进行管…

【2024版】最新6款漏洞扫描工具来了!(附下载)看完这一篇就够了

目录 一、Nessus 二、AWVS 三、ZAP 四、w3af 五、北极熊 六、御剑 七、网络安全学习路线 &#xff08;2024最新整理&#xff09; 八、学习资料的推荐 1.视频教程 2.SRC技术文档&PDF书籍 3.大厂面试题 特别声明&#xff1a; 渗透测试收集信息完成后&#xf…

修改表空间的状态

Oracle从入门到总裁:​​​​​​https://blog.csdn.net/weixin_67859959/article/details/135209645 表空间有4种状态:联机、脱机、只读和读写。修改其中某一种状态的语句如下所示 设置表空间 tspace 为联机状态。 SQL>ALTER TABLESPACE space ONLINE: 设置表空间 tspa…

房地产新楼盘营销短信群发

房地产新楼盘营销短信群发 1. 房地产市场竞争激烈&#xff0c;开发商为了能够快速推广新楼盘并吸引更多潜在买家的关注&#xff0c;采用房地产新楼盘营销群发已成为一种常见的营销手段。通过向大量的用户推广&#xff0c;开发商能够提高楼盘的知名度和曝光度&#xff0c;从而增…

(七)JSP教程——session对象

浏览器和Web服务器之间的交互通过HTTP协议来完成&#xff0c;HTTP协议是一种无状态的协议&#xff0c;服务器端无法保留浏览器每次与服务器的连接信息&#xff0c;无法判断每次连接的是否为同一客户端。为了让服务器端记住客户端的连接信息&#xff0c;可以使用session对象来记…