摘要说明:
AC管理vlan:100
AP管理vlan:101
STA业务vlan:102
SW4和AC采用静态路由协议互通
实验拓扑图:
配置命令:
SW4:
#
sysname sw4
#
vlan batch 100 101 102
#
dhcp enable
#
interface Vlanif101
ip address 192.168.101.1 255.255.255.0
dhcp select interface
dhcp server option 43 sub-option 3 ascii 192.168.100.1
#
ip pool 102
gateway-list 192.168.102.1
network 192.168.102.0 mask 255.255.255.0
#
interface Vlanif102
ip address 192.168.102.1 255.255.255.0
dhcp select global
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 101
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
#
ip route-static 192.168.100.0 255.255.255.0 192.168.101.2
SW5:
#
sysname sw5
#
vlan batch 100 101 102
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/2
port link-type trunk
port trunk pvid vlan 101
port trunk allow-pass vlan all
AR1:
#
sysname ar1
#
interface GigabitEthernet0/0/0
ip address 192.168.101.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.100.2 255.255.255.0
#
ip route-static 192.168.102.0 24 192.168.101.1
AC:
#
sysname AC
#
vlan batch 100 101 102
#
dhcp enable
#
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
#
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
#
capwap source interface vlanif100
#
wlan
security-profile name 1
security wpa psk pass-phrase 12345678 aes
ssid-profile name 1
ssid aaa
vap-profile name 1
forward-mode direct-forward
service-vlan vlan-id 102
ssid-profile 1
security-profile 1
ap auth-mode mac-auth
ap-id 1 ap-mac 00e0-fc87-6820
ap-name ap1
vap-profile 1 wlan 1 radio all
实验效果:
查看AP上线的摘要信息