接入交换机与ap连线配置:
interface E0/0/5
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan all
配置AC的IP配置:
[AC]Vlan 2 创建vlan 2
[AC]interface Vlanif 2 进入vlan 2
[AC-Vlanif2]ip address 192.168.80.3 24 设置一个IP地址
[AC]ip route-static 0.0.0.0 0.0.0.0 192.168.80.2 创建一条静态路由下一条指向出口路由器
[AC]capwap source interface Vlanif 2 基于vlan 2上线
接入交换机与ac连线配置:
[AC]interface GigabitEthernet 0/0/1 进入接口1
[AC-GigabitEthernet0/0/1]port link-type access 设置模式为access
[AC-GigabitEthernet0/0/1]port default vlan 2 将接口加入vlan2
#ac管理ap的统一配置:
[AC]wlan 开始配置
[AC-wlan-view]ap auth-mode no-auth 设置认证方式为不认证
[AC-wlan-view]ssid-profile name office 创建一个名为office的SSID组
[AC-wlan-ssid-prof-office]ssid WIFI 创建SSID名称
[AC-wlan-view]security-profile name office 创建名为office的密码组
[AC-wlan-sec-prof-office]security wpa2 psk pass-phrase 88888888 aes 加密方式为WPA2密码为88888888
[AC-wlan-view]vap-profile name office 创建一个关联组
[AC-wlan-vap-prof-office]ssid-profile office 关联SSID模板
[AC-wlan-vap-prof-office]security-profile office 关联密码模板
[AC-wlan-vap-prof-office]service-vlan vlan-id 2 基于vlan2分配地址
[AC-wlan-view]ap-group name default 进入默认组
[AC-wlan-ap-group-default]vap-profile office wlan 1 radio all 将这个office启用,启用2.4与5G
ap连接ac之后配置
wlan
ap-name 00e0-fc4e-34e0
ap-name area_1
ap-group default
脚本
Vlan 10
int vlanif 10
ip add 172.16.10.3 24
undo shutdown
quit
ip route-static 0.0.0.0 0.0.0.0 172.16.10.254
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10
quit
capwap source interface Vlanif 10
wlan
ap auth-mode no-auth
ssid-profile name office
ssid WIFI1
quit
security-profile name office
security wpa2 psk pass-phrase 88888888 aes
y
quit
vap-profile name office
ssid-profile office
security-profile office
service-vlan vlan-id 10
quit
ap-group name default
vap-profile office wlan 1 radio all
quit
wlan
ap-name 00e0-fc4e-34e0
ap-name area_1
ap-group default
注意:客户端要开机