华为wlan实验-三层旁挂

配置如下:(照着敲或者粘贴复制,帮你能做出来!)

SW2:

sysname SW2

undo info-center enable

//没有报文,可选择不敲

vlan batch 2 10 20

interface GigabitEthernet0/0/1

port link-type trunk

port trunk pvid vlan 2

port trunk allow-pass vlan 2 10 20

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 10 20

SW3:

sysname SW3

undo info-center enable

//没有报文,可选择不敲

vlan batch 3 10 20

interface GigabitEthernet0/0/1

port link-type trunk

port trunk pvid vlan 3

port trunk allow-pass vlan 3 10 20

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 3 10 20

SW1:

sysname SW1

undo info-center enable

vlan batch 2 to 3 10 20 100

dhcp enable

interface Vlanif2

ip address 10.2.1.254 255.255.255.0

dhcp select relay

dhcp relay server-ip 10.100.1.1

interface Vlanif3

ip address 10.3.1.254 255.255.255.0

dhcp select relay

dhcp relay server-ip 10.100.1.1

interface Vlanif10

ip address 10.10.1.254 255.255.255.0

dhcp select interface

interface Vlanif20

ip address 10.20.1.254 255.255.255.0

dhcp select interface

interface Vlanif100

ip address 10.100.1.254 255.255.255.0

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 10 20

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 3 10 20

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 10 20 100

AC:

vlan batch 10 20 100

dhcp enable

ip pool vlan2

gateway-list 10.2.1.254

network 10.2.1.0 mask 255.255.255.0

option 43 sub-option 2 ip-address 10.100.1.1

ip pool vlan3

gateway-list 10.3.1.254

network 10.3.1.0 mask 255.255.255.0

option 43 sub-option 2 ip-address 10.100.1.1

interface Vlanif100

ip address 10.100.1.1 255.255.255.0

dhcp select global

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 20 100

ip route-static 0.0.0.0 0.0.0.0 10.100.1.254

capwap source interface vlanif100

Acwlan

AC-wlan-viewregulatory-domain-profile name cn

AC-wlan-regulate-domain-cncountry-code cn

//必须是CN

AC-wlan-viewap-group name test

AC-wlan-ap-group-testregulatory-domain-profile cn

//

ACcapwap source interface Vlanif 100

ap auth-mode mac-th//本次实验选择MAC认证方式,也可以选择其他的方式

ap-id 1 ap-mac 00e0-f52e-8910//这个地址是在AP上,使用dis int vl 1 便可查看到

ap-group test

ap-name ap1

ap-id 2 ap-mac 00e0-fc80-2451

ap-group test

ap-name ap2

//完成以上配置AP就可以上线,通过在AC上使用dis ap all命令查看

如果没有显示AP的IP,则通过重启AP来进行解决

security-profile name AB

security wpa2 psk pass-phrase huawei@123 aes

//密码huawei@123

ssid-profile name A

ssid A

ssid-profile name B

ssid B

///

vap-profile name A

forward-mode tunnel

//采用tunnel方式

service-vlan vlan-id 10

ssid-profile A

security-profile AB

vap-profile name B

service-vlan vlan-id 20

forward-mode direct-forward

//采用转发模式

ssid-profile B

security-profile AB

ap-group name test

vap-profile B wlan 2 radio all

vap-profile A wlan 1 radio all

ap-id 1

ap-name ap1

ap-group test

ap-di 2

ap-name ap2

ap-group test

我在CSDN上找了很多,但都是假的 总之缺少很多的关键命令,而我这个你照着敲,可以直接做出来,另外 我附带了一份实验拓扑,打开后,不需要做任何操作,静待2-3分钟,就行

相关推荐
瑞克-桑切斯3 小时前
7、MySQL 慢查询排查与优化实战指南
java·服务器·数据库
天远Date Lab4 小时前
零信任架构实战:基于天远租凭分期报告构建自动化汽车以租代购免押风控网关
网络·人工智能·架构·自动化
贾伟康5 小时前
HarmonyOS API 26 UKey PIN 授权门禁:状态查询、失败归因与资源闭环
华为·harmonyos
vibecode5 小时前
网站服务器失去响应怎么解决?我把连接超时和读超时这两段计时拆开跑了一遍
运维·服务器
工业一体机老司机6 小时前
Docker部署工控机采集服务 Compose编排与开机自启
运维·docker·容器
IT猿手6 小时前
实现NAPT、Easy-IP、NATserver、NATstatic
网络
迪康Defender7 小时前
终端供应链安全:应用白名单与软件正版化检测落地|终端安全治理实践
运维·服务器·网络·安全·web安全·自动化·运维开发
沫璃染墨7 小时前
从零入门计算机网络系列(十二):HTTP长连接与会话管理详解——从Connection到Cookie与Session
linux·服务器·c++·tcp/ip·ubuntu·http·交互
xiaoye-duck8 小时前
《C++ 项目:手写大模型接入 SDK》DeepSeek接口设计(下):流式响应实现和测试
开发语言·网络·c++·语言模型
其实防守也摸鱼9 小时前
信创安全竞赛知识总结与题库
大数据·网络·人工智能·算法·安全·php