华为设备-企业网络的无线网络部署

实验需求:

   所有的无线终端,连接wifi,实现互通

实验思路:

1.确保AP获得IP地址 [vlan100]

2.确保AP注册到AC上

3.正确配置AC,确保AP可以产生无线信号

4.确保“无线终端”正确连接 wifi 信号,并获得IP地址

5.测试“无线终端”之间的连通性

----------------------------------------------------------------

分解任务1:确保AP动态获取IP地址(vlan 100)

分析:

1.SW1连接AP的端口,必须同时接收多个VLAN的数据(vlan101/102/103/104/100)

所以SW1的口是 trunk

命令:

port-group group-member gi0/0/1 to gi0/0/4

port link-type trunk

port trunk allow-pass vlan all

quit

2.AP本身发送出来的 DHCP 报文,通过 Gi0/0/0发出。但是这个口在 AP 上默认的

模式是 hybrid,并且PVID是1。所以该端口发送出来的DHCP报文是不带标签

3.SW1从 Gi0/0/1接收到AP1发送过来的数据,因为没有标签,所以需要使用Gi0/0/2

的 PVID 表示的 VLAN 给报文添加1个标签。(默认是vlan1)

但是,项目要求 AP 属于 vlan 100,即 AP 自动获取的IP地址,也得属于 vlan 100

所以,必须要求让 SW1 将收到的从 AP-1 学习过来的 DHCP 报文,归属到VLAN 100

所以,我们应你该修改SW1连接AP时,所使用的那些端口的 PVID 为 100 。

命令:

SW1:

vlan 100

quit

port-group group-member gi0/0/1 to gi0/0/4

port trunk pvid vlan 100

quit

4.因为整个项目中的所有的 VLAN 的网关IP地址都在 SW2 上,

所以SW1需要将终端用户的VLAN数据,以及 AP 本身发送的数据,传送给 SW2 。

所以SW1与SW2之间的链路,必须是 Trunk,允许所有 VLAN

命令:

SW1:

interface gi0/0/5

port link-type trunk

port trunk allow-pass vlan all

quit

5.因为 AP 属于 VLAN100 ,但是 DHCP 服务器属于 VLAN 210 。

所以我们需要为 AP 配置 DHCP 中继(网关),所以我们在SW2上配置 vlan100

的网关接口IP地址以及将其配置为中继。

命令:

SW2:

interface gi0/0/1

port link-type trunk

port trunk allow-pass vlan all

quit

vlan 100

quit

interface vlanif 100

ip address 192.168.100.254 24

quit

dhcp enable

interface vlanif 100

dhcp select relay

dhcp relay server-ip  192.168.210.1

quit

6.配置 DHCP 服务器 ,创建属于 VLAN100 的地址池

命令:

DHCP-Server:

undo terminal monitor

system-view

sysname DHCP-Server

interface gi0/0/0

ip address 192.168.210.1 24

quit

dhcp enable

ip pool VLAN100

network 192.168.100.0  mask 24

gateway-list 192.168.100.254

quit

interface gi0/0/0

dhcp select global

quit

7.配置 VLAN210和DHCP服务器的路由,确保 VLAN 100 的中继与 DHCP服务器互通    

SW2:

vlan 210

quit

interface gi0/0/10

port link-type access

port default vlan 210

quit

interface vlanif 210

ip address 192.168.210.254 24

quit

DHCP-Server:

ip route-static  192.168.100.0  24  192.168.210.254

-----------------------------------------------------------------

分解任务2.确保AP注册到AC上

1.确保 AP 知道 AC 服务器的IP地址

此时,我们可以通过 DHCP 服务器,为每个 AP 自动下发 AC 服务器的IP地址

命令:

DHCP-Server:

ip  pool VLAN100

option 43 sub-option 3 ascii 192.168.200.2  //AC服务器的IP地址

2.确保 AP 到 AC 的路由是互通的

