在 一個AC多個VAP的實現—CAPWAP隧道轉發 此篇文章配置的基礎上,將隧道轉發改成直接轉發
一、改成直接轉發需要改動的配置
(一)將連接AP的接口改成trunk口,并允許vlan100、101、102通過
[AC1]interface GigabitEthernet 0/0/8
[AC1-GigabitEthernet0/0/8]undo port default vlan
[AC1-GigabitEthernet0/0/8]undo port link-type
[AC1-GigabitEthernet0/0/8]port link-type trunk
[AC1-GigabitEthernet0/0/8]port trunk pvid vlan 100
[AC1-GigabitEthernet0/0/8]port trunk allow-pass vlan 100 101 102
[AC1-GigabitEthernet0/0/8]quit
(二)在VAP模板中將隧道轉發改成直接轉發
[AC1]wlan
[AC1-wlan-view]vap-profile name vap-office101 # 進入vap-office101模板
[AC1-wlan-vap-prof-vap-office101]forward-mode direct-forward # 改成直接轉發模式
Warning: This action may cause service interruption. Continue?[Y/N]Y # Y確認修改
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-vap-prof-vap-office101]quit
[AC1-wlan-view]vap-profile name vap-office102 # 進入vap-office102模板
[AC1-wlan-vap-prof-vap-office102]forward-mode direct-forward # 改成直接轉發模式
Warning: This action may cause service interruption. Continue?[Y/N]Y # Y確認修改
Info: This operation may take a few seconds, please wait...done.
[AC1-wlan-vap-prof-vap-office102]quit
[AC1-wlan-view]
改完后,無線設備STA會斷開,需要重新連接。
查看STA設備IP
STA設備與AR1路由器互通測試