1. 组网需求
如图所示,某用户的工作站与以太网设备的端口GigabitEthernet1/0/1相连接。
设备的管理者希望在端口GigabitEthernet1/0/1上对用户接入进行MAC地址认证,以控制其对Internet的访问。
要求设备每隔180秒就对用户是否下线进行检测;并且当用户认证失败时,需等待180秒后才能对用户再次发起认证。
所有用户都属于域:***.***,认证时使用本地认证的方式。
使用用户的MAC地址做用户名和密码,其中MAC地址带连字符、字母小写。
2.组网图
启动MAC地址认证对接入用户进行本地认证
配置步骤
(1)配置本地MAC地址认证 # 添加本地接入用户。用户名和密码均为接入用户的MAC地址00e0fc123456,服务类型为lan-access。
[Device] local-user 00e0fc123456
[Device-luser-00e0fc123456] password simple 00e0fc123456
[Device-luser-00e0fc123456] service-type lan-access
[Device-luser-00e0fc123456] quit
# 配置ISP域,使用本地认证方法。
[Device] domain ***.***
[Device-isp-***.***] authentication lan-access local
[Device-isp-***.***] quit
# 开启全局MAC地址认证特性。
[Device] mac-authentication
# 开启端口GigabitEthernet1/0/1的MAC地址认证特性。
[Device] mac-authentication interface gigabitethernet 1/0/1
# 配置MAC地址认证用户所使用的ISP域。
[Device] mac-authentication domain ***.***
# 配置MAC地址认证的定时器。
[Device] mac-authentication timer offline-detect 180
[Device] mac-authentication timer quiet 180
# 配置MAC地址认证用户名格式:使用带连字符的MAC地址作为用户名与密码,其中字母小写。
[Device] mac-authentication user-name-format mac-address with-hyphen lowercase
无
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作