【网工】华为配置专题进阶篇⑤

目录

■无线WLAN配置

需求

实验



■无线WLAN配置

需求

1、配置隧道转发模式,完成AP上线,内部办公用户(VLAN101)能通过无线上网。

2、访客(VLAN102)能通过无线上网,配置为直接转发模式。隧道转发与直接转发过程如下图所示:

3、管理VLAN100,业务VAN101和102,VLAN101为内部用户提供上网服务(SSID:work),VLAN 102为访客提供上网服务(SSTD:guest)。AP通过AC DHCP自动获取 IP 192.168.100.0/24地址段的地址,用户通过SW1 DHCP自动分配对应网段的地址。

实验

SW1

<Huawei>system-view

Huawei\]****sysname**** SW1 \[SW1\]****vlan batch**** 101 102 200 \[SW1\]****interface**** Gigabitethernet 0/0/3 \[SW1-GigabitEthernet0/0/3\] ****port link-type access**** \[SW1-GigabitEthernet0/0/3\] ****port default vlan 200**** \[SW1-GigabitEthernet0/0/3\]quit \[SW1\]****interface**** GigabitEthernet 0/0/2 \[SW1-GigabitEthernet0/0/2\] ****port link-type trunk**** \[SW1-G1gabitEthernet0/0/2\]****port trunk allow-pass vlan all**** \[SW1-G1gabitEthernet0/0/2\]****quit**** \[SW1\]****interface**** GigabitEthernet 0/0/1 \[SW1-GigabitEthernet0/0/1\]****port link-type trunk**** \[SW1-GigabitEthernet0/0/1\]****port trunk allow-pass vlan 100**** \[SW1-Gigabitethernet0/0/1\]quit \[SW1\]dhcp enable \[SW1\]****interface**** vlanif 101 \[SW1-vlanif101\]ip add 192.168.101.254 24 \[SW1-vlanif101\]quit \[SW1\]****interface**** vlanif 102 \[SW1-vlanif102\]ip add 192.168.102.254 24 \[SW1-vlanif102\]quit \[SW1\]****interface**** vlanif 200 \[SW1-vlanif200\]ip add 192.168.200.1 30 \[SW1-vlanif200\]quit \[SW1\]dhcp enable \[SW1\]interface vlanif 101 \[SW1-vlanif101\]****dhcp select interface**** \[SW1-vlanif101\]quit \[SW1\]interface vlanif 102 \[SW1-vlanif102\]****dhcp select interface**** \[SW1-vlanif102\]quit \[SW1

SW1\]vlan 100 \[SW1-vlan100\]quit \[SW1\]interface g0/0/1 \[SW1-GigabitEthernet0/0/1\]port trunk allow-pass vlan 102 100 \[SW1-GigabitEthernet0/0/1\]quit \[SW1

Router

<Huawei>system-view

Huawei\]****sysname**** Router \[Router\]****interface**** GigabitEthernet 0/0/0 \[Router-GigabitEthernet0/0/0\]****ip add**** 192.168.200.2 30 \[Router-GigabitEthernet0/0/0\]****quit**** \[Router\]ip route-static 192.168.101.0 24 192.168.200.1 \[Router\]ip route-static 192.168.102.0 24 192.168.200.1

SW2

<Huawei>system-view

Huawei\]****sysname**** SW2 \[SW2\]vlan 100 \[SW2-vlan100\]quit \[SW2\]****interface**** GigabitEthernet 0/0/3 \[SW2-GigabitEthernet0/0/3\]port link-type trunk \[SW2-GigabitEthernet0/0/3\]port trunk allow-pass vlan 100 \[SW2-GigabitEthernet0/0/3\]quit \[SW2\]****interface**** GigabitEthernet 0/0/1 \[SW2-GigabitEthernet0/0/1\]port link-type trunk \[SW2-GigabitEthernet0/0/1\]port trunk allow-pass vlan 100 \[SW2-GigabitEthernet0/0/1\]port trunk pvid vlan 100 \[SW2-GigabitEthernet0/0/1\]quit \[SW2

SW2\]vlan 102 \[SW2-vlan102\]quit \[SW2\]interface g0/0/1 \[SW2-GigabitEthernet0/0/1\]port trunk allow-pass vlan 100 102 \[SW2-GigabitEthernet0/0/1\]int g0/0/3 \[SW2-GigabitEthernet0/0/3\]port trunk allow-pass vlan 100 102 \[SW2-GigabitEthernet0/0/3\]quit \[SW2

AC6605

<Huawei>system-view

Huawei\]sysname AC6605 \[AC6605\]vlan batch 100 101 102 \[AC6605\]****interface**** GigabitEthernet 0/0/1 \[AC6605-GigabitEthernet0/0/1\]port link-type trunk \[AC6605-GigabitEthernet0/0/1\]port trunk allow-pass vlan all \[AC6605-GigabitEthernet0/0/1\]quit \[AC6605\]interface vlanif 100 \[AC6605-vlanif100\]ip add 192.168.100.254 24 \[AC6605-vlanif100\]quit \[AC6605\]dhcp enable \[AC6605\]interface vlanif 100 \[AC6605-vlanif100\]dhcp select interface \[AC6605-vlanif100\]quit \[AC6605\]wlan \[AC6605-wlan-view\]regulatory-domain-profile name china \[AC6605-wlan-regulate-domain-china\]country-code CN \[AC6605-wlan-regulate-domain-china\]quit \[AC6605-wlan-view\]ap-group name jiaoxue \[AC6605-wlan-ap-group-jiaoxue\]regulatory-domain-profile china \[AC6605-wlan-ap-group-jiaoxue\]quit \[AC6605-wlan-view\]quit \[AC6605\]capwap source interface vlanif 100 \[AC6605\]wlan \[AC6605-wlan-view\]ap auth-mode mac-auth \[AC6605-wlan-view\]ap-id 1 ap-mac 00e0-fc3f-7500 \[AC6605-wlan-ap-1\]ap-name JX001 \[AC6605-wlan-ap-1\]ap-group jiaoxue \[AC6605-wlan-ap-1\]****quit**** \[AC6605-wlan-view\]****quit**** \[AC6605\]****display ap all****

