端口安全
LSW1
#
interface GigabitEthernet0/0/1
 port-security enable      //开启端口安全,该接口就只允许一个MAC地址通信
#
[Huawei-GigabitEthernet0/0/1]port-security mac-address sticky ?
  H-H-H  Mac address       //绑定特定的MAC地址
[Huawei-GigabitEthernet0/0/1]port-security max-mac-num ?   //最多可以通过几个mac地址
  INTEGER<1-4096>  Maximum mac address can learn
[Huawei-GigabitEthernet0/0/1]port-security ?
  aging-time      Aging time
  enable          Enable port security
  mac-address     Mac address
  max-mac-num     Maximum mac address can learn
  protect-action  Action if beyond the limit
[Huawei-GigabitEthernet0/0/1]port-security pr    
[Huawei-GigabitEthernet0/0/1]port-security protect-action ?
  protect   Discard packets
  restrict  Discard packets and warning
  shutdown  Shutdown 
      
       转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 2924854739@qq.com
文章标题:
本文作者:DROBP
发布时间:2020-07-29, 09:51:46
最后更新:2020-07-29, 09:52:36
原始链接:https://DROBP.github.io/2020/07/29/端口安全/版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。