当前位置: 首页 > 系统与网络 > 正文

需求场景:华为LeaderAP组网场景,需要将扩展的VLAN透传到子AP上,客户需要接交换机配置VLAN扩展多业务使用场景。

问题:如果只在LeaderAP主AC(面板AP)上对有线口配置VLAN,只对这个面板AP有效,并不能扩展到其他AP的网口上。

telnet/ssh登陆leaderap主AC,创建需要的vlan,如已创建就跳过

[c45e-5c3c-aaaa]wlan   #进入WLAN视图
[c45e-5c3c-aaaa-wlan-view]wired-port-profile name ap-vlan   #创建一个名为ap-vlan的端口配置模板
[c45e-5c3c-aaaa-wlan-wired-port-ap-vlan]vlan tagged 10 20   #添加要打vlan tag标签的vlan
Info: This operation may take a few seconds. Please wait for a moment.done.
[c45e-5c3c-aaaa-wlan-wired-port-ap-vlan]mode root   #配置AP有线口模式,这里设置模式为root模式,透传vlan,后边设备需要打对应的vlan标签才可用,如果要直接作为pvid使用,配置模式为endpoint(直接用来接客户端设备,但勿将这个应用在gigabitethernet 0接口上)
Warning: If the AP goes online through a wired port, the incorrect port mode configuration will cause the AP to go out of management. This fault can be recovered only by modifying the configuration on the AP. Continue? [Y/N]:y
Warning: This action will take effect after resetting fit AP.
[c45e-5c3c-aaaa-wlan-wired-port-ap-vlan]quit   #退出端口模板配置
[c45e-5c3c-aaaa-wlan-view]ap-group name default   #进入默认的ap组配置
[c45e-5c3c-aaaa-wlan-ap-group-default]wired-port-profile ap-vlan gigabitethernet 1   #将名为ap-vlan的端口配置模板应用于gigabitethernet 1接口上(即面板AP的接客户端设备的网口)
[c45e-5c3c-aaaa-wlan-ap-group-default]dis th   #查看配置
#
  wired-port-profile ap-vlan gigabitethernet 1
  radio 0
   calibrate auto-txpower-select disable
  radio 1
   channel 160mhz 36
   calibrate auto-channel-select disable
   calibrate auto-txpower-select disable
  radio 2
   calibrate auto-txpower-select disable
#
return
[c45e-5c3c-aaaa-wlan-ap-group-default]quit

查看接口配置状态
vlan batch 10 20 100
#
interface Vlanif1
#
interface Ethernet0/0/47
 ip address 169.254.3.1 255.255.255.0
#
interface GigabitEthernet0/0/0
 port hybrid tagged vlan 2 to 4094
#
interface GigabitEthernet0/0/1
 port hybrid tagged vlan 10 20
 stp enable
 stp edged-port enable
#

[分享]华为LeaderAP AP有线口透传VLAN:等您坐沙发呢!

发表评论