華為無線ac ap配置例項(華為AP設定教程)
華為AC AP無線配置方法
組網示意圖:
前提條件: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。
拓展總結
業務閘道器 設定在二層交換機上也可以正常工作。