設(shè)備:WX5540H一臺做盅、AP5530兩臺、S5120V2一臺吹榴、STA二臺
網(wǎng)絡(luò)規(guī)劃:vlan 10 20 30? 其中vlan 10為辦公網(wǎng)图筹、vlan 20?為生產(chǎn)網(wǎng) vlan 30為互聯(lián)。
<AC> system-view
[AC] vlan 10
[AC-vlan10] quit
[AC] interface vlan-interface10
[AC-Vlan-interface10] ip address 10.0.10.250 255.255.255.0
[AC-Vlan-interface10] quit
# 創(chuàng)建VLAN 20远剩,AC需要使用該VLAN轉(zhuǎn)發(fā)無線客戶端數(shù)據(jù)報文。
[AC] vlan 20
[AC-vlan20] quit
# 配置AC和L3 switch相連的接口GigabitEthernet1/0/1為Trunk類型锥余,禁止VLAN 1報文通過活鹰,允許VLAN 10和VLAN 20通過。
[AC] interface gigabitethernet 1/0/1
[AC-GigabitEthernet1/0/1] port link-type trunk
[AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[AC-GigabitEthernet1/0/1] port trunk permit vlan 10 20
[AC-GigabitEthernet1/0/1] quit
(2)配置三層路由
# 配置AC到10.152.7.0網(wǎng)段的靜態(tài)路由,指定下一跳的IP地址為10.0.10.254
[AC] ip route-static 0.0.0.0 0 10.0.10.254
(3)配置無線服務(wù)
# 創(chuàng)建無線服務(wù)模板1锌云,并進(jìn)入無線服務(wù)模板視圖吁脱。
[AC] wlan service-template bg
# 配置SSID為Somidezoffice。
[AC-wlan-st-bg] ssid Somidezoffice
# 使能服務(wù)模板兼贡。
[AC-wlan-st-bg] service-template enable
[AC-wlan-st-bg] vlan 20
[AC-wlan-st-bg] akm mode psk
[AC-wlan-st-bg] preshared-key pass-phrase cipher $c$3$9ZCAoVZgGIcIjU2Ggn0NGPRsD0GoGI9mCYRKe+KZkQ==
[AC-wlan-st-bg] cipher-suite ccmp
[AC-wlan-st-bg] cipher-suite tkip
[AC-wlan-st-bg] security-ie rsn
[AC-wlan-st-bg] security-ie wpa
[AC-wlan-st-bg] multicast-optimization enable 漫游啟用
[AC-wlan-st-bg] service-template enable 服務(wù)棋牌啟用
[AC-wlan-st-bg] quit
(4)配置AP
# 創(chuàng)建手工AP1遍希,名稱為officeap1(增加一個ap,增加一個名字)禁谦,型號名稱為WA4320i-ACN。
[AC] wlan ap officeap1 model WA4320i-ACN
# 設(shè)置AP的序列號為210235A1GPC177000751州泊。
[AC-wlan-ap-officeap1] serial-id 210235A1GPC177000751
# 進(jìn)入AP的Radio 1視圖遥皂,并將無線服務(wù)模板1綁定到Radio 1(5GHz)上,并指定客戶端上線的VLAN為VLAN 20演训。
[AC-wlan-ap-officeap1] radio 1
[AC-wlan-ap-officeap1-radio-1] service-template 1 vlan 20
# 開啟Radio 1的射頻功能。
[AC-wlan-ap-officeap1-radio-1] radio enable
[AC-wlan-ap-officeap1-radio-1] return
# 進(jìn)入AP的Radio 2視圖披蕉,并將無線服務(wù)模板1綁定到Radio 2(2.4GHz)上乌奇,并指定客戶端上線的VLAN為VLAN 20。
[AC-wlan-ap-officeap1] radio 2
[AC-wlan-ap-officeap1-radio-2] service-template 1 vlan 20
# 開啟Radio 1的射頻功能爬凑。
[AC-wlan-ap-officeap1-radio-2] radio enable
[AC-wlan-ap-officeap1-radio-2] return