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

安全动态mac地址学习功能

Huaweiint 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地址的老化时间配置一分钟,这个看情况要不要配

动态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

sticky中的设备mac表保存在dir文件中(一定得先设备save后才能有这个文件):

手工静态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的端口自动恢复时间

Huaweierror-down auto-recovery cause port-security interval interal-value

相关推荐
一次旅行12 小时前
2026‑09‑16 AI产业深度解读|GPT‑5.5即将下线迁移、AI安全路线大辩论、Perplexity自研数据库大幅降本
人工智能·安全·开源
伩仁13 小时前
你的"地址栏"是画出来的:一次 Steam 盗号事件的完整技术复盘
安全
hasty13 小时前
一条 PATH 怎样让依赖包接管构建命令:pnpm 12.4.2 安全更新
安全·安全威胁分析
Raas10013 小时前
AI网关支持OpenAI吗?MAI Gateway(魔芋企业级AI网关)实战能力深度解读
网关·安全·大模型·ai网关·mai gateway·魔芋·企业级产品
Acrellea14 小时前
告别粗放式能耗管理!安科瑞EIOT平台助力产业园区智慧低碳运营
运维·安全·能源
迪康coolmu15 小时前
企业文件外发管控落地实践 —— 基于迪康端点安全一体化管理系统
运维·网络·经验分享·安全
马剑威(威哥爱编程)15 小时前
【共创稿事节】HarmonyOS 7 互动卡片实战:摇一摇触发静态转动态,前景元素出框
华为·harmonyos
马剑威(威哥爱编程)16 小时前
【共创稿事节】HarmonyOS 7 闪控窗实战:标准悬浮窗、侧边栏暂存与闪控球一键切换
华为·harmonyos
yu_zhidun17 小时前
终端安全EDR项目落地踩坑与能力补全实战
安全·数据安全·edr·域智盾软件
ynchyong18 小时前
为自己科普DTLS
安全·数据传输