zoukankan      html  css  js  c++  java
  • 交换

    集线器 不安全 冲突域 带宽共享

    网桥

    交换机 基于目标MAC地址转发 学习MAC地址 端口独享带宽 没有冲突 广播FF

     

    限制交换机的一个口只能连接两台电脑:

    Switch(config)#interface fastEthernet 0/4

    Switch(config-if)#switchport mode access

    Switch(config-if)#switchport port-security

    Switch(config-if)#switchport port-security violation shutdown

    Switch(config-if)#switchport port-security maximun 2

     

    将交换机的端口与mac地址绑定

    Switch(config)#interface range fastEthernet 0/1 - 24

    Switch(config-if-range)#switchport mode access

    Switch(config-if-range)#switchport port-security

    Switch(config-if-range)#switchport port-security violation shutdown

    Switch(config-if-range)#switchport port-security mac-address sticky

     

    生成树协议

    为了高可用 局域网交换机连接 有了环路

    为了阻断网络中的广播 有了生成树协议

     

    生成树

    1. 选择根交换机
    2. 选择根端口
    3. 每个网线端选择一个指定端口(那个口离交换机比较近)

     

    阻断端口

     

    查看交换机端口生成树

    Switch#show spanning-tree

    更改成为根交换机的优先级 值越小优先级越高

    Switch(config)#spanning-tree vlan 1 priority 4096

    关闭生成树协议

    Switch(config)#no spanning-tree vlan 1

  • 相关阅读:
    将已排序的数组乱序
    Roadmap!!
    测试
    最大对称字串
    约瑟夫环问题
    大家好
    MYSQL数据库导入SQL文件出现乱码如何解决
    Hibernate缓存
    Spring备忘四(涵盖Spring2.5)
    Struts2 Hello,Wold
  • 原文地址:https://www.cnblogs.com/lifi/p/7411017.html
Copyright © 2011-2022 走看看