目录
AP、STA的DHCP在核心交换机SW1上,AC和AC2通过环回口建立Capwap隧道
Capwap的隧道源地址,需要在为AP分配IP地址的时候在Option138指定此地址
AC配置
黑色共有配置,蓝色AC1配置,绿色AC2配置
AC基础配置
创建隧道源地址、热备地址
Interface Loopback 0
Ip address 1.1.1.1 32
Ip address 2.2.2.2 32
配置路由,使得可以访问对端的热备地址
Vlan 30
Interface vlan 30
Ip address 192.168.30.1 24
Ip address 192.168.30.2 24
Ip route 2.2.2.2 255.255.255.255 192.168.30.2
Ip route 1.1.1.1 255.255.255.255 192.168.30.1
配置路由,使得AC可以和AP互访
ip route 0.0.0.0 0.0.0.0 192.168.30.254
放行Vlan
interface gi 0/2
switchport mode trunk
switchport trunk allowed vlan add 30
配置Wlan ID、AP组(两端必须一致)
配置Wlan ID
Wlan-config 1 AP1
Ssid-code utf-8
Tunnel local
配置AP组
Ap-group Ruijie1
Interface-mapping 1 20
添加AP设备
Ap-config Ruiije-AP1
Ap-mac 0011.0022.0033
Ap-group Ruijie1
配置Capwap隧道
Ac-controller
Wqos fs enable
Capwap ctr-ip 1.1.1.1
Capwap ctr-ip 2.2.2.2
Country CN
配置热备功能
在配置完备份实例之后才可以开启热备功能
配置对端热备地址(环回口地址)
Wlan hot-backup 2.2.2.2
Wlan hot-backup 1.1.1.1
配置备份实例20(绑定业务Vlan)
Context 20
配置自身在备份实例中的优先级(越高越优先)
Priority level 7
Priority level 1
绑定AP组
Ap-group Ruijie1
启用热备功能
Wlan hot-backup enable
注意:
只有优先级为7的AC才会抢占(即故障恢复后抢占回来),默认需要等10分钟
配置WLAN安全
Wlansec 1
Security wpa enable
Security wpa ciphers aes enable
Security wpa akm psk enable
Security wpa akm psk set-key ascii admin@123
SW配置
SW1基础配置
Vlan 10:为AP分配IP地址
Vlan 20:为STA分配IP地址
Vlan 30:与AC互连
配置IP地址
Vlan 10
Vlan 20
Vlan 30
Interface vlan 30
Ip address 192.168.30.254 24
Interface vlan 10
Ip address 192.168.10.1 24
Interface vlan 20
Ip address 192.168.20.1 24
配置路由
Ip route 1.1.1.1 255.255.255.255 192.168.30.1
Ip route 2.2.2.2 255.255.255.255 192.168.30.2
放行Vlan
interface gi 0/1
switchport mode trunk
switchport trunk allowed vlan add 30
interface gi 0/3
switchport mode trunk
switchport trunk allowed vlan add 30
interface gi 0/2
switchport mode trunk
switchport trunk allowed vlan add 30,10,20
SW1上配置DHCP
service dhcp
创建DHCP地址池,为AP分配IP地址(并指定隧道源)
interface vlan 10
ip address 192.168.10.1 24
ip dhcp pool AP
network 192.168.10.0 255.255.255.0 192.168.10.100 192.168.10.200
default-router 192.168.10.1
option 138 ip 1.1.1.1 2.2.2.2 指定AC1和AC2两个隧道源
创建DHCP地址池,为STA分配IP地址
interface vlan 20
ip address 192.168.20.1 24
ip dhcp pool STA
network 192.168.20.0 255.255.255.0 192.168.20.100 192.168.20.200
default-router 192.168.20.1
SW2基础配置
放行Vlan
Vlan 10
Vlan 20
interface gi 0/2
switchport mode trunk
switchport trunk allowed vlan add 10,20
interface gi 0/1
switchport mode trunk
switchport trunk allowed vlan add 10,20
switchport trunk native vlan 10
配置信息验证
AC1上查看
AP上查看