进行[SW1]vlan 100操作后。

AC6605\]****display ap all****

AC6605\]wlan \[AC6605-wlan-view\]security-profile name sec_work \[AC6605-wlan-sec-prof-sec_work\]****security wpa-wpa2 psk pass-phrase a1234567 aes**** \[AC6605-wlan-sec-prof-sec_work\]quit \[AC6605-wlan-view\]quit # 配置SSID \[AC6605\]wlan \[AC6605-wlan-view\]****ssid-profile**** name profile_work \[AC6605-wlan-ssid-prof-profile_work\]****ssid**** work \[AC6605-wlan-ssid-prof-profile_work\]quit \[AC6605-wlan-view\]vap-profile name vap_work \[AC6605-wlan-vap-prof-vap_work\]ssid-profile profile_work \[AC6605-wlan-vap-prof-vap_work\]****forward-mode**** ****tunnel**** \[AC6605-wlan-vap-prof-vap_work\]service-vlan vlan-id 101 \[AC6605-wlan-vap-prof-vap_work\]security-profile sec_work \[AC6605-wlan-vap-prof-vap_work\]quit \[AC6605-wlan-view\]ap-group name jiaoxue \[AC6605-wlan-ap-group-jiaoxue\]****vap-profile vap_work wlan 1 radio 0**** \[AC6605-wlan-ap-group-jiaoxue\]quit \[AC6605-wlan-view\]quit # 访客 \[AC6605\]wlan \[AC6605-wlan-view\]ssid-profile name profile_guest \[AC6605-wlan-ssid-prof-profile_guest\]ssid guest \[AC6605-wlan-ssid-prof-profile_guest\]quit \[AC6605-wlan-view\]vap-profile name vap_guest \[AC6605-wlan-vap-prof-vap_guest\]****forward-mode**** ****direct-forward**** \[AC6605-wlan-vap-prof-vap_guest\]service-vlan vlan-id 102 \[AC6605-wlan-vap-prof-vap_guest\]security-profile sec_work \[AC6605-wlan-vap-prof-vap_guest\]ssid-profile profile_guest \[AC6605-wlan-vap-prof-vap_guest\]quit \[AC6605-wlan-view\]ap-group name jiaoxue \[AC6605-wlan-ap-group-jiaoxue\]****vap-profile vap_guest wlan 2 radio all****

至此,本文分享的内容就结束了。

相关推荐
zz-zjx2 小时前
LVS三种模式及调度算法解析
网络·lvs
百锦再4 小时前
第11章 泛型、trait与生命周期
android·网络·人工智能·python·golang·rust·go
濊繵5 小时前
Linux网络-Socket 编程 UDP
linux·网络·udp
00后程序员张9 小时前
HTTP抓包工具推荐,Fiddler配置方法、代理设置与使用教程详解(开发者必学网络调试技巧)
网络·http·ios·小程序·fiddler·uni-app·webview
竹君子13 小时前
研发管理知识库(4)华为研发管理流程简介
华为
24zhgjx-fuhao15 小时前
HTTP的配置
网络·网络协议·http
安卓开发者16 小时前
第14讲:HTTP网络请求 - Dio库的使用与封装
网络·网络协议·http
报错小能手16 小时前
计算机网络自顶向下方法33——网络层 路由器工作原理 输入端口处理和基于目的地转发 交换 输出端口处理
网络·计算机网络·智能路由器
scd020816 小时前
11.10dns作业
运维·服务器·网络
爱笑的眼睛1117 小时前
HarmonyOS列表项滑动操作深度解析:从基础实现到高级交互
华为·harmonyos