WiFi启用mac地址绑定才可以上网,现在任何有户都可以上网。
(0)
参考
如图1-2所示,AP通过L2switch与无线控制器AC相连接。
· 无线控制器的管理者希望在WLAN-ESS端口上对用户接入进行MAC地址认证,以控制其对Internet的访问。
· 所有用户都属于域:***.***,认证时使用本地认证的方式。
· 使用用户的MAC地址00-e0-fc-12-34-56做为用户名和密码,其中MAC地址不带连字符、字母小写(缺省方式)。
图1-2 启动MAC地址认证对接入用户进行本地认证
(1) 在AC上配置本地MAC地址认证
# 添加本地接入用户。用户名和密码均为接入用户的MAC地址00e0fc123456,服务类型为lan-access。
[AC] local-user 00e0fc123456
[AC-luser-00e0fc123456] password simple 00e0fc123456
[AC-luser-00e0fc123456] service-type lan-access
[AC-luser-00e0fc123456] quit
# 配置ISP域,使用本地认证方式。
[AC-isp-***.***] authentication lan-access local
[AC-isp-***.***] quit
# 配置MAC地址认证用户所使用的ISP域。
[AC] mac-authentication domain ***.***
# 配置MAC地址认证的定时器。
[AC] mac-authentication timer offline-detect 180
# 使能端口安全。
# 配置无线端口安全,使用MAC地址认证。
[AC-WLAN-ESS0] port-security port-mode mac-authentication
[AC-WLAN-ESS0] quit
(2) 在AC上配置无线服务和AP
# 创建服务模板2,配置SSID为mac-authentication-local,将WLAN-ESS0接口绑定到服务模板2。
[AC-wlan-st-2] ssid mac-authentication-local
[AC-wlan-st-2] bind wlan-ess 0
[AC-wlan-st-2] authentication-method open-system
[AC-wlan-st-2] service-template enable
[AC-wlan-st-2] quit
# 配置AP:创建AP的模板,名称为ap1,型号名称选择WA3628i-AGN,并配置AP的序列号为210235A29G007C000020。
[AC] wlan ap ap1 model WA3628i-AGN
[AC-wlan-ap-ap1] serial-id 210235A29G007C000020
# 将服务模板2绑定到AP的radio 1口,并启用射频。
[AC-wlan-ap-ap1] radio 1 type dot11an
[AC-wlan-ap-ap1-radio-1] service-template 2
[AC-wlan-ap-ap1-radio-1] radio enable
[AC-wlan-ap-ap1-radio-1] return
# 无线用户通过本地MAC地址认证上线后,可以通过display mac-authentication interface WLAN-DBSS命令显示无线端口的MAC地址认证信息。
<AC> display mac-authentication interface WLAN-DBSS 0:0
MAC address authentication is enabled.
User name format is MAC address in lowercase, like xxxxxxxxxxxx
Fixed username:mac
Fixed password:not configured
Offline detect period is 180s
Quiet period is 60s
Server response timeout value is 100s
The max allowed user number is 4096 per slot
Current user number amounts to 1
Current domain is ***.***
Silent MAC User info:
MAC Addr From Port Port Index
WLAN-DBSS0:6 is link-up
MAC address authentication is enabled
Authenticate success: 0, failed: 0
Max number of on-line users is 4096
Current online user number is 1
MAC Addr Authenticate State Auth Index
00e0-fc12-3456 MAC_AUTHENTICATOR_AUTHOR 1299
# 无线用户Client认证成功后,通过在设备上执行display connection命令可以查看到已上线用户的连接信息
Index=1299,Username=00-e0-fc-l2-34-56@***.***
MAC=00-E0-FC-12-34-56
IP=N/A
IPv6=N/A
Total 1 connection(s) matched.
(0)
本地mac认证
domain name 11
authentication lan-access local
#
# 终端的mac地址
local-user 6c71d9ef9f44 class network
password cipher 6c71d9ef9f44
service-type lan-access
#
wlan service-template aaa
ssid aaa
vlan 300
client forwarding-location ap
client-security authentication-mode mac
mac-authentication domain 11
#
service-template enable
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论