4lqedz 发表于 2024-8-31 10:11:10

二层网络优化办法举荐


    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/c69fb7a01fab4354a20d5e50806396a6~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1725640106&amp;x-signature=VjQ2ADc0kIYIExwRzV8HtHkdAWs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">1、</span>概述</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">1、定义</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">因为</span>传统的二层网络会<span style="color: black;">显现</span>环路问题,本文档介绍了<span style="color: black;">怎样</span><span style="color: black;">处理</span>环路以及在运行STP的传统二层网络中的<span style="color: black;">关联</span>优化技术,<span style="color: black;">关联</span>技术适用于园区网,数据中心二层网络架构等应用场景。除Port-Fast与BPDU-Guard<span style="color: black;">协同</span><span style="color: black;">运用</span>外,其它技术可<span style="color: black;">按照</span><span style="color: black;">实质</span><span style="color: black;">状况</span>进行<span style="color: black;">选取</span><span style="color: black;">运用</span>。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">2、</span>适用于以下<span style="color: black;">制品</span></h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">⊙S5960L系列交换机 ⊙ S5960系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙S6650L系列交换机 ⊙S6650系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙S6850系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙CN6100-V系列交换机(CN61108PC-V/CN61108TC-V/CN6132Q-V)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙CN6048TP-1GE</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">⊙CN8K系列交换机(CN8672UP-16G/CN8648Q/CN8696Q)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙CN9K系列交换机(CN93240)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙CN127系列(CN12706/CN12710)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙CN129系列(CN12904/CN12908)</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">3、</span>优化技术目录</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙ STP-Mode ⊙ Port-Fast</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙ Bpdu-Guard ⊙ Bpdu-Filter</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">⊙ Storm-Control ⊙ Loop-Guard</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ⊙ Root-Guard</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">4、</span>优化技术概述</h1><strong style="color: blue;">STP-Mode(生成树模式)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">日前</span>存在有多种STP模式;公有标准依次为STP、RSTP、MSTP;私有标准有:PVST、PVST+等;<span style="color: black;">针对</span>同一个二层网络<span style="color: black;">来讲</span>,<span style="color: black;">举荐</span>整网<span style="color: black;">运用</span>同一种模式;以此来实现<span style="color: black;">区别</span>厂商之间的对接;802.1d(STP)是最早的生成树版本,存在收敛速度慢等缺点;802.1w(RSTP)是802.1d的进阶版本,优点为收敛速度的<span style="color: black;">提高</span>,缺点为每<span style="color: black;">增多</span>一个VLAN,全网链路带宽,设备性能就需要<span style="color: black;">增多</span>一份<span style="color: black;">包袱</span>;802.1S(MSTP)<span style="color: black;">做为</span>802.1w的进阶版本,即<span style="color: black;">拥有</span>收敛速度快的特点,又引入实例的概念,降低了STP的<span style="color: black;">守护</span>量。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为<span style="color: black;">认识</span>决链路冗余<span style="color: black;">导致</span>的环路问题</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经过</span>相对应的计算,在一个环网<span style="color: black;">其中</span><span style="color: black;">规律</span>的阻塞掉一个接口,来破掉环路</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">全网交换机;应用过程中,需要<span style="color: black;">重视</span>全网需要有统一的region-name与reversion及instance-vlan对应关系</p><strong style="color: blue;">Port-Fast(快速端口)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">使接口快速的从不可用(Down)状态过渡到转发(Forwarding)状态。Port-Fast接口的UP/Down不会<span style="color: black;">诱发</span>STP的震荡。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在连接到主机的接口,正常<span style="color: black;">状况</span>下需要等待30s(2*Forwarding Delay)<span style="color: black;">才可</span>进入正常的转发状态;<span style="color: black;">这里</span><span style="color: black;">时期</span><span style="color: black;">重点</span>进行STP的<span style="color: black;">关联</span>计算,收敛等<span style="color: black;">行径</span>;而连接主机的接口<span style="color: black;">通常</span>不需要参与到生成树计算<span style="color: black;">其中</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当接口配置成该模式,连接主机时,该接口会<span style="color: black;">快速</span>的从不可用(Down)状态转变成转发(Forwarding)状态。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1)<span style="color: black;">安排</span>在接入层交换机连接主机的接口</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2)连接主机的接口<span style="color: black;">能够</span>是接入(Access)接口<span style="color: black;">亦</span><span style="color: black;">能够</span>是主干(Trunk)接口;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3)严禁将Port-Fast接口与交换机相连</p><strong style="color: blue;">BPDU-Guard(BPDU防护)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">防止从Port-Fast接口接收到BPDU报文;当Port-Fast接口收到BPDU后,会将接口置于err-disable状态;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了弥补Port-Fast的缺点(连接交换机容易形成环路的问题)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当接口收到STP BPDU报文时,会立刻将接口<span style="color: black;">处在</span>err-disable状态;默认<span style="color: black;">状况</span>下需要管理员进行人工<span style="color: black;">干涉</span>后该接口<span style="color: black;">才可</span>正常<span style="color: black;">运用</span>,或采用自动恢复的方式,在不<span style="color: black;">小于</span>30s的延时时间后,重新启用该接口。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1)开启Port-Fast功能的接口或单独<span style="color: black;">运用</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2)开启该功能前需要确认OVS/VSwitch等<span style="color: black;">是不是</span>运行STP;如运行STP不<span style="color: black;">意见</span>开启该功能。</p><strong style="color: blue;">BPDU-Filter(BPDU过滤)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"> 简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">BPDUFilter<span style="color: black;">亦</span>叫BPDU过滤,它的<span style="color: black;">道理</span>是在某个端口上过滤BPDU的发送和接收;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为<span style="color: black;">认识</span>决边缘端口参与生成树计算,从而<span style="color: black;">帮忙</span>网络拓扑的收敛时间以及加强网络的稳定性,可能<span style="color: black;">引起</span>BPDU报文发送到其他网络,<span style="color: black;">导致</span>其他网络震荡。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当接口收到STP BPDU时,不会发送BPDU报文,并丢弃接收到的BPDU报文</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1)<span style="color: black;">通常</span><span style="color: black;">运用</span>在边缘端口。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2)当上联设备不<span style="color: black;">期盼</span>接收到BPDU报文时。</p><strong style="color: blue;">Strom-Control(风暴<span style="color: black;">掌控</span>)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经过</span>预设的接口带宽比例来<span style="color: black;">控制</span>BUM(Broadcast,unknown Unicast,Multicast)报文,避免BUM占用<span style="color: black;">海量</span>带宽资源。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">错误的网络配置极其容易在网络中产生<span style="color: black;">海量</span>的BUM报文;一旦形成风暴,整网<span style="color: black;">其中</span>的BUM个数会以几何倍数增长,<span style="color: black;">从而</span><span style="color: black;">引起</span>网络带宽拥塞;部分BUM报文<span style="color: black;">不仅</span>会占用链路带宽资源,<span style="color: black;">亦</span>会消耗<span style="color: black;">关联</span>设备资源(ARP Request报文等)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经过</span>在设备接口配置阈值来限定BUM报文占用带宽总数的百分比,当超出阈值时进行丢弃;来<span style="color: black;">保准</span>网络<span style="color: black;">其中</span>的链路带宽;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层交换机连接主机的接口</p><strong style="color: blue;">Loop-Guard(环路防护)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">用于防止因光纤链路单通<span style="color: black;">引起</span>的环路问题</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当前光纤在DC<span style="color: black;">其中</span><span style="color: black;">海量</span><span style="color: black;">运用</span>,光模块能够接受到光,<span style="color: black;">就可</span>将接口点亮;当一个链路<span style="color: black;">显现</span>单向故障的时候,<span style="color: black;">因为</span>Blocking端口在MAX_AGE之内收不到最佳BPDU,<span style="color: black;">因此呢</span><span style="color: black;">引起</span> Blocking端口过渡到Forwarding状态,从而<span style="color: black;">引起</span>了环路的产生。为避免这一<span style="color: black;">状况</span>,<span style="color: black;">因此</span><span style="color: black;">运用</span>LoopGuard</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在启用了Loop Guard的非指定端口上<span style="color: black;">不可</span>再收到BPDU,交换机端口将进入“不一致环路(Loop-inconsistent)”的阻塞状态,不<span style="color: black;">准许</span>其经历Listening,Learning进入Forwarding状态</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层交换机上启用;</p><strong style="color: blue;">Root-Guard(根防护)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">简介</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">避免现网环境<span style="color: black;">显现</span>新的主对网络<span style="color: black;">导致</span>冲击,<span style="color: black;">诱发</span>全网收敛等问题。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">产生<span style="color: black;">原由</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当网络环境<span style="color: black;">其中</span>有<span style="color: black;">知道</span>固定的跟桥时,为防止<span style="color: black;">违法</span>用户<span style="color: black;">运用</span>软件或设备模拟根桥对现网<span style="color: black;">导致</span>冲击等问题</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">工作机制</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在启用了Root-Guard功能的接口上,<span style="color: black;">不可</span>再接受到配置BPDU(由根桥发出);当收到配置BPDU时,将对该接口进行入向阻塞。当不在收到配置BPDU时,将自动打开盖接口</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">应用范围</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">交换机的指定接口</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">5、</span>现网应用<span style="color: black;">危害</span>等级<span style="color: black;">评定</span>表</h1>
    <div style="color: black; text-align: left; margin-bottom: 10px;">
      <div style="color: black; text-align: left; margin-bottom: 10px;">
            <div style="color: black; text-align: left; margin-bottom: 10px;">
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">序号</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">名<span style="color: black;">叫作</span></p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">危害</span>等级</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">应用范围</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">STP-Mode</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">高</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">整网设备</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Port-Fast</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">低</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">BPDU-Guard</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">低</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">BPDU-Filter</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">低</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-Control</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">低</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Loop-Guard</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">低</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">接入层</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Root-Guard</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">中</p>
                <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">汇聚层/核心层</p>
            </div>
      </div>
    </div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">6、</span><span style="color: black;">关联</span>配置命令</h1><strong style="color: blue;">STP-Mode(更改配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mode mst</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,更改模式为mst</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst configuration</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> //进入mst配置模式</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Instance1 vlan 10,20,30</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置实例与vlan的对应关系,默认所有vlan<span style="color: black;">处在</span>实例0<span style="color: black;">其中</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Instance2 vlan 40,50,60</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Revision1</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置revision信息,全网统一</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Nameinspur</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置region-name,全网统一,默认为空;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst 1 priority 4096</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,配置实例1的优先级为4096</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst 2 priority root primary</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,配置实例2的优先级为4096</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mode mst</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,更改模式为mst</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst configuration</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//进入mst配置模式</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Instance1 vlan 10,20,30</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置实例与vlan的对应关系,默认所有vlan<span style="color: black;">处在</span>实例0<span style="color: black;">其中</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Instance2 vlan 40,50,60</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Revision1</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置revision信息,全网统一</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Nameinspur</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//设置region-name,全网统一,默认为空;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst 1 priority 4096</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,配置实例1的优先级为4096</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree mst 2 priority root primary</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置模式,配置实例2的优先级为4096</p><strong style="color: blue;">Port-Fast(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree portfast //接口下执行</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree port type edge //接口下执行,接口为Access接口</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree port type edge trunk //接口下执行,接口为Trunk接口</p><strong style="color: blue;">BPDU-Guard(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree bpduguard enable //接口下执行</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree bpduguard enable //接口下执行</p><strong style="color: blue;">BPDU-Filter(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree bpdufilter enable //接口下执行</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree bpdufilter enable //接口下执行</p><strong style="color: blue;">Strom-Control(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control action trap/shutdown </p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置动<span style="color: black;">做为</span>trap或shutdown(err-disable)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control broadcast level 10.00 </p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置广播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control multicast level 10.00</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置组播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control unknown-unicast level 10.00</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置未知单播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">snmp-server enabletraps storm-control trap-rate 100</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置执行,<span style="color: black;">倘若</span>action为trap必须要配置该条,并启用snmp-server host等<span style="color: black;">关联</span>配置信息;设置发送风暴<span style="color: black;">掌控</span>信息,速率为100报文/分钟</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">CN系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control action trap/shutdown</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置动<span style="color: black;">做为</span>trap或shutdown(err-disable)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control broadcast level 10.00</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置广播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control multicast level 10.00</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置组播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Storm-control unicast level 10.00</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下执行,设置单播报文阈值为带宽的10%</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">snmp-server enabletraps storm-control trap-rate 100</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//全局配置执行,<span style="color: black;">倘若</span>action为trap必须要配置该条,并启用snmp-server host等<span style="color: black;">关联</span>配置信息;设置发送风暴<span style="color: black;">掌控</span>信息,速率为100报文/分钟</p><strong style="color: blue;">Loop-Guard(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">S系列交换机</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree guard loop</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下启用</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">CN系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree guard loop</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下启用</p><strong style="color: blue;">Root-Guard(新增配置)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">S系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree guard root</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下启用</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">CN系列交换机</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Spanning-tree guard root</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">//接口下启用</p>




4lqedz 发表于 2024-10-1 20:44:11

你字句如珍珠,我珍藏这份情。

wrjc1hod 发表于 2024-10-4 19:48:34

交流如星光璀璨,点亮思想夜空。

7wu1wm0 发表于 2024-10-25 13:21:17

你的见解独到,让我受益匪浅,非常感谢。

nykek5i 发表于 2024-10-27 03:28:21

“BS”(鄙视的缩写)‌
页: [1]
查看完整版本: 二层网络优化办法举荐