• 华为模拟器 AP AC配置


    组网示意图:

    前提条件:1)所有设备工作正常2)依据上述组网建立测试环境

    1)正确配置AC使AP发放SSID:'SSID-Temp1'、'SSID-Temp2'和'SSID-Temp3',且对应业务vlan为:vlan-1,vlan-2,vlan-3;

    配置Switch

    [Switch]vlan batch 100 101 102 103

    [Switch]interface GigabitEthernet0/0/1

    [Switch-GigabitEthernet0/0/1]description Link-to-AP

    [Switch-GigabitEthernet0/0/1]port link-type trunk

    [Switch-GigabitEthernet0/0/1]port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101 102 103

    [Switch-GigabitEthernet0/0/1]quit

    [Switch]interface GigabitEthernet0/0/2

    [Switch-GigabitEthernet0/0/2]description Link-to-AC

    [Switch-GigabitEthernet0/0/2]port link-type trunk

    [Switch-GigabitEthernet0/0/2]port trunk allow-pass vlan 100 101 102 103

    [Switch-GigabitEthernet0/0/2]quit

    配置AC

    1.配置接口和VLAN信息,AC为DHCP Server,为AP和client分配地址

    [AC]vlan batch 100 101 102 103

    [AC]interface GigabitEthernet0/0/1

    [AC-GigabitEthernet0/0/1]description Link-to-SW

    [AC-GigabitEthernet0/0/1]port link-type trunk

    [AC-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101 102 103

    [AC-GigabitEthernet0/0/1]quit

    [AC]dhcp enable

    [AC]interface vlanif 100

    [AC -Vlanif100]description for-ap

    [AC -Vlanif100]ip address 192.168.100.1 24

    [AC -Vlanif100]dhcp select interface

    [AC-Vlanif100]quit

    [AC]interface vlanif 101

    [AC -Vlanif101]description for-STA

    [AC -Vlanif101]ip address 192.168.101.1 24

    [AC -Vlanif101]dhcp select interface

    [ACVlanif101]quit

    [AC]interface vlanif 102

    [AC -Vlanif102]description for-STA

    [AC -Vlanif102]ip address 192.168.102.1 24

    [AC -Vlanif102]dhcp select interface

    [ACVlanif102]quit

    [AC]interface vlanif 103

    [AC -Vlanif103]description for-STA

    [AC -Vlanif103]ip address 192.168.103.1 24

    [AC -Vlanif103]dhcp select interface

    [ACVlanif103]quit

    2. 配置AC WLAN基础配置

    AC]wlan ac-global ac id 1 carrier id other

    [AC]wlan ac-global country-code CN

    [AC]wlan

    [AC -wlan-view]wlan ac source interface Vlanif 100

    [AC-wlan-view]ap-auth-mode no-auth

    3.配置AC WLAN 业务参数

    #创建wlan-ess接口

    [AC]interface Wlan-Ess 0

    [AC-Wlan-Ess0]port hybrid pvid vlan 101

    [AC-Wlan-Ess0]port hybrid untagged vlan 101

    [AC-Wlan-Ess0]quit

    [AC]interface Wlan-Ess 1

    [AC -Wlan-Ess1]port hybrid pvid vlan 102

    [AC -Wlan-Ess1]port hybrid untagged vlan 102

    [AC -Wlan-Ess1]quit

    [AC]interface Wlan-Ess 2

    [AC -Wlan-Ess2]port hybrid pvid vlan 103

    [AC-Wlan-Ess2]port hybrid untagged vlan 103

    [AC-Wlan-Ess2]quit

    #创建WMM模板,采用默认参数

    [AC-wlan-view]wmm-profile name wmm-profile-0

    [AC -wlan-wmm-prof-wmm-profile-0]quit

    #创建安全模板,采用默认参数

    [AC-wlan-view]security-profile name security-profile-0

    [AC-wlan-sec-prof-security-profile-0]quit

    #创建流量模板,采用默认参数

    [AC-wlan-view]traffic-profile name traffic-profile-0

    [AC-wlan-traffic-prof-traffic-profile-0]quit

    #创建服务集并绑定WLAN-ESS接口、安全模板和流量模板

    [AC-wlan-view]service-set name service-set-0

    [AC-wlan-service-set-service-set-0]ssid SSID-Temp1

    [AC-wlan-service-set-service-set-0]wlan-ess 0

    [AC-wlan-service-set-service-set-0]service-vlan 101

    [AC-wlan-service-set-service-set-0]security-profile name security-profile-0

    [AC-wlan-service-set-service-set-0]traffic-profile name traffic-profile-0

    [AC-wlan-view]service-set name service-set-1

    [AC-wlan-service-set-service-set-1]ssid SSID-Temp2

    [AC-wlan-service-set-service-set-1]wlan-ess 1

    [AC-wlan-service-set-service-set-1]service-vlan 102

    [AC-wlan-service-set-service-set-1]security-profile name security-profile-0

    [AC-wlan-service-set-service-set-1]traffic-profile name traffic-profile-0

    [AC-wlan-view]service-set name service-set-2

    [AC-wlan-service-set-service-set-2]ssid SSID-Temp3

    [AC-wlan-service-set-service-set-2]wlan-ess 2

    [AC-wlan-service-set-service-set-2]service-vlan 102

    [AC-wlan-service-set-service-set-2]security-profile name security-profile-0

    [AC-wlan-service-set-service-set-2]traffic-profile name traffic-profile-0

    #创建射频模板,并绑定WMM模板

    [AC-wlan-view]radio-profile name radio-profile-0

    [AC-wlan-radio-prof-radio-profile-0]wmm-profile name wmm-profile-0

    [AC-wlan-radio-prof-radio-profile-0]quit

    #配置VAP并下发

    [AC-wlan-view]ap 0 radio 0

    [AC-wlan-radio-0/0]radio-profile name radio-profile-0

    [AC-wlan-radio-0/0]service-set name service-set-0

    [AC-wlan-radio-0/0]service-set name service-set-1

    [AC-wlan-radio-0/0]service-set name service-set-2

    [AC-wlan-radio-0/0]quit

    [AC-wlan-view]commit ap 0

    2)查看STA可用的无线网络,有预期结果1;

    3)STA1、STA2和STA3分别关联'SSID-Temp1'、'SSID-Temp2'和'SSID-Temp3',并进行ping 网关测试,有预期结果2。

  • 相关阅读:
    MindMup 是一个开源的、在线的、简单的思维导图工具
    那些年我们用过的Python代码
    我心目中要求不高的理想团队
    与雨林再辩科学、宗教和道
    MySQL(一) 数据表数据库的基本操作
    hibernate(六) cascade(级联)和inverse关系详解
    java虚拟机内存区域的划分以及作用详解
    MySQL(二) 数据库数据类型详解
    MySQL(三) 数据库表的查询操作【重要】
    MySQL(四) 数据表的插入、更新、删除数据
  • 原文地址:https://www.cnblogs.com/lzkalislw/p/14705951.html
Copyright © 2020-2023  润新知