配置FAT AP二層組網示例
組網圖形web
組網需求
如圖1所示,FAT AP經過有線方式接入Internet,經過無線方式鏈接終端。現某企業分支機構爲了保證工做人員能夠隨時隨地的訪問公司網絡,須要經過部署WLAN基本業務實現移動辦公。bash
- 提供名爲「wlan-net」的無線網絡。
- Router做爲DHCP服務器爲工做人員分配IP地址。
數據準備
項目 | 數據 |
---|---|
STA業務VLAN服務器 |
VLAN101網絡 |
DHCP服務器dom |
Router做爲STA的DHCP服務器ssh |
STA地址池ui |
10.23.101.3~10.23.101.254/24spa |
SSID模板3d |
|
安全模板 |
|
VAP模板 |
|
配置思路
- 配置Router做爲DHCP服務器,爲STA分配IP地址。
- 使用WLAN配置嚮導,配置WLAN基本業務。
- 配置AP的信道和功率。
- STA關聯WLAN網絡,完成業務驗證。
配置注意事項
純組播報文因爲協議要求在無線空口沒有ACK機制保障,且無線空口鏈路不穩定,爲了純組播報文可以穩定發送,一般會以低速報文形式發送。若是網絡側有大量異常組播流量涌入,則會形成無線空口擁堵。爲了減少大量低速組播報文對無線網絡形成的衝擊,建議在直連AP的交換機接口上配置組播報文抑制功能。配置前請確認是否有組播業務,若是有,請謹慎配置限速值。配置方法請參見如何配置組播報文抑制,減少大量低速組播報文對無線網絡形成的衝擊?。
操做步驟
- 配置Router做爲DHCP服務器,爲STA分配IP地址
# 配置基於接口地址池的DHCP服務器,GE1/0/0爲STA提供IP地址。
說明:DNS服務器地址請根據實際須要配置。經常使用配置方法以下:- 接口地址池場景,須要在VLANIF接口視圖下執行命令dhcp server dns-list ip-address &<1-8>。
- 全局地址池場景,須要在IP地址池視圖下執行命令dns-list ip-address &<1-8>。
-
[Router] dhcp enable [Router] interface gigabitethernet 1/0/0 [Router-GigabitEthernet1/0/0] ip address 10.23.101.1 24 [Router-GigabitEthernet1/0/0] dhcp select interface [Router-GigabitEthernet1/0/0] dhcp server excluded-ip-address 10.23.101.2 [Router-GigabitEthernet1/0/0] quit
- 配置WLAN基本業務
- 單擊「嚮導 > 配置嚮導」,進入「Wi-Fi信號設置」頁面。
- 配置Wi-Fi信號。
# 單擊「新建」,進入「基本信息配置」頁面。
# 配置SSID基本信息。
-
# 單擊「下一步」,進入「地址及速率配置」頁面。
# 配置地址參數。
-
# 單擊「完成」。
- 配置上網鏈接參數。
# 單擊「下一步」,進入「上網鏈接設置」頁面。
# 將接口以Tagged方式加入VLAN101。說明:若是PC登陸Web網管所鏈接的以太網接口和正在修改的以太網接口一致,請不要刪掉接口上已有的VLAN配置,保證登陸Web網管的PC和設備網絡互通。以下圖所示,接口上默認加入VLAN1和用戶通訊,用戶能夠經過默認的IP地址登陸Web網管。若用戶須要用默認的地址登陸,不要刪除原有的VLAN1。
-
-
# 單擊「完成」。
-
- 配置AP的信道和功率
- 關閉射頻的信道和功率自動調優功能。 說明:
射頻的信道和功率自動調優功能默認開啓,若是不關閉此功能則會致使手動配置不生效。
# 選擇「配置 > WLAN業務 > 無線業務配置」。
# 在「無線業務配置」導航欄中選擇「射頻0 > 射頻管理 > 射頻模板」。
# 單擊「射頻模板」前的,顯示射頻模板下引用的其餘模板。
# 單擊「RRM模板」,進入默認RRM模板頁面,關閉信道自動調優和功率自動調優功能。
- 關閉射頻的信道和功率自動調優功能。
-
# 單擊「應用」,在彈出的提示對話框中單擊「肯定」,完成配置。以一樣的方式關閉「射頻1」下的信道自動調優和功率自動調優功能,此處再也不贅述。
- 手動配置AP的信道和功率。
# 依次單擊「配置 > WLAN業務 > 無線業務配置 > 射頻0」,進入「射頻0」頁面。
# 單擊「射頻管理」,進入射頻0配置頁面。
# 在「射頻0配置(2.4G)」頁面設置信道爲帶寬20MHz信道6,發送功率爲127dBm。「射頻1」頁面設置信道帶寬20MHz信道149與「射頻0」設置步驟相似,此處再也不贅述。
-
-
# 單擊「應用」,在彈出的提示對話框中單擊「肯定」,完成配置。
-
- 配置VLANIF接口
- 依次單擊「配置 > 接口管理 > VLAN > VLAN」,進入「VLAN」頁面。
- 選擇VLAN101,在「修改VLAN」頁面中配置VLANIF101的IP地址爲10.23.101.2/24。
-
- 單擊「肯定」,完成VLANIF接口的配置。
- 檢查配置結果
- 無線用戶能夠搜索到SSID爲「wlan-net」的無線網絡。
- 無線用戶能夠關聯到無線網絡中,獲取到的IP地址爲10.23.101.x/24。
- 單擊「監控 > 終端管理 > 終端用戶管理」。在「終端用戶列表」中能夠看到STA正常上線,而且得到IP地址。
實例配置:
[Huawei]dis current-configuration # http secure-server ssl-policy default_policy http server enable # undo clock timezone # vlan batch 100 to 101 # authentication-profile name default_authen_profile authentication-profile name dot1x_authen_profile authentication-profile name mac_authen_profile authentication-profile name portal_authen_profile authentication-profile name macportal_authen_profile # dns resolve dns proxy enable # radius-server template default # pki realm default rsa local-key-pair default enrollment self-signed # ssl policy default_policy type server pki-realm default version tls1.0 tls1.1 tls1.2 ciphersuite rsa_aes_128_cbc_sha rsa_aes_128_sha256 rsa_aes_256_sha256 # acl name nat 2000 rule 5 permit # free-rule-template name default_free_rule # portal-access-profile name portal_access_profile # aaa authentication-scheme default authentication-scheme radius authentication-mode radius authorization-scheme default accounting-scheme default domain default authentication-scheme default domain default_admin authentication-scheme default local-user admin password irreversible-cipher $1a$=VGg7L*Co$$R7i^U\v%u%6e^N*Nj{*9RvhKGmsC{$t:&,A-$4b3$ local-user admin privilege level 15 local-user admin service-type ssh http # interface Vlanif1 ip address 169.254.1.1 255.255.0.0 nat outbound 2000 ip address dhcp-alloc unicast # interface Vlanif100 ip address 192.168.100.200 255.255.255.0 # interface Vlanif101 ip address 192.168.1.200 255.255.255.0 # interface GigabitEthernet0/0/0 port link-type access port default vlan 101 mac-learning priority 3 # interface NULL0 # undo snmp-agent # stelnet server enable undo telnet server enable ssh server secure-algorithms cipher aes256_ctr aes128_ctr ssh server secure-algorithms hmac sha2_256 ssh server key-exchange dh_group14_sha1 ssh client secure-algorithms cipher aes256_ctr aes128_ctr ssh client secure-algorithms hmac sha2_256 ssh client key-exchange dh_group14_sha1 # user-interface con 0 authentication-mode password set authentication password cipher %^%#Jln(HwG8$'RnxlJ/{#pWXVd@.#_>D0JoC2~ze/=P;!,922n.nChp;N3}Q8$/%^%# user-interface vty 0 4 authentication-mode aaa protocol inbound ssh user-interface vty 16 20 protocol inbound all # wlan traffic-profile name default traffic-profile name default-ssid security-profile name default security-profile name zhiyi-new security wpa-wpa2 psk pass-phrase %^%#Jc>Q&D61r.%HY5Fvod.JZUiW-=GoX0<"08<T@J]%%^%# aes security-profile name default-ssid ssid-profile name default ssid-profile name zhiyi-new ssid zhiyi-new ssid-profile name default-ssid ssid HUAWEI-27A0 vap-profile name default vap-profile name zhiyi-new service-vlan vlan-id 101 ssid-profile zhiyi-new security-profile zhiyi-new vap-profile name default-ssid service-vlan vlan-id 100 ssid-profile default-ssid security-profile default-ssid traffic-profile default-ssid air-scan-profile name default rrm-profile name default radio-2g-profile name default radio-5g-profile name default wids # interface Wlan-Radio0/0/0 vap-profile default-ssid wlan 1 vap-profile zhiyi-new wlan 2 calibrate auto-txpower-select disable # interface Wlan-Radio0/0/1 vap-profile default-ssid wlan 1 vap-profile zhiyi-new wlan 2 calibrate auto-txpower-select disable # dot1x-access-profile name dot1x_access_profile # mac-access-profile name mac_access_profile # undo ntp-service enable # return [Huawei]