wlan配置——瘦AP配置【拓扑简单,代码详细,命令解释】

拓扑

在这里插入图片描述

配置

LSW2配置

二层交换嘛,不配也行。

vlan 10
int e0/0/1
port link-type trunk
port trunk allow-pass vlan 10

int e0/0/2
port link-type access
port default vlan 10

int e0/0/2
port link-type access
port default vlan 10

LSW1配置

vlan batch 10 30

int vlan 10
ip add 192.168.1.254 24

int vlan 30
ip add 1.1.1.2 24

int g0/0/1
port link-type trunk
port trunk allow-pass vlan 10

int g0/0/2
port link-type trunk
port trunk allow-pass vlan all

dhcp enable

ip pool forap
gateway-list 192.168.1.254
network 192.168.1.0 mask 255.255.255.0
option 43 sub-option 2 ip-address 1.1.1.1
上面这句这是重点。

interface Vlanif 10
dhcp select global
三层交换要在是vlanif调用全局地址池。

AC1配置

1.有线配置

vlan 30

int vlan 30
ip add 1.1.1.1 24

ip route-static 192.168.1.0 24 1.1.1.2

int g0/0/1
port link-type trunk
port trunk allow-pass vlan all

2.模板配置

wlan

管理模板配置

[AC6005-wlan-view]regulatory-domain-profile name dom
命令解释:
创建名为dom的管理模板。
[AC6005-wlan-regulate-domain-dom]country-code cn
命令解释:
设置国家码为cn,中国是cn。
Info: The current country code is same with the input country code.
[AC6005-wlan-regulate-domain-dom]q

ssid模板配置

这个模板将被引用到4G射频,不理解没关系慢慢看。
[AC6005-wlan-view]ssid-profile name ssid-cfg-1
命令解释:
创建名为 ssid-cfg-1的ssid模板。
[AC6005-wlan-ssid-prof-ssid-cfg-2]ssid wifi-2.4GHz
命令解释:
将ssid命名为wifi-2.4GHz,即WiFi的名称。
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-ssid-prof-ssid-cfg-2]q

这个模板将被引用到5G射频。
[AC6005-wlan-view]ssid-profile name ssid-cfg-2
[AC6005-wlan-ssid-prof-ssid-cfg-2]ssid wifi-5GHz
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-ssid-prof-ssid-cfg-2]q

安全模板配置

[AC6005-wlan-view]security-profile name sec
命令解释:
创建名为sec的安全模板。
[AC6005-wlan-sec-prof-sec]security wpa-wpa2 psk pass-phrase a1234567 aes
命令解释:
配置 wpa-wpa2 psk的安全策略,密码为a1234567,密码加密方式为aes.
[AC6005-wlan-sec-prof-sec]q

VAP模板配置

[AC6005-wlan-view]vap-profile name vap-cfg-1
命令解释:
创建名为vap-cfg-1的VAP模板。
[AC6005-wlan-vap-prof-vap-cfg-1]forward-mode direct-forward
命令解释:
将AP的转发方式设定为直接转发。
[AC6005-wlan-vap-prof-vap-cfg-1]security-profile sec
命令解释:
引用名为sec的安全模板。
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-vap-cfg-1]ssid-profile ssid-cfg-1
命令解释:
引用名为ssid-cfg-1的ssid模板,引用这个模板无线信号会显示为wifi-2.4GHz,理解上面的ssid模板没有哇。
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-vap-cfg-1]q

[AC6005-wlan-view]vap-profile name vap-cfg-2
[AC6005-wlan-vap-prof-vap-cfg-2]forward-mode direct-forward
[AC6005-wlan-vap-prof-vap-cfg-2]security-profile sec
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-vap-cfg-2]ssid-profile ssid-cfg-2
Info: This operation may take a few seconds, please wait.done.
[AC6005-wlan-vap-prof-vap-cfg-2]q

AP组配置

[AC6005-wlan-view]ap-group name ap-g
命令解释:
创建名为ap-g的AP组。
进入到名为ap-g的AP组也用这句命令。
[AC6005-wlan-ap-group-ap-g]regulatory-domain-profile dom
命令解释:
引用名为dom的管理模板,需提前创建。
Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:y
[AC6005-wlan-ap-group-ap-g]vap-profile vap-cfg-1 wlan 1 radio 0
命令解释:
在编号为1的wlan中,编号为0的radio射频引用名为vap-cfg-1的VAP模板。
编号为0的radio射频是4G。
Info: This operation may take a few seconds, please wait…done.
[AC6005-wlan-ap-group-ap-g]vap-profile vap-cfg-2 wlan 1 radio 1
命令解释:
在编号为1的wlan中,编号为1的radio射频引用名为vap-cfg-2的VAP模板。
编号为1的radio射频是5G。
Info: This operation may take a few seconds, please wait…done.

3.AP上线

选定认证方式

[AC6005-wlan-view]ap auth-mode mac-auth
命令解释:ap的认证方式为mac-auth,即mac地址认证。

AP1上线

[AC6005-wlan-view]ap-id 1 ap-mac 00e0-fc07-0840
命令解释:硬件地址为00e0-fc07-0840的AP上线,编号为1
[AC6005-wlan-ap-1]ap-group ap-g
命令解释:将编号为1的AP添加到名为ap-g的AP组
Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment… done.

AP2上线

[AC6005-wlan-view]ap-id 2 ap-mac 00e0-fc55-7750
[AC6005-wlan-ap-2]ap-group ap-g
Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configurations of the radio, Whether to continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment… done.
[AC6005-wlan-ap-2]q
[AC6005-wlan-view]q

capwap命令

[AC6005]capwap source interface vlanif 30

注意:这句命令并不是在WLAN视图下配置的。

检测

有这两个大圈圈就表示OK了
在这里插入图片描述
如果对ssid模板还是不理解,可以看下图。
在这里插入图片描述

总结

首先:capwap那句命令容易漏掉。
其次:在配置dhcp地址池的时候,option 43这句容易漏掉。
再次:必须得先option 43再dhcp select global,不能已经dhcp select global发现没option 43 ,再去配置option 43,知道为啥嘛?因为分配的dhcp地址和地址池中的东西已经生效,还在租期之内,使用的是没有option 43的地址池中的东西。

最后:这些都是交换机,配IP地址请到vlaif,dhcp select global也一样。

如果有收获,嘿嘿,点个赞呗!

  • 19
    点赞
  • 72
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值