锐捷交换机绑定端口“IP MAC”的详细命令是什么?

2025-03-12 12:41:40
推荐回答(2个)
回答1:

switchport port-security 打开该接口的端口安全功能

switchport port-security maximum value 设置接口上安全地址的最大个数,范围是1-128,缺省值为128。

全局IP&MAC绑定+ ARP-check方案:通过全局IP+MAC绑定(address-bind)功能将用户正确的IP与MAC写入交换机的硬件表项,使用ARP-check功能校验ARP报文的正确性。如果合法用户的信息漏绑定了,或者是非法的IP,MAC接入网络,ARP校验都将失败,这样的用户将无法使用网络。

1、在接入交换机全局模式下进行IP+MAC绑定

2、在接入交换机上联口开启可信任端口

3、全局启用address-bind功能

回答2:

switchport port-security 打开该接口的端口安全功能
switchport port-security maximum value 设置接口上安全地址的最大个数,范围是1-128,缺省值为128。
switchport port-security violation{protect| restrict | shutdown} 设置处理违例的方式

switchport port-security [mac-address mac-address] [ip-address ip-address] 手工配置接口上的安全地址。
仅供参考