要配置如图所示的无线路由
AC1
[AC6605]vlan batch 10 20 100
[AC6605]interface GigabitEthernet 0/0/1
[AC6605-GigabitEthernet0/0/1]port link-type trunk
[AC6605-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100
[AC6605]interface Vlanif 100
[AC6605-Vlanif100]ip address 100.0.0.1 24
[AC6605]dhcp enable
[AC6605]ip pool aaa
[AC6605-ip-pool-aaa]network 100.0.0.0 mask 24
[AC6605-ip-pool-aaa]gateway-list 100.0.0.1
[AC6605]interface Vlanif 100
[AC6605-Vlanif100]dhcp select global
[AC6605]capwap source interface Vlanif 100
[AC6605]wlan
[AC6605-wlan-view]regulatory-domain-profile name domain
[AC6605-wlan-regulate-domain-domain]country-code CN
[AC6605-wlan-view]ap-group name group-1
[AC6605-wlan-ap-group-group-1]regulatory-domain-profile domain
[AC6605-wlan-view]ap auth-mode mac-auth
[AC6605-wlan-view]ap-id 1 ap-mac 00e0-fc2a-3690
[AC6605-wlan-ap-1]ap-group group-1
[AC6605-wlan-view]ap-id 2 ap-mac 00e0-fc55-2d90
[AC6605-wlan-ap-2]ap-group group-1
[AC6605-wlan-view]ap-id 3 ap-mac 00e0-fc35-6740
[AC6605-wlan-ap-3]ap-group group 2
GROUP 1
[AC6605]wlan
[AC6605-wlan-view]ssid-profile name test-1
[AC6605-wlan-ssid-prof-test-1]ssid AP1 (更改wifi的名字)
[AC6605-wlan-view]security-profile name test-1
[AC6605-wlan-sec-prof-test-1]security wpa-wpa2 psk pass-phrase huawei123 aes (设置密码)
[AC6605-wlan-view]vap-profile name test-1
[AC6605-wlan-vap-prof-test-1]ssid-profile test-1
[AC6605-wlan-vap-prof-test-1]security-profile test-1
[AC6605-wlan-vap-prof-test-1]forward-mode direct-forward
[AC6605-wlan-view]ap-group name group-1
[AC6605-wlan-ap-group-group-1]vap-profile test-1 wlan 1 radio all
[AC6605]ip pool vlan10 (分发vlan)
[AC6605]interface Vlanif 10
[AC6605-Vlanif10]ip address 192.168.10.1 24
[AC6605-ip-pool-vlan10]network 192.168.10.0 mask 24
[AC6605-ip-pool-vlan10]gateway-list 192.168.10.1
[AC6605-ip-pool-vlan10]dns-list 8.8.8.8
[AC6605]interface Vlanif 10
[AC6605-Vlanif10]dhcp select global
GROUP2
[AC6605-wlan-view]ap-group name group-2
[AC6605-wlan-ap-group-group-2]regulatory-domain-profile domain
[AC6605-wlan-view]ssid-profile name test-2
[AC6605-wlan-ssid-prof-test-2]ssid AP3
[AC6605-wlan-view]security-profile name test-2
[AC6605-wlan-sec-prof-test-2]security wpa-wpa2 psk pass-phrase huawei456 aes
[AC6605-wlan-view]vap-profile name test-2
[AC6605-wlan-vap-prof-test-2]service-vlan vlan-id 20
[AC6605-wlan-vap-prof-test-2]ssid-profile test-2
[AC6605-wlan-vap-prof-test-2]security-profile test-2
[AC6605-wlan-vap-prof-test-2]forward-mode direct-forward
[AC6605-wlan-view]ap-group name group-2
[AC6605-wlan-ap-group-group-2]vap-profile test-2 wlan 1 radio all [AC6605]ip pool vlan20
[AC6605]interface Vlanif 20
[AC6605-Vlanif20]ip address 192.168.20.1 24
[AC6605-ip-pool-vlan20]network 192.168.20.0 mask 24
[AC6605-ip-pool-vlan20]gateway-list 192.168.20.1
[AC6605-ip-pool-vlan20]dns-list 8.8.8.8
[AC6605]interface Vlanif 20
[AC6605-Vlanif20]dhcp select global
SW1
[SW1]vlan batch 10 20 100
[SW1]interface GigabitEthernet 0/0/3
[SW1-GigabitEthernet0/0/3]port link-type trunk
[SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 100
[SW1]interface GigabitEthernet 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 100
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 100
[SW1]interface GigabitEthernet 0/0/2
[SW1-GigabitEthernet0/0/2]port link-type trunk
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 100
[SW1-GigabitEthernet0/0/2]port trunk pvid vlan 100
[SW1]interface GigabitEthernet 0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 20 100
[SW1-GigabitEthernet0/0/4]port trunk pvid vlan 100
SW2
[SW2]vlan batch 10 20 100
[SW2]interface GigabitEthernet 0/0/3
[SW2-GigabitEthernet0/0/3]port link-type trunk
[SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 100
[SW2]interface GigabitEthernet 0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100
STA1
STA2
效果图