组网需求:

如图1所示,AC直接与AP连接。企业分支机构为了保证工作人员可以随时随地的访问公司网络,需要通过部署WLAN基本业务实现移动办公。

具体要求如下:

  • 提供名为“test”的无线网络。

  • 工作人员分配到的IP地址网段为192.168.11.0/24。

image.png


                                                  图1  小型网络WLAN基本业务组网图 

配置思路:

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

  1. 配置AP和AC,实现二层互通。

  2. 在AC上配置基于接口的DHCP服务器为STA和AP分配IP地址。

  3. 配置AC的系统参数,包括国家码、AC ID、运营商标识和AC与AP之间通信的源接口。

  4. 配置AP上线的认证方式,并把AP加入AP域中,实现AP正常工作。

  5. 配置VAP,下发WLAN业务,实现STA访问WLAN网络。

    1. 配置AP对应的WMM模板、射频模板,使用WMM模板和射频模板的默认配置,并在射频模板下绑定WMM模板,实现STA与AP之间的无线通信参数配置。

    2. 配置WLAN-ESS接口,实现无线侧报文到达AC后能够送至WLAN业务处理模块处理。

    3. 配置AP对应的安全模板、流量模板,使用安全模板和流量模板的缺省配置,配置服务集并在服务集下绑定WLAN-ESS接口、安全模板、流量模板,实现STA接入网络安全策略及QoS控制。

    4. 配置VAP并下发,实现STA能够通过WLAN网络访问Internet。

配置步骤:

1. 配置AP与AC之间网络互通

# 将接口Eth2/0/0加入VLAN100(管理VLAN)和VLAN101(业务VLAN)。

说明:

建议在AC连接AP的接口Eth2/0/0上配置端口隔离,如果不配置端口隔离,可能会在VLAN内存在不必要的广播报文,或者导致不同AP间的WLAN用户二层互通的问题。

<Huawei> system-view
[Huawei] sysname AC
[AC] vlan batch 100 101
[AC] interface ethernet 2/0/0
[AC-Ethernet2/0/0] port link-type trunk
[AC-Ethernet2/0/0] port trunk pvid vlan 100
[AC-Ethernet2/0/0] port trunk allow-pass vlan 100 101
[AC-Ethernet2/0/0] port-isolate enable
[AC-Ethernet2/0/0] quit

2. 配置AC作为DHCP服务器,为STA和AP分配IP地址

# 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为AP提供IP地址,VLANIF101为STA提供IP地址。

[AC] dhcp enable
[AC] interface vlanif 100
[AC-Vlanif100] ip address 192.168.10.1 24
[AC-Vlanif100] dhcp select interface
[AC-Vlanif100] quit
[AC] interface vlanif 101
[AC-Vlanif101] ip address 192.168.11.1 24
[AC-Vlanif101] dhcp select interface
[AC-Vlanif101] quit

3. 配置AC的系统参数

# 配置AC的国家码。

[AC] wlan ac-global country-code cn

# 配置AC ID和运营商标识。

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

# 配置AC的源接口。

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

4. 在AC上管理AP

# 现场获取AP的MAC地址后,查看AP的设备类型ID。

[AC-wlan-view] display ap-type all  
[AC-wlan-view] display ap-type all 
   All AP types information:                                                     
  ------------------------------------------------------------------------------
  ID     Type
  ------------------------------------------------------------------------------
  0       WA601
  1       WA631
  2       WA651
  3       WA602
  4       WA632
  5       WA652
  6       WA603SN
  7       WA603DN
  8       WA633SN
  11      WA603DE
  12      WA653DE
  14      WA653SN
  17      AP6010SN-GN
  18      WA615DN-AGN  
  19      AP6010DN-AGN             
  20      WA635SN-GN
  21      AP6310SN-GN
  22      WA655DN-AGN
  23      AP6510DN-AGN
  25      AP6610DN-AGN
  27      AP7110SN-GN
  28      AP7110DN-AGN
  29      AP5010SN-GN
  30      AP5010DN-AGN
  31      AP3010DN-AGN
  ------------------------------------------------------------------------------
  Total number: 25

# 根据查询到的AP设备类型ID,离线添加AP。假设AP的类型为AP6010DN-AGN,其MAC地址为60de-4476-e360。

[AC-wlan-view] ap-auth-mode mac-auth
[AC-wlan-view] ap id 0 type-id 19 mac 60de-4476-e360
[AC-wlan-ap-0] quit

说明:

ap-auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap-auth-mode mac-auth

# 配置AP域并将AP加入到AP域。

[AC-wlan-view] ap-region id 10
[AC-wlan-ap-region-10] quit
[AC-wlan-view] ap id 0
[AC-wlan-ap-0] region-id 10
[AC-wlan-ap-0] quit

# 将AP上电后,可以查看到AP的“AP State”字段为“normal”。

