【eNSP实战】(续)一个AC多个VAP的实现—将隧道转发改成直接转发

发布于:2025-03-19 ⋅ 阅读:(16) ⋅ 点赞:(0)

一个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路由器互通测试
在这里插入图片描述