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

  • 相关阅读:
    Docker03-镜像
    Docker02:Centos7.6安装Docker
    Docker01-重要概念
    WEB开发新人指南
    Lpad()和Rpad()函数
    Unable to find the requested .Net Framework Data Provider. It may not be installed
    redis自动过期
    redis简单的读写
    redis的安装
    Ajax缓存,减少后台服务器压力
  • 原文地址:https://www.cnblogs.com/lifi/p/7411017.html
Copyright © 2011-2022 走看看