zoukankan      html  css  js  c++  java
  • CISCO-端口安全

    1.MAC地址与端口绑定,当发现主机的MAC地址与交换机上指定的MAC地址不同时 ,交换机相应的端口将down掉。当给端口指定MAC地址时,端口模式必须为access或者Trunk状况。

    3550-1#conf t 
    3550-1(config)#int f0/1 
    3550-1(config-if)#switchport mode access //指定端口模式。 
    3550-1(config-if)#switchport port-security mac-address 00-90-F5-10-79-C1 //配置MAC地址
    3550-1(config-if)#switchport port-security maximum 1 //限制此端口答应通过的MAC地址数为1。 
    3550-1(config-if)#switchport port-security violation shutdown //当发现与上述配置不符时,端口down掉

    2.通过MAC地址来限制端口流量,此配置许可一TRUNK口最多通过100个MAC地址,超过100时,但来自新的主机的数据帧将丧失。

    3550-1#conf t 
    3550-1(config)#int f0/1 
    3550-1(config-if)#switchport trunk encapsulation dot1q 
    3550-1(config-if)#switchport mode trunk //配置端口模式为TRUNK。 
    3550-1(config-if)#switchport port-security maximum 100 //答应此端口通过的最大MAC地址数目为100。 
    3550-1(config-if)#switchport port-security violation protect //当主机MAC地址数目超过100时,交流机持续工作,但来自新的主机的数据帧将丧失。
    上面的配置根据MAC地址来容许流量,下面的配置则是依据MAC地址来谢绝流量。

    3.此配置在Catalyst交流机中只能对单播流量进行过滤,对于多播流量则无效。

    3550-1#conf t 
    3550-1(config)#mac-address-table static 00-90-F5-10-79-C1 vlan 2 drop //在相应的Vlan丢弃流量。 
    3550-1#conf t 
    3550-1(config)#mac-address-table static 00-90-F5-10-79-C1 vlan 2 int f0/1 //在相应的接口丢弃流量。
  • 相关阅读:
    解决使用gomod后goland导包报红问题
    Golang写文件的坑
    Golang去除字符串前后空格
    Golang通过结构体解析和封装XML
    Golang获取CPU、内存、硬盘使用率
    Golang数组和切片的区别
    Golang修改操作系统时间
    Golang中GBK和UTF8编码格式互转
    Golang中的各种时间操作
    Golang十六进制字符串和byte数组互转
  • 原文地址:https://www.cnblogs.com/ping-y/p/5827195.html
Copyright © 2011-2022 走看看