日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

WLAN(AP+AC+STA)的配置

發(fā)布時間:2024/3/26 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 WLAN(AP+AC+STA)的配置 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

實驗的注意事項

1、AC使用6605

2、AP使用4050,AP上零配置

3、黃色標(biāo)記的為注釋部分

一、實驗拓?fù)鋱D

在交換機和AC 上進(jìn)行配置

整體的配置思路

  • 在交換機和AC 上創(chuàng)建vlan,添加相應(yīng)的接口,手動配置AC的ip地址 ??????????????????????????????????????????
  • 在匯聚交換機2上做vlan間路由
  • vlan 10 10.1.10.0/24 ?AP,AC

    vlan 11 10.1.11.0/24 ?SSID:huawei1

    vlan 12 10.1.12.0/24 ?SSID:huawei2

    vlan 13 10.1.13.0/24 ?有線終端PC1

    也就是給vlanif配地址,作為vlan的網(wǎng)關(guān)

    實現(xiàn)vlan間可以互通

  • 配置DHCP服務(wù)器在交換機2上,讓交換機2充當(dāng)dhcp服務(wù)器
  • 配置AP上線,在AC上進(jìn)行配置
  • 實現(xiàn)AC給AP下發(fā)WLAN業(yè)務(wù)
  • 在交換機1上配置

    [SW1]vlan batch 10 to 13

    [SW1]int g0/0/1

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

    [SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

    [SW1-GigabitEthernet0/0/1]port trunk pvid vlan 10???//將AP的數(shù)據(jù)幀放入vlan10中,打上vlan10數(shù)據(jù)幀的標(biāo)簽

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

    [SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all

    [SW1-GigabitEthernet0/0/2]port trunk pvid vlan 10???????//將AP的數(shù)據(jù)幀放入vlan10中,打上vlan10數(shù)據(jù)幀的標(biāo)簽

    [SW1-GigabitEthernet0/0/2]int g0/0/3

    [SW1-GigabitEthernet0/0/3]port link-type access

    [SW1-GigabitEthernet0/0/3]port default vlan 13?????將有線終端pc機加入到vlan13中

    [SW1]int g0/0/4

    [SW1-GigabitEthernet0/0/4]port link-type trunk

    [SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all

    查看vlan端口

    [SW1]dis port vlan

    Port ???????????????????Link Type ???PVID ?Trunk VLAN List

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

    GigabitEthernet0/0/1 ???trunk ???????10 ???1-4094

    GigabitEthernet0/0/2 ???trunk ???????10 ???1-4094

    GigabitEthernet0/0/3 ???access ??????13 ???- ??????????????????????????????????

    GigabitEthernet0/0/4 ???trunk ???????1 ????1-4094

    交換機2的配置

    [SW2]vlan batch 10 to 13

    [SW2]int g0/0/3

    [SW2-GigabitEthernet0/0/3]port link-type trunk

    [SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan all

    [SW2-GigabitEthernet0/0/3]int g0/0/1

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

    [SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all

    AC上

    [AC6605]vlan batch 10 to 13

    [AC6605]int g0/0/1

    [AC6605-GigabitEthernet0/0/1]port link-type tr

    [AC6605-GigabitEthernet0/0/1]port trunk allow-pass vlan all

    交換機2上

    [SW2]int vlan 10

    [SW2-Vlanif10]di this

    interface Vlanif10

    ?ip address 10.1.10.1 255.255.255.0

    [SW2]int vlan 11

    [SW2-Vlanif11]di this

    interface Vlanif11

    ?ip address 10.1.11.1 255.255.255.0

    [SW2-Vlanif11]int vlan 12

    [SW2-Vlanif12]di this

    interface Vlanif12

    ?ip address 10.1.12.1 255.255.255.0

    [SW2-Vlanif12]int vlan13

    [SW2-Vlanif13]di this

    interface Vlanif13

    ?ip address 10.1.13.1 255.255.255.0

    配置dhcp服務(wù)器(全局地址池)

    [SW2]ip pool vlan10

    Info:It's successful to create an IP address pool.

    [SW2-ip-pool-vlan10]network 10.1.10.0 mask 24

    [SW2-ip-pool-vlan10]gateway-list 10.1.10.1

    [SW2-ip-pool-vlan10]dns-list 1.1.1.1

    [SW2]ip pool vlan11

    Info:It's successful to create an IP address pool.

    [SW2-ip-pool-vlan11]network 10.1.11.0 mask 24

    [SW2-ip-pool-vlan11]gateway-list 10.1.11.1

    [SW2-ip-pool-vlan11]dns-list 1.1.1.1

    [SW2]ip pool vlan12

    Info:It's successful to create an IP address pool.

    [SW2-ip-pool-vlan12]network 10.1.12.0 mask 24

    [SW2-ip-pool-vlan12]gateway-list 10.1.12.1

    [SW2-ip-pool-vlan12]dns-list 1.1.1.1

    [SW2]ip pool vlan13

    Info:It's successful to create an IP address pool.

    [SW2-ip-pool-vlan13]network 10.1.13.0 mask 24

    [SW2-ip-pool-vlan13]gateway-list 10.1.13.1

    [SW2-ip-pool-vlan13]dns-list 114.114.114.114

    在每個vlanif中開啟dhcp服務(wù)

    [SW2-Vlanif10]dhcp select global

    [SW2-Vlanif11]dhcp select global

    [SW2-Vlanif12]dhcp select global

    [SW2-Vlanif13]dhcp select global

    這時候可以在AP上可以進(jìn)行測試,看AP是否拿到地址

    ?

    ?

    此時已經(jīng)實現(xiàn)AP獲取到IP地址,能夠和AC之間三層可達(dá)

    給AC配置IP地址(手動進(jìn)行配置)

    [AC6005]int Vlanif 10

    [AC6005-Vlanif10]ip address 10.1.10.10 24

    [AC6005-Vlanif10]quit

    [AC6005]ip route-static 0.0.0.0 0 10.1.10.1

    • AP注冊到AC(配置AP上線)在AC上進(jìn)行配置

    [AC6005]capwap source interface vlan 10??指定capwap隧道的原接口

    [AC6005]wlan

    [AC6005-wlan-view]regulatory-domain-profile name domain1??創(chuàng)建域管理模板

    [AC6005-wlan-regulate-domain-domain1]country-code CN

    [AC6005]wlan

    [AC6005-wlan-view]ap-group name?group1????//創(chuàng)建AP組,名字為group1

    [AC6005-wlan-ap-group-group1]regulatory-domain-profile name domain1??綁定域管理模板到AP組

    [AC6005-wlan-regulate-domain-domain1]quit

    [AC6005-wlan-view]ap auth-mode mac-auth ???//AP的認(rèn)證方式為mac地址認(rèn)證

    [AC6005-wlan-view]ap-mac 00e0-fcf4-01b0????//AP1的mac地址

    [AC6005-wlan-ap-0]ap-group group1???????????指定AP屬于那個組

    [AC6005-wlan-ap-0]quit

    [AC6005-wlan-view]ap-mac 00e0-fc23-57f0??????//AP1的mac地址

    [AC6005-wlan-ap-1]ap-group group1

    查看

    這時AP已經(jīng)注冊到AC

    下一步實現(xiàn)AC給AP下發(fā)WLAN業(yè)務(wù)

    [AC6005]wlan

    [AC6005-wlan-view]security-profile name anquan1???創(chuàng)建安全模板

    [AC6005-wlan-sec-prof-anquan1]quit

    [AC6005-wlan-view]ssid-profile name huawei1?????創(chuàng)建第一個ssid模板

    [AC6005-wlan-ssid-prof-huawei1]ssid huawei1??????ssid模板名稱

    Info: This operation may take a few seconds, please wait.done.

    [AC6005-wlan-ssid-prof-huawei1]quit

    [AC6005-wlan-view]ssid-profile name huawei2???????創(chuàng)建第一個ssid模板

    [AC6005-wlan-ssid-prof-huawei2]ssid huawei2

    [AC6005-wlan-view]vap-profile name vap1???????????創(chuàng)建vap模板

    [AC6005-wlan-vap-prof-vap1]security-profile anquan1????調(diào)用安全模板

    [AC6005-wlan-vap-prof-vap1]ssid-profile huawei1??????調(diào)用ssid模板

    Info: This operation may take a few seconds, please wait.done.

    [AC6005-wlan-vap-prof-vap1]service-vlan vlan-id 11?????綁定業(yè)務(wù)vlan

    [AC6005-wlan-vap-prof-vap1]forward-mode direct-forward ???定義轉(zhuǎn)發(fā)模式

    [AC6005-wlan-vap-prof-vap1]di this

    #

    ??service-vlan vlan-id 11

    ??ssid-profile huawei1

    ??security-profile anquan1

    [AC6005-wlan-view]vap-profile name vap2

    [AC6005-wlan-vap-prof-vap2]di this

    #

    ??service-vlan vlan-id 12

    ??ssid-profile huawei2

    ??security-profile anquan1

    [AC6005-wlan-view]ap-group name group1???????綁定vap模板到AP組

    [AC6005-wlan-ap-group-group1]vap-profile vap1?wlan 1 radio all

    [AC6005-wlan-ap-group-group1]vap-profile vap2?wlan 2 radio all

    這時的拓?fù)鋱D

    圈圈是ap發(fā)射出來的無線電磁波

    ?

    ?

    ?

    ?

    ?

    ?

    ?

    ?

    ?

    總結(jié)

    以上是生活随笔為你收集整理的WLAN(AP+AC+STA)的配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。