进入端口g0/0/1
interface GigabitEthernet0/0/1启用端口安全
port-security enableMAC地址绑定持久化
port-security mac-address sticky以上步骤每个需要绑定的端口都要做一遍
在全局模式下使用命令绑定mac及ip,ip及mac地址按需更改
user-bind static ip-address 10.10.1.1 mac-address 8888-8888-8888 interface GigabitEthernet 0/0/1 vlan 10查看端口绑定列表
display dhcp static user-bind all
解除mac地址绑定
删除所有绑定表信息
undo user-bind static删除指定端口的所有表项
undo user-bind static interface gigabitethernet 1/0/1删除指定vlan的所有表项
undo user-bind static vlan 10删除指定地址及mac
undo user-bind static ip-address 10.10.1.1 mac-address 8888-8888-8888undo user-bind static ip-address 10.10.1.2 mac-address 8888-8888-8889 interface gigabitethernet 0/0/2删除指定vlan的所有表项
undo user-bind static vlan 10
![图片[1]-华为交换机端口绑定mac及ip地址增强网络安全性-sys.ceo](https://sys.ceo/wp-content/uploads/2024/10/enspmac-300x204.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








暂无评论内容