-配置SW2为 AC 的网关

vlan 200

quit

interface gi0/0/11

port link-type access

port default vlan 200

quit

interface vlanif 200

ip address 192.168.200.1  24

quit

-配置 AC 的接口IP地址

vlan 200

quit

interface gi0/0/11

port link-type access

port default vlan 200

quit

interface vlanif 200

ip address 192.168.200.2 24

quit

ip route-static  192.168.100.0  24  192.168.200.1

3.确保 AC 上提前添加好了 AP 的相关信息

#创建 AP-group,为的是后期对大量AP进行批量管理

[AC6605-wlan-view]ap-group name wailai

[AC6605-wlan-ap-group-wailai]quit

[AC6605-wlan-view]ap-group name neibu

[AC6605-wlan-ap-group-neibu]quit

#创建 “域配置文件”,指定的是 AP 所使用的是哪个国家的无线频率范围;

[AC6605-wlan-view]regulatory-domain-profile name China

[AC6605-wlan-regulate-domain-China]country-code CN

[AC6605-wlan-regulate-domain-China]quit

#将配置好的“域配置文件”关联到每一个 ap-group ;

[AC6605-wlan-view]ap-group name wailai

[AC6605-wlan-ap-group-wailai]regulatory-domain-profile China

Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:Y

[AC6605-wlan-ap-group-wailai]quit

[AC6605-wlan-view]ap-group name neibu

[AC6605-wlan-ap-group-neibu]regulatory-domain-profile China

Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:Y

[AC6605-wlan-ap-group-neibu]quit

#在 AC 上手动添加 ap (基于MAC地址进行注册)

[AC6605-wlan-view]ap-id 1 ap-mac 00e0-fcb6-4850  [是要自己查看的]

[AC6605-wlan-ap-1]ap-name wailai-1   [为了区分设备上的多个ap,取的名字]

[AC6605-wlan-ap-1]ap-group wailai    [为ap指定所加入的 ap-group]

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 continue? [Y/N]:y

[AC6605-wlan-ap-1]quit

[AC6605-wlan-view]ap-id 2 ap-mac 00e0-fcee-0670

[AC6605-wlan-ap-2]ap-name wailai-2

[AC6605-wlan-ap-2]ap-group wailai

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 continue? [Y/N]:y

[AC6605-wlan-ap-2]quit

[AC6605-wlan-view]ap-id 3 ap-mac 00e0-fc44-6910

[AC6605-wlan-ap-3]ap-name neibu-1

[AC6605-wlan-ap-3]ap-group neibu

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 continue? [Y/N]:y

[AC6605-wlan-ap-3]quit

[AC6605-wlan-view]ap-id  4 ap-mac 00e0-fcc9-22f0

[AC6605-wlan-ap-4]ap-name neibu-2

[AC6605-wlan-ap-4]ap-group neibu

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 continue? [Y/N]:y

[AC6605-wlan-ap-4]quit

#最为关键:指定 AC 上用于和 AP 通信时所使用的IP地址

[AC6605]capwap  source  interface vlanif 200

注意:

capwap 是 AP 与 AC 之间的“注册协议” 。

此时,我们在 AC 上查看每个 AP 的状态(正常应该是 nor [normal-正常])

<AC6605>display  ap all

Info: This operation may take a few seconds. Please wait for amoment.done.

Total AP information:

nor  : normal          [4]

--------------------------------------------------------------------------

ID   MAC           Name     Group   IP            Type   State STA Uptime

--------------------------------------------------------------------------

1   00e0-fcb6-4850 wailai-1 wailai 192.168.100.252 AP5030DN nor 0 5M:7S

2   00e0-fcee-0670 wailai-2 wailai 192.168.100.250 AP5030DN nor 0 5M:3S

3   00e0-fc44-6910 neibu-1  neibu  192.168.100.251 AP5030DN nor 0 5M:4S

