当前位置: 首页 > news >正文

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

http://www.lryc.cn/news/280788.html

相关文章:

  • RH850P1X芯片学习笔记-Flash Memory
  • 利用XSS漏洞打cookie
  • 用java写个redis工具类
  • 实现防抖函数
  • MetaGPT task1学习
  • 关于量子计算机的设想
  • 序列模型(4)—— Scaling Laws
  • 【软件测试学习笔记1】测试基础
  • pytorch详细探索各种cnn卷积神经网络
  • OpenCV——八邻域断点检测
  • leetcode238:除自身以外数组的乘积
  • VTK开发调试环境下载(VTK开发环境一步到位直接开发,无需自己配置编译 VS2017+Qt5.12.10+VTK)
  • 【JAVA】在 Queue 中 poll()和 remove()有什么区别
  • 常用Java代码-Java中的Optional类和null安全编程
  • android.os.NetworkOnMainThreadException
  • Java生成四位数随机验证码
  • 编程探秘:Python深渊之旅-----数据可视化(八)
  • 上海亚商投顾:创业板指冲高回落 光伏、航运股逆势走强
  • Python3 中常用字符串函数介绍
  • Python - 深夜数据结构与算法之 AVL 树 红黑树
  • Zookeeper使用详解
  • C#属性(Property)
  • 在docker中搭建部署clickhouse
  • 第九部分 使用函数 (三)
  • 基础命令继续
  • uni-app做A-Z排序通讯录、索引列表
  • Codeforces Round 768 (Div. 1) D. Flipping Range(思维题 等价类性质 dp)
  • springboot集成kafka消费数据
  • 单例模式---JAVA
  • maven管理使用