华为端口安全常用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地址的老化时间配置一分钟,这个看情况要不要配

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

[Huawei]error-down auto-recovery cause port-security interval interal-value

相关推荐
xiaojiesec1 小时前
第159天:安全开发-Python-协议库爆破&FTP&SSH&Redis&SMTP&MYSQL等
运维·安全·ssh
世界尽头与你2 小时前
安全热点问题
安全·网络安全
小小工匠2 小时前
加密与安全_HTTPS TLS 1.2 连接(RSA 握手)的整个过程解读
安全·https·tls
爱数模的小云3 小时前
【华为杯】2024华为杯数模研赛D题 解题思路
算法·华为
low神3 小时前
前端在网络安全攻击问题上能做什么?
前端·安全·web安全
CS数模3 小时前
2024 “华为杯” 中国研究生数学建模竞赛(D题)深度剖析|大数据驱动的地理综合问题|数学建模完整代码+建模过程全解全析
大数据·数学建模·华为
CS数模3 小时前
2024 “华为杯” 中国研究生数学建模竞赛(E题)深度剖析|高速公路应急车道启用建模|数学建模完整代码+建模过程全解全析
数学建模·华为
DS数模4 小时前
2024华为杯研究生数学建模竞赛(研赛)选题建议+初步分析
数学建模·华为·华为杯·研赛·华为杯数学建模竞赛
余生爱静4 小时前
纯血鸿蒙NEXT常用的几个官方网站
华为·harmonyos
云卓科技4 小时前
无人机之激光避障篇
科技·安全·机器人·无人机·制造