IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 系统运维 -> WLAN网络配置,旁挂AC -> 正文阅读

[系统运维]WLAN网络配置,旁挂AC

一、拓扑图

?

二、组网需求:

用户希望能在尽可能少的更改现有组网架构的情况下,进行WLAN部署,AC只对AP进行集中管理,STA的业务数据不需要转发到AC上。

AC通过三层核心SWA连接出口防火墙,并通过SWA和SWB连接AP。通过WLAN部署,提供SSID为public和work的无线网络方便用户接入。SWA作为DHCP服务器为无线用户和AP提供IP地址。

三、规划表:

配置项数据
WLAN服务不认证,不加密
AC的源接口VLANIF200:172.16.100.2/24
AC Carrier ID/AC IDOther/1
AP域10
服务集

SSID:public、work

数据转发模式:直接转发

DHCP服务器SWA作为DHCP服务器,为AP和STA分配地址
AP的网关WLANIF100:192.168.10.1/24
AP的IP地址池192.168.10.2~192.168.10.254/24
STA1的网关

VLANIF101:192.168.11.1/24

STA1的IP地址池192.168.11.2~192.168.11.254/24
STA2的网关VLANIF102:192.168.12.1/24
STA2的IP地址池192.168.12.2~192.168.12.254/24

四、配置思路

采用如下的思路配置WLAN网络基本业务:

  1. 配置SWA和SWB,实现二层网络互通;配置SWA、FW、和AC,实现三层网络互通
  2. 在SWA上配置基于全局的DHCP服务器为AP和STA分配IP地址
  3. 配置WLAN基本业务,保证用户能够通过WLAN网络接入Internet

五、操作步骤

1、配置SWB

1、修改名字,添加vlan
<Huawei>system-view 
[Huawei]sysname SWB
[SWB]vlan  batch  100 101 102

2、将接口G0/0/1允许vlan100、vlan101、vlan102的报文通过
[SWB]interface  GigabitEthernet  0/0/1
[SWB-GigabitEthernet0/0/1]port link-type trunk
[SWB-GigabitEthernet0/0/1]port trunk allow-pass  vlan  100 to 102
[SWB-GigabitEthernet0/0/1]quit

3、将接口G0/0/2加入vlan10(AP管理vlan),允许vlan101(AP业务vlan)的报文通过
[SWB]interface  GigabitEthernet  0/0/2
[SWB-GigabitEthernet0/0/2]port link-type trunk
[SWB-GigabitEthernet0/0/2]port trunk pvid  vlan  100
[SWB-GigabitEthernet0/0/2]port trunk allow-pass  vlan  100 101
[SWB-GigabitEthernet0/0/2]port-isolate enable
[SWB-GigabitEthernet0/0/2]quit

4、将接口G0/0/3加入vlan100(AP管理vlan),允许vlan102(AP业务vlan)的报文通过
[SWB]interface  GigabitEthernet  0/0/3
[SWB-GigabitEthernet0/0/3]port link-type trunk	
[SWB-GigabitEthernet0/0/3]port trunk pvid  vlan  100
[SWB-GigabitEthernet0/0/3]port trunk  allow-pass  vlan  100 102
[SWB-GigabitEthernet0/0/3]port-isolate enable
[SWB-GigabitEthernet0/0/3]quit


#附-交换机版本
<SWB>display  version  
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.110 (S5700 V200R001C00)
Copyright (c) 2000-2011 HUAWEI TECH CO., LTD

Quidway S5700-28C-HI

2、配置SWA

1、修改名称,添加vlan
<Huawei>system-view 
[Huawei]sysname SWA
[SWA]vlan  batch  100 101 102 200 201

2、为AP和STA配置DHCP地址池
[SWA]dhcp enable
[SWA]ip pool ap
[SWA-ip-pool-ap]network 192.168.10.0 mask 24
[SWA-ip-pool-ap]gateway-list 192.168.10.1
[SWA-ip-pool-ap]option 43 sub-option 3 ascii 172.16.100.2
[SWA-ip-pool-ap]quit

