在端口安全(port-security)的 autoLearn 模式下,才能使用 `port-security mac-address security` 命令来配置安全 MAC 地址。因此,若要在 secure 状态下配置安全地址,需先将端口配置为 autoLearn 模式。 配置步骤如下: 1. 进入接口视图: ``` interface <interface-type> <interface-number> ``` 2. 启用端口安全并设置学习模式为 autoLearn: ``` port-security enable port-security learn-mode autoLearn ``` 3. 配置安全 MAC 地址: ``` port-security mac-address security <mac-address> ``` 注意:只有在 `autoLearn` 模式下,`port-security mac-address security` 命令才可用。否则设备会提示错误。 总结:必须将端口的学习模式设为 autoLearn,才能使用该命令配置安全 MAC 地址。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论