文章
  • 文章
搜索

欢迎光临

我们一直在努力


热帖
更多

热帖推荐

热点
更多
详细内容

H3C交换机如何配置本地MAC地址认证及相关命令

时间:2023-03-16     【转载】   阅读

有时候一个简单的设置就可以如此简单、方便、有效的管理网络,下面来介绍一下H3C可网管交换机配置本地MAC地址认证的方法,来防止非认证MAC地址非法接入网络。

微信截图_20230316085312.png


添加本地接入用户,用户名和密码均为主机的MAC地址,以11-22-33-44-55-66MAC地址为例

system-view(进入管理模式)

local-user 11-22-33-44-55-66 (新建当前MAC地址)

password simple 11-22-33-44-55-66 (设置密码为当前MAC地址)

service-type lan-access (设置当前用户为LAN模式)

quit (退出到<>)

save (保存)

删除方法:

undo local-user 11-22-33-44-55-66 (删除当前MAC地址用户)

配置MAC地址认证的定时器。

mac-authentication timer offline-detect 400

mac-authentication timer quiet 400

配置MAC地址认证用户的账号格式:

使用带连字符的MAC地址作为用户名与密码,其中字母小写。

mac-authentication user-name-format mac-address with-hyphen lowercase

只有全局和端口的MAC地址认证均开启后,MAC地址认证配置才能在端口上生效。

mac-authentication

interface GigabitEthernet 1/0/7

[H3C-GigabitEthernet1/0/7]mac-authentication

[H3C-GigabitEthernet1/0/7]quit

微信截图_20230316085328.png

最新评论
请先登录才能进行回复登录
本站已支持IPv6
seo seo