华为端口安全常用3种方法配置案例

安全动态mac地址学习功能

Huawei\]int g0/0/01 interface GigabitEthernet0/0/1 port-security enable //开启安全 port-security max-mac-num 2 //最多为2个mac地址学习 port-security protect-action restrict //丢包带警告 port-security aging-time 1 //mac地址的老化时间配置一分钟,这个看情况要不要配 ![在这里插入图片描述](https://file.jishuzhan.net/article/1745597810914365441/e64fca319868f3a158b70e205451fd66.webp) ### 动态sticky绑定客户端的mac interface GigabitEthernet0/0/2 port-security enable port-security protect-action protect port-security mac-address sticky port-security max-mac-num 1 ![在这里插入图片描述](https://file.jishuzhan.net/article/1745597810914365441/3471e5e9304a37e776088df890ba4e57.webp) sticky中的设备mac表保存在dir文件中(一定得先设备save后才能有这个文件): ![在这里插入图片描述](https://file.jishuzhan.net/article/1745597810914365441/a17ba91aebc75acfd4c6341bbdc04dfc.webp) ### 手工静态sticky绑定客户端的mac interface GigabitEthernet0/0/3 port-security enable port-security protect-action shutdown port-security max-mac-num 2 port-security mac-address sticky port-security mac-address sticky 5489-98CE-1A06 vlan 1 可在全局下设置shutdown的端口自动恢复时间 \[Huawei\]error-down auto-recovery cause port-security interval interal-value

相关推荐
前端世界30 分钟前
设备找不到、Ability 启不动?一次讲清 DevEco Studio 调试鸿蒙分布式应用
华为·harmonyos
菩提小狗35 分钟前
Sqlmap双击运行脚本,双击直接打开。
前端·笔记·安全·web安全
●VON2 小时前
跨模态暗流:多模态安全攻防全景解析
人工智能·学习·安全·von
廋到被风吹走2 小时前
【Spring】Spring Boot 配置管理深度指南:Profile、类型安全与加密
spring boot·安全·spring
王火火(DDoS CC防护)3 小时前
多域名业务如何做好DDoS安全防护?
安全·ddos防御·ddos攻击
维构lbs智能定位4 小时前
基于UWB定位技术的工地安全管理系统从技术原理到功能应用详解
网络·安全·工地安全管理系统
上海云盾第一敬业销售4 小时前
CC防护最佳实践:架构解析与实战经验
安全·ddos
●VON4 小时前
可信 AI 认证:从技术承诺到制度信任
人工智能·学习·安全·制造·von
小雨下雨的雨4 小时前
Flutter 框架跨平台鸿蒙开发 —— Row & Column 布局之轴线控制艺术
flutter·华为·交互·harmonyos·鸿蒙系统
小雨下雨的雨5 小时前
Flutter 框架跨平台鸿蒙开发 —— Center 控件之完美居中之道
flutter·ui·华为·harmonyos·鸿蒙