配置
sw1
[sw1]vlan batch 10 20 100
[sw1-GigabitEthernet0/0/1]port link-type trunk
[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100
[sw1-GigabitEthernet0/0/1]port trunk pvid vlan 100
接口g124一样的配置
[sw1-GigabitEthernet0/0/3]port link-type trunk
[sw1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 100
[sw1]int Vlanif 10
[sw1-Vlanif10]ip address 192.168.1.2 24
[sw1]int Vlanif 20
[sw1-Vlanif10]ip address 192.168.2.2 24
sw2
[sw2-GigabitEthernet0/0/1]port link-type trunk
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100[sw2-GigabitEthernet0/0/2]port link-type trunk
.
[sw2-GigabitEthernet0/0/2]port link-type access
[sw2-GigabitEthernet0/0/2]p d v 30
[sw2-GigabitEthernet0/0/3]port link-type trunk
[sw2-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 100
[sw2-Vlanif30]ip add 192.168.4.1 24
r3
[r3-GigabitEthernet0/0/0]ip add 192.168.4.2 24
AC
[AC6605]vlan batch 10 20 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC6605]int vlanif10
[AC6605-Vlanif10]ip add 192.168.1.254 24[AC6605]dhcp enable
[AC6605]ip pool vlan10
Info: It is successful to create an IP address pool.
[AC6605-ip-pool-vlan10]gateway-list 192.168.1.254
[AC6605-ip-pool-vlan10]netbios-type
[AC6605-ip-pool-vlan10]network 192.168.1.0 mask 24
[AC6605-ip-pool-vlan10]dns-list 8.8.8.8
[AC6605-Vlanif10]dhcp select global[AC6605]int Vlanif 20
[AC6605-Vlanif20]ip add 192.168.2.254 24
[AC6605-Vlanif20]dhcp select global
[AC6605]ip pool vlan20
[AC6605-ip-pool-vlan20]network 192.168.2.0 mask 24
[AC6605-ip-pool-vlan20]gateway-list 192.168.2.254
[AC6605-ip-pool-vlan20]dns-list 8.8.8.8WLAN:
组1:
[AC6605-Vlanif100]ip add 10.1.1.1 24[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-regulate-domain-domain]q
[AC6605-wlan-view]ap-group name group-1[AC6605-wlan-ap-group-group-1]regulatory-domain-profile domain 调
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:y
[AC6605-wlan-view]ap auth-mode mac-auth
[AC6605-wlan-view]ap-id 0 ap-mac 00e0-fc94-2010
[AC6605-wlan-ap-0]ap-group group-1
[AC6605-wlan-view]ap-id 1 ap-mac 00e0-fc2a-3690
[AC6605-wlan-ap-1]ap-group group-1Info: This operation may take a few seconds. Please wait for a moment.. done.
[AC6605]display ap all
[AC6605-wlan-view]vap-profile name test-1
[AC6605-wlan-vap-prof-test-1]forward-mode tunnel
[AC6605-wlan-vap-prof-test-1]service-vlan vlan-id 10
[AC6605-wlan-vap-prof-test-1]ssid-profile test-1 关联wife名称
[AC6605-wlan-vap-prof-test-1]security-profile test-1 关联密码名称
[AC6605-wlan-view]ap-group name group-1
[AC6605-wlan-ap-group-group-1]vap-profile test-1 wlan 1 radio all
[AC6605-wlan-view]display vap ssid test-1
组2:
[AC6605-wlan-view]ap-group name group-2
[AC6605-wlan-view]ap-id 2 ap-mac 00e0-fc35-6740
[AC6605-wlan-ap-2]ap-group group-2
[AC6605-wlan-view]security-profile name text-2
[AC6605-wlan-sec-prof-text-2]security wpa-wpa2 psk pass-phrase huawei123 aes
[AC6605-wlan-sec-prof-text-2]q
[AC6605-wlan-view]vap-profile name text-2
[AC6605-wlan-vap-prof-text-2]forward-mode tunnel
[AC6605-wlan-vap-prof-text-2]service-vlan vlan-id 20
[AC6605-wlan-vap-prof-text-2]ssid-profile text-2
Info: This operation may take a few seconds, please wait.done.
[AC6605-wlan-vap-prof-text-2]security-profile text-2[AC6605-wlan-ap-group-group-2]vap-profile text-2 wlan 1 radio all
STA获得IP