华为端口安全常用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

相关推荐
用户962377954482 天前
VulnHub DC-3 靶机渗透测试笔记
安全
叶落阁主3 天前
Tailscale 完全指南:从入门到私有 DERP 部署
运维·安全·远程工作
用户962377954485 天前
DVWA 靶场实验报告 (High Level)
安全
数据智能老司机5 天前
用于进攻性网络安全的智能体 AI——在 n8n 中构建你的第一个 AI 工作流
人工智能·安全·agent
数据智能老司机5 天前
用于进攻性网络安全的智能体 AI——智能体 AI 入门
人工智能·安全·agent
用户962377954485 天前
DVWA 靶场实验报告 (Medium Level)
安全
red1giant_star5 天前
S2-067 漏洞复现:Struts2 S2-067 文件上传路径穿越漏洞
安全
用户962377954485 天前
DVWA Weak Session IDs High 的 Cookie dvwaSession 为什么刷新不出来?
安全
cipher7 天前
ERC-4626 通胀攻击:DeFi 金库的"捐款陷阱"
前端·后端·安全
一次旅行10 天前
网络安全总结
安全·web安全