华为交换机端口安全配置

端口安全配置,限制MAC地址

复制代码
[Huawei]int GigabitEthernet 0/0/1
 [Huawei-GigabitEthernet0/0/1]port-security enable
 [Huawei-GigabitEthernet0/0/1]port-security ?
   aging-time      Aging time    MAC地址表老化时间
  enable          Enable port security    开启端口安全
  mac-address     Mac address    绑定mac地址
  max-mac-num     Maximum mac address can learn    MAC地址最大数
  protect-action  Action if beyond the limit    超过MAC最大数执行的操作

[Huawei-GigabitEthernet0/0/1]port-security
 [Huawei-GigabitEthernet0/0/1]port-security protect-action ?
   protect   Discard packets    丢弃报文
  restrict  Discard packets and warning    丢弃报文并告警
  shutdown  Shutdown     关闭接口

[Huawei-GigabitEthernet0/0/1]port-security protect-action


 [Huawei]dis mac-address 查看所有Mac地址
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID
                VSI/SI                                              MAC-Tunnel
-------------------------------------------------------------------------------
5489-982a-3a23 1           -      -      GE0/0/1         security  -
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 1

[Huawei]
 [Huawei]dis mac-address GigabitEthernet 0/0/1    查看指定接口下的Mac地址
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID
                VSI/SI                                              MAC-Tunnel
-------------------------------------------------------------------------------
5489-982a-3a23 1           -      -      GE0/0/1         security  -
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 1

[Huawei]
复制代码


读书和健身总有一个在路上

posted @   Renqy  阅读(1374)  评论(0编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
点击右上角即可分享
微信分享提示