4   00e0-fcc9-22f0 neibu-2  neibu  192.168.100.253 AP5030DN nor 0 5M:1S

--------------------------------------------------------------------------

Total: 4

-------------------------------------------------------------------------

分解任务3:AP可以产生无线信号

#在AC的系统视图下,配置 vlan pool ,用于为无线客户端提供 vlan

[AC6605]vlan pool wailai

[AC6605-vlan-pool-wailai]vlan 101 102

[AC6605-vlan-pool-wailai]quit

[AC6605]vlan pool neibu

[AC6605-vlan-pool-neibu]vlan 103 104

[AC6605-vlan-pool-neibu]quit

#在 AC 的 WLAN 视图下,配置 wifi 的业务参数

-配置为外来人员使用的 wifi 的密码

[AC6605]wlan

[AC6605-wlan-view]security-profile name wailai

[AC6605-wlan-sec-prof-wailai]security wpa2 psk pass-phrase a123456789 aes

[AC6605-wlan-sec-prof-wailai]quit

[AC6605-wlan-view]

-配置为内部人员使用的 wifi 的密码

[AC6605-wlan-view]security-profile name neibu

[AC6605-wlan-sec-prof-neibu]security  wpa2 psk pass-phrase b123456789 aes

[AC6605-wlan-sec-prof-neibu]quit

[AC6605-wlan-view]

-配置为外部人员使用的 wifi 的名字

[AC6605-wlan-view]ssid-profile name wailai

[AC6605-wlan-ssid-prof-wailai]ssid wailai

[AC6605-wlan-ssid-prof-wailai]quit

-配置为外部人员使用的 wifi 的名字

[AC6605-wlan-view]ssid-profile name neibu

[AC6605-wlan-ssid-prof-neibu]ssid neibu

[AC6605-wlan-ssid-prof-neibu]quit

-将配置好的密码、wifi 名字、vlan池,配置到 AP 的“虚拟配置文件”中;

[AC6605-wlan-view]vap-profile name wailai

[AC6605-wlan-vap-prof-wailai]security-profile wailai

[AC6605-wlan-vap-prof-wailai]ssid-profile wailai

[AC6605-wlan-vap-prof-wailai]service-vlan vlan-pool wailai

[AC6605-wlan-vap-prof-wailai]quit

-将配置好的密码、wifi 名字、vlan池,配置到 AP 的“虚拟配置文件”中;

[AC6605-wlan-view]vap-profile name neibu

[AC6605-wlan-vap-prof-neibu]security-profile neibu

[AC6605-wlan-vap-prof-neibu]ssid-profile neibu

[AC6605-wlan-vap-prof-neibu]service-vlan vlan-pool neibu

[AC6605-wlan-vap-prof-neibu]quit

[AC6605-wlan-view]

-将为AP配置的“虚拟配置文件”,关联到 ap-group,下发到该ap-group的每一个AP

[AC6605-wlan-view]ap-group name wailai

[AC6605-wlan-ap-group-wailai]vap-profile wailai wlan 1 radio  0

[AC6605-wlan-ap-group-wailai]vap-profile wailai wlan 1 radio  1

-将为AP配置的“虚拟配置文件”,关联到 ap-group,下发到该ap-group的每一个AP

[AC6605-wlan-view]ap-group name neibu

[AC6605-wlan-ap-group-neibu]vap-profile neibu wlan 1 radio 0

[AC6605-wlan-ap-group-neibu]vap-profile neibu wlan 1 radio 1

[AC6605-wlan-ap-group-neibu]

到此为止,每个AP就都可以散发出无线信号

