ensp简单ac+ap+sta无线配置和脚本

接入交换机与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的名字
ap-group default  #加了ap-group就可以释放射频了,就是WiFi

脚本

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 

注意:客户端要开机

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

灰白的奇迹

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值