交换机配置端口安全策略-绑定MAC地址

华为交换机
在交换机端口上打开端口安全功能,将 MAC 地址绑定到相对应接口中,并在 vlan1 上有效。
[SW1]interface Eth0/0/1
[SW1-Ethernet0/0/1]port-security enable
[SW1-Ethernet0/0/1]port-security mac-address sticky
[SW1-Ethernet0/0/1]port-security mac-address sticky 5489-98ca-0358 vlan 1
 
display mac-address 查看交换机与计算机之间连接的端口,类型是否变为 sticky
更换计算机后,MAC 地址不同,计算机不能通信
原文地址:https://www.cnblogs.com/kylingx/p/13214698.html