华为设备的AP与AC的配置相关推荐

  1. 华为ENSP中AP与AC的配置

    配置企业无线网络阶段一:让AP获得IP地址 1.配置交换机 [sw1]vlan 100 [sw1]port-group group-member g0/0/1 to g0/0/5 [sw1-port- ...

  2. ac ap方案 华为_华为无线_AC+AP小型无线网络配置实验_v1

    [如果在实验中有什么疑问,欢迎关注微信公众号"IT后院"给我留言,我会抽空回答你的问题] 华为无线-AC+AP小型无线网络配置实验_v1 网络结构图: 步骤一:配置网络连通性 SW ...

  3. 华为 无线AP与AC详细配置 你学废了吗?

    文章目录 一.拓扑 二.基础配置 三.分析 四.AP 概述 一.拓扑 二.基础配置 LSW1 [LSW1]interface GigabitEthernet 0/0/1 [LSW1-GigabitEt ...

  4. 华为无线_AC+AP小型无线网络配置实验_v1

    允许转载,但必须注明出版处与原文链接,否则追究其法律责任,谢谢合作! (原文博客:https://blog.51cto.com/11179786) 华为无线-AC+AP小型无线网络配置实验_v1 网络 ...

  5. 【基础】华为设备默认路由和静态路由配置实战

    1.             实验拓扑 使用ENSP模拟器(版本V100R002C00 1.2.00.350)                             2.             实 ...

  6. 华为设备流量抑制及风暴控制配置命令

    [Huawei-GigabitEthernet0/0/1]broadcast-suppression 10 //配置接口流量抑制 [Huawei-GigabitEthernet0/0/1]multic ...

  7. 华为设备远程登录(Telnet、SSH)配置

    一.Telnet登录配置 一台交换机能够通过Telnet登录的条件是: 交换机已经配置了IP地址: 交换机已经配置了远程登录密码: 交换机已经配置了特权密码: 交换机已经接入网络并开始工作: 这时,我 ...

  8. 华为设备Smart Link和Monitor Link配置命令

    [Huawei]smart-link group 1 //进入Smart Link组视图 [Huawei-smlk-group1]protected-vlan reference-instance 0 ...

  9. 华为设备静态组播MAC地址配置命令

    [Huawei-vlan10]l2-multicast forwarding-mode mac //配置VLAN内组播数据转发模式为MAC [Huawei-GigabitEthernet0/0/1]m ...

最新文章

  1. Swift的类,及存储属性,计算发发样码
  2. 装完Windows 7后开启硬盘AHCI模式的方法
  3. c语言vi运行编译文件,VC++6.0中如何编译运行及调试C语言程序文件.docx
  4. P4336-[SHOI2016]黑暗前的幻想乡【矩阵树定理,容斥】
  5. c语言猴子选大王指针,C语言描述怎么用循环队列实现猴子选大王
  6. python 升级服务器_开发服务器之升级到Python2.7
  7. 里计算两个数的总和_发动机排量怎样计算?懂这个的修理工真嘀很少!
  8. main(int argc,char *argv[ ],char *env)参数详解
  9. ubuntu下使用vi退出终端出现乱码的解决方案
  10. 微信页面设计 小总结
  11. python学习笔记(14)参数对应
  12. I/O重定向的原理和实现
  13. linux下获取程序所在目录绝对路径
  14. SparkStreaming自定义Receiver
  15. 防火墙 | 网络协议
  16. ios 程序中安装 描述文件
  17. VBA:单元格的引用
  18. 机器学习入门(二)数据分析处理库pandas
  19. ESLint Prettier
  20. Android之Wifi使用

热门文章

  1. AQS acquire(int arg) 深度解析
  2. 【功能安全】【AutoSAR】程序流监控机制
  3. 爬虫实战(1)————百度首页爬取
  4. Qt Phonon介绍及安装
  5. 【oracle】创建用户(指定表空间)、删除用户
  6. 用Easyui写一个银行个人存款计算器(纯前端页面)
  7. LE AUDIO介绍
  8. hdfs 目录设置配额 、查询配额使用情况 、清除配额
  9. 向量空间中各类距离的意义
  10. win10php开发,win10php开发环境搭建