一,网络规划。
公司某部门需要建立一个70人办公的无线局域
AP获取的网段为10.0.0.0/24
user获取的是20.0.0.0/24
二,网络拓扑如下
华为AC+AP组网用户获取地址失败。_第1张图片
三,交换机的配置
vlan batch 10 20
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 20
port trunk allow-pass vlan 10 20

四,AC的配置
#
sysname AC

vlan batch 10 20
#
wlan ac-global carrier id other ac id 1
#
dhcp enable
#
interface Vlanif10
ip address 10.0.0.1 255.255.255.0
dhcp select interface
#
interface Vlanif20
ip address 20.0.0.1 255.255.255.0
dhcp select interface
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20

interface GigabitEthernet0/0/15

interface Wlan-Ess1
port hybrid pvid vlan 20
port hybrid untagged vlan 20
#
wlan
wlan ac source interface vlanif10
ap-auth-mode no-auth
ap id 0 type-id 19 mac 00e0-fc8a-10b0 sn 210235448310071F4139
wmm-profile name 1 id 0
traffic-profile name 1 id 0
security-profile name 1 id 0
service-set name 1 id 0
wlan-ess 1
ssid 1
traffic-profile id 0
security-profile id 0
service-vlan 20
radio-profile name 1 id 0
wmm-profile id 0
ap 0 radio 0
radio-profile id 0
service-set id 0 wlan 1
五,结果用户侧无法获得IP地址。
华为AC+AP组网用户获取地址失败。_第2张图片
六,故障分析
经过排查发现交换机接AP的端口VLAN打错导致用户无法获取到IP地址,
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 20

7,经过处理AP恢复正常。