[AC-wlan-view] display ap all
  All AP information(Normal-1,UnNormal-0):
  ------------------------------------------------------------------------------
  AP    AP                    AP              Profile   AP              AP
                                              /Region
  ID    Type                  MAC             ID        State           Sysname
  ------------------------------------------------------------------------------
  0     AP6010DN-AGN          60de-4476-e360    0/10    normal          ap-0
  ------------------------------------------------------------------------------
  Total number: 1

5. 配置WLAN业务参数

# 创建名为“wmm”的WMM模板。

[AC-wlan-view] wmm-profile name wmm id 1
[AC-wlan-wmm-prof-wmm] quit

# 创建名为“radio”的射频模板,绑定WMM模板“wmm”。

[AC-wlan-view] radio-profile name radio id 1 
[AC-wlan-radio-prof-radio] wmm-profile name wmm 
[AC-wlan-radio-prof-radio] quit
[AC-wlan-view] quit

# 创建WLAN-ESS接口1。

[AC] interface wlan-ess 1
[AC-Wlan-Ess1] port link-type hybrid
[AC-Wlan-Ess1] port hybrid pvid vlan 101
[AC-Wlan-Ess1] port hybrid tagged vlan 101
[AC-Wlan-Ess1] quit

# 创建名为“security”的安全模板。

[AC] wlan ac
[AC-wlan-view] security-profile name security id 1
[AC-wlan-sec-prof-security] quit

# 创建名为“traffic”的流量模板。

[AC-wlan-view] traffic-profile name traffic id 1
[AC-wlan-traffic-prof-traffic] quit

# 创建名为“test”的服务集并绑定WLAN-ESS接口、安全模板和流量模板。

[AC-wlan-view] service-set name test id 1
[AC-wlan-service-set-test] ssid test
[AC-wlan-service-set-test] wlan-ess 1
[AC-wlan-service-set-test] security-profile name security
[AC-wlan-service-set-test] traffic-profile name traffic
[AC-wlan-service-set-test] service-vlan 101
[AC-wlan-service-set-test] quit

6. 配置VAP并下发

# 配置VAP。

[AC-wlan-view] ap 0 radio 0
[AC-wlan-radio-0/0] radio-profile name radio
 Warning: Modify the Radio type may cause some parameters of Radio resume defau
 lt value, are you sure to continue?[Y/N]:y
[AC-wlan-radio-0/0] service-set name test
[AC-wlan-radio-0/0] quit

# 提交配置。

[AC-wlan-view] commit ap 0
  Warning: Committing configuration may cause service interruption,continue?[Y/N]:y

7. 验证配置结果

 配置完成后,通过display vap ap 0 radio 0命令,可以查看到VAP已创建成功。

[AC-wlan-view] display vap ap 0 radio 0
  All VAP Information(Total-1):
  SS: Service-set          BP: Bridge-profile
  ----------------------------------------------------------------------------------------------------------------
  AP ID  Radio ID  SS ID   BP ID   WLAN ID  BSSID           Type
  0      0         1       -       1        60de-4476-e360  service
  ---------------------------------------------------------------------------------------------------------------- 
  Total: 1

STA搜索到名为“test”的无线网络并正常关联后,在AC上执行display station asso-info命令,可以查看到用户已经接入到无线网络“test”中。

[AC-wlan-view] display station assoc-info ap 0 radio 0
  ------------------------------------------------------------------------------
  STA MAC          AP-ID   RADIO-ID  SS-ID   SSID
  ------------------------------------------------------------------------------
  9021-55dc-3e17   0       0         1        test
  ------------------------------------------------------------------------------
  Total stations: 1

配置文件:

  • AC的配置文件

    #
    sysname AC
    #
    vlan batch 100 to 101
    #                                                                               
     wlan ac-global carrier id other ac id 1    
    #                                                                               
    dhcp enable  
    #
    interface Vlanif100
     ip address 192.168.10.1 255.255.255.0
     dhcp select interface
    #                                                                               
    interface Vlanif101                                                             
     ip address 192.168.11.1 255.255.255.0                                          
     dhcp select interface
    #
    interface Ethernet2/0/0
     port link-type trunk
     port trunk pvid vlan 100
     port trunk allow-pass vlan 100 to 101 
     port-isolate enable group 1   
    #
    interface Wlan-Ess1
     port hybrid pvid vlan 101
     port hybrid tagged vlan 101
    #
    wlan ac
     wlan ac source interface vlanif100
     ap-region id 10
     ap id 0 type-id 19 mac 60de-4476-e360 sn AB35015384
      region-id 10
     wmm-profile name wmm id 1
     traffic-profile name traffic id 1
     security-profile name security id 1
     service-set name test id 1
      wlan-ess 1
      ssid test
      traffic-profile id 1
      security-profile id 1
      service-vlan 101
     radio-profile name radio id 1
      wmm-profile id 1
     ap 0 radio 0
      radio-profile id 1
      service-set id 1 wlan 1
    #
    return