[SWA]ip pool sta1
[SWA-ip-pool-sta1]network 192.168.11.0 mask 24
[SWA-ip-pool-sta1]gateway-list 192.168.11.1
[SWA-ip-pool-sta1]quit

[SWA]ip pool sta2
[SWA-ip-pool-sta2]network 192.168.12.0 mask 24
[SWA-ip-pool-sta2]gateway-list 192.168.12.1
[SWA-ip-pool-sta2]quit

3、配置vlanif IP地址,给AP和STA分配IP
[SWA]interface  Vlanif  100
[SWA-Vlanif100]ip address 192.168.10.1 24
[SWA-Vlanif100]dhcp select global	
[SWA-Vlanif100]quit

[SWA]interface  Vlanif  101
[SWA-Vlanif101]ip address  192.168.11.1 24	
[SWA-Vlanif101]dhcp select  global
[SWA-Vlanif101]quit 

[SWA]interface  Vlanif  102
[SWA-Vlanif102]ip address  192.168.12.1 24
[SWA-Vlanif102]dhcp select  global
[SWA-Vlanif102]quit

[SWA]interface  Vlanif  200
[SWA-Vlanif200]ip address  172.16.100.10 24
[SWA-Vlanif200]quit

[SWA]interface  Vlanif  201
[SWA-Vlanif201]ip address  172.16.101.10 24
[SWA-Vlanif201]quit 

4、配置接口
[SWA]interface  GigabitEthernet  0/0/1
[SWA-GigabitEthernet0/0/1]port link-type trunk
[SWA-GigabitEthernet0/0/1]port trunk allow-pass vlan  all
[SWA-GigabitEthernet0/0/1]quit

[SWA]interface GigabitEthernet  0/0/2
[SWA-GigabitEthernet0/0/2]port link-type trunk
[SWA-GigabitEthernet0/0/2]port trunk allow-pass vlan  200
[SWA-GigabitEthernet0/0/2]quit

[SWA]interface  GigabitEthernet  0/0/3
[SWA-GigabitEthernet0/0/3]port link-type access
[SWA-GigabitEthernet0/0/3]port default vlan 201
[SWA-GigabitEthernet0/0/3]quit

5、配置默认路由
[SWA]ip route-static 0.0.0.0 0.0.0.0 172.16.101.1



#附-交换机版本
[SWA]display  version  
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.110 (S5700 V200R001C00)
Copyright (c) 2000-2011 HUAWEI TECH CO., LTD

Quidway S5700-28C-HI

3、配置AC

1、配置AC连接SWA的接口G0/0/2允许vlan200的报文通过
<AC6605>system-view
[AC6605]vlan batch 101 102 200
[AC6605]interface  Vlanif  200
[AC6605-Vlanif200]ip address  172.16.100.2 24
[AC6605-Vlanif200]quit
[AC6605]interface  GigabitEthernet  0/0/2
[AC6605-GigabitEthernet0/0/2]port link-type trunk
[AC6605-GigabitEthernet0/0/2]port trunk allow-pass vlan 200
[AC6605-GigabitEthernet0/0/2]quit

2、配置AC到AP的路由,下一跳为SWA的vlanif200
[AC6605]ip route-static 192.168.10.0 24 172.16.100.10

3、配置AC的国家码
[AC6605]wlan ac-global country-code cn

4、配置AC ID和运营商标识
[AC6605]wlan ac-global ac id 1 carrier id other 

5、配置AC的源接口
[AC6605]wlan
[AC6605-wlan-view]wlan ac source interface  Vlanif  200

6、在AC上管理AP
#根据查询到的AP设备类型ID,离线添加AP。假设AP的类型为AP6010DN-AGN,其MAC地址分别为00E0-FCEC-66A0和00E0-FC07-60F0(ap-auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap-auth-mode mac-auth)
[AC6605-wlan-view]ap-auth-mode mac-auth
[AC6605-wlan-view]ap id 0 type-id 19 mac 00E0-FCEC-66A0	
[AC6605-wlan-ap-0]quit
[AC6605-wlan-view]ap id 1 type-id 19 mac 00E0-FC07-60F0
[AC6605-wlan-ap-1]quit

#配置AP域并将AP加入到AP域
[AC6605-wlan-view]ap-region id 10
[AC6605-wlan-ap-region-10]quit 
[AC6605-wlan-view]ap id 0
[AC6605-wlan-ap-0]region-id 10
[AC6605-wlan-ap-0]quit 
[AC6605-wlan-view]ap id 1
[AC6605-wlan-ap-1]region-id 10
[AC6605-wlan-ap-1]quit

#将AP上电后,可以查看到AP的“AP State”字段为“normal”
[AC6605-wlan-view]display  ap all 
  All AP information(Normal-2,UnNormal-0):
  ------------------------------------------------------------------------------
  AP    AP                    AP              Profile   AP              AP
                                              /Region
  ID    Type                  MAC             ID        State           Sysname
  ------------------------------------------------------------------------------
  0     AP6010DN-AGN          00e0-fcec-66a0    0/10    normal          ap-0
  1     AP6010DN-AGN          00e0-fc07-60f0    0/10    normal          ap-1
  ------------------------------------------------------------------------------
  Total number: 2

7、配置WLAN业务参数
#创建名为“wmm”的WMM模板,参数采用默认配置
[AC6605-wlan-view]wmm-profile name wmm id 1
[AC6605-wlan-wmm-prof-wmm]quit 

#创建名为“radio”的射频模板,绑定WMM模板“wmm”
[AC6605-wlan-view]radio-profile name radio id 1	
[AC6605-wlan-radio-prof-radio]wmm-profile name wmm
[AC6605-wlan-radio-prof-radio]quit
[AC6605-wlan-view]quit

#创建WLAN-ESS接口
[AC6605]interface  Wlan-Ess 0
[AC6605-Wlan-Ess0]port hybrid pvid vlan 101
[AC6605-Wlan-Ess0]port hybrid untagged vlan 101
[AC6605-Wlan-Ess0]quit 
[AC6605]interface Wlan-Ess 1
[AC6605-Wlan-Ess1]port hybrid pvid vlan  102
[AC6605-Wlan-Ess1]port hybrid untagged vlan  102
[AC6605-Wlan-Ess1]quit

#创建名为“security”的安全模板,参数采用默认配置,即开放认证,不加密
[AC6605]wlan 
[AC6605-wlan-view]security-profile name security id 1	
[AC6605-wlan-sec-prof-security]quit

#创建名为“traffic”的流量模板,参数采用默认配置
[AC6605-wlan-view]traffic-profile name traffic id 1
[AC6605-wlan-traffic-prof-traffic]quit

#创建名为"public"和“work”的服务集并绑定WLAN-ESS接口、安全模板和流量模板
[AC6605-wlan-view]service-set name public id 1
[AC6605-wlan-service-set-public]ssid public
[AC6605-wlan-service-set-public]wlan-ess 0
[AC6605-wlan-service-set-public]security-profile name security
[AC6605-wlan-service-set-public]traffic-profile name traffic
[AC6605-wlan-service-set-public]service-vlan 101
[AC6605-wlan-service-set-public]forward-mode direct
[AC6605-wlan-service-set-public]quit

[AC6605-wlan-view]service-set name work id 2	
[AC6605-wlan-service-set-work]ssid work
[AC6605-wlan-service-set-work]wlan-ess 1
[AC6605-wlan-service-set-work]security-profile name security
[AC6605-wlan-service-set-work]traffic-profile name traffic	
[AC6605-wlan-service-set-work]service-vlan 102
[AC6605-wlan-service-set-work]forward-mode direct
[AC6605-wlan-service-set-work]quit

8、配置VAP下发
#配置VAP
[AC6605-wlan-view]ap 0 radio 0
[AC6605-wlan-radio-0/0]radio-profile name radio
 Warning: Modify the Radio type may cause some parameters of Radio resume defaul
t value, are you sure to continue?[Y/N]:y
[AC6605-wlan-radio-0/0]service-set name public
[AC6605-wlan-radio-0/0]quit
	
[AC6605-wlan-view]ap 1 radio 0
[AC6605-wlan-radio-1/0]radio-profile name radio
 Warning: Modify the Radio type may cause some parameters of Radio resume defaul
t value, are you sure to continue?[Y/N]:y
[AC6605-wlan-radio-1/0]service-set name work
[AC6605-wlan-radio-1/0]quit

#提交配置
[AC6605-wlan-view]commit all 
  Warning: Committing configuration may cause service interruption,continue?[Y/N
]y

9、验证配置结果
配置完成后,通过display  vap ap  0 radio 0和display  vap ap  1 radio 0命令,可以查看到VAP已创建成功
[AC6605-wlan-view]display  vap ap  0 radio 0
  All VAP Information(Total-1):
  SS: Service-set     BP: Bridge-profile     MP: Mesh-profile           
  ----------------------------------------------------------------------
  AP ID  Radio ID  SS ID  BP ID  MP ID  WLAN ID  BSSID           Type   
  0      0         1      -      -      1        00E0-FCEC-66A0  service 
  ----------------------------------------------------------------------
  Total: 1
[AC6605-wlan-view]display vap ap 1 radio 0
  All VAP Information(Total-1):
  SS: Service-set     BP: Bridge-profile     MP: Mesh-profile           
  ----------------------------------------------------------------------
  AP ID  Radio ID  SS ID  BP ID  MP ID  WLAN ID  BSSID           Type   
  1      0         2      -      -      1        00E0-FC07-60F0  service 
  ----------------------------------------------------------------------
  Total: 1

STA搜索到名为“public”或"work"的无线网络并正常关联后,在AC上执行display  station assoc-info命令,可以查看到用户已经接入到无线网络“public”和“work”中
[AC6605-wlan-view]display  station assoc-info ap 0 radio 0
  ------------------------------------------------------------------------------
  STA MAC          AP-ID   RADIO-ID  SS-ID   SSID
  ------------------------------------------------------------------------------

  5489-9849-35f9   0       0         1        public
  ------------------------------------------------------------------------------
  Total stations: 1
[AC6605-wlan-view]display station assoc-info ap 1 radio 0
  ------------------------------------------------------------------------------
  STA MAC          AP-ID   RADIO-ID  SS-ID   SSID
  ------------------------------------------------------------------------------

  5489-9898-0f07   1       0         2        work
  ------------------------------------------------------------------------------
  Total stations: 1

#附-AC版本
<AC6605>display  version  
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AC6605 V200R003C00)
Copyright (C) 2011-2016 HUAWEI TECH CO., LTD
Huawei AC6605

?

?

?

4、简单配置防火墙

<USG6000V1>system-view 
[USG6000V1]interface GigabitEthernet  1/0/3
[USG6000V1-GigabitEthernet1/0/3]ip address  172.16.101.1 24
[USG6000V1-GigabitEthernet1/0/3]service-manage ping permit
[USG6000V1-GigabitEthernet1/0/3]quit

[USG6000V1]firewall zone  trust
[USG6000V1-zone-trust]add  interface  GigabitEthernet  1/0/3
[USG6000V1-zone-trust]quit

[USG6000V1]ip route-static 192.168.0.0 16 172.16.101.10

?

  系统运维 最新文章
配置小型公司网络WLAN基本业务(AC通过三层
如何在交付运维过程中建立风险底线意识,提
快速传输大文件,怎么通过网络传大文件给对
从游戏服务端角度分析移动同步(状态同步)
MySQL使用MyCat实现分库分表
如何用DWDM射频光纤技术实现200公里外的站点
国内顺畅下载k8s.gcr.io的镜像
自动化测试appium
ctfshow ssrf
Linux操作系统学习之实用指令(Centos7/8均
上一篇文章      下一篇文章      查看所有文章
加:2022-05-08 08:30:52  更:2022-05-08 08:32:51 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/15 18:27:55-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码