一、MSTP 基础概念:多实例生成树协议概述
1.1 MSTP 概述
MSTP(Multiple Spanning Tree Protocol)是一种多实例生成树协议,它允许将多个 VLAN 划分到不同的生成树实例中,从而实现负载均衡和冗余备份。MSTP 通过将 VLAN 分组到不同的实例中,每个实例独立运行生成树算法,从而避免了传统 STP 协议中所有 VLAN 共享一个生成树的问题。
1.2 MSTP 优势
MSTP 的主要优势包括:
- 负载均衡:通过将不同 VLAN 分配到不同实例,实现链路负载均衡
- 冗余备份:每个实例独立运行,提供冗余备份
- 兼容性:与 STP/RSTP 兼容,支持平滑升级
- 简化管理:通过实例管理多个 VLAN,简化网络管理
#publish-mermaid-0-1793099037901{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-0-1793099037901 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-0-1793099037901 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-0-1793099037901 .error-icon{fill:#552222;}#publish-mermaid-0-1793099037901 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-0-1793099037901 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-0-1793099037901 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-0-1793099037901 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-0-1793099037901 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-0-1793099037901 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-0-1793099037901 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-0-1793099037901 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-0-1793099037901 .marker.cross{stroke:#333333;}#publish-mermaid-0-1793099037901 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-0-1793099037901 p{margin:0;}#publish-mermaid-0-1793099037901 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-0-1793099037901 .cluster-label text{fill:#333;}#publish-mermaid-0-1793099037901 .cluster-label span{color:#333;}#publish-mermaid-0-1793099037901 .cluster-label span p{background-color:transparent;}#publish-mermaid-0-1793099037901 .label text,#publish-mermaid-0-1793099037901 span{fill:#333;color:#333;}#publish-mermaid-0-1793099037901 .node rect,#publish-mermaid-0-1793099037901 .node circle,#publish-mermaid-0-1793099037901 .node ellipse,#publish-mermaid-0-1793099037901 .node polygon,#publish-mermaid-0-1793099037901 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-0-1793099037901 .rough-node .label text,#publish-mermaid-0-1793099037901 .node .label text,#publish-mermaid-0-1793099037901 .image-shape .label,#publish-mermaid-0-1793099037901 .icon-shape .label{text-anchor:middle;}#publish-mermaid-0-1793099037901 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-0-1793099037901 .rough-node .label,#publish-mermaid-0-1793099037901 .node .label,#publish-mermaid-0-1793099037901 .image-shape .label,#publish-mermaid-0-1793099037901 .icon-shape .label{text-align:center;}#publish-mermaid-0-1793099037901 .node.clickable{cursor:pointer;}#publish-mermaid-0-1793099037901 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-0-1793099037901 .arrowheadPath{fill:#333333;}#publish-mermaid-0-1793099037901 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-0-1793099037901 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-0-1793099037901 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-0-1793099037901 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-0-1793099037901 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-0-1793099037901 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-0-1793099037901 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-0-1793099037901 .cluster text{fill:#333;}#publish-mermaid-0-1793099037901 .cluster span{color:#333;}#publish-mermaid-0-1793099037901 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-0-1793099037901 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-0-1793099037901 rect.text{fill:none;stroke-width:0;}#publish-mermaid-0-1793099037901 .icon-shape,#publish-mermaid-0-1793099037901 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-0-1793099037901 .icon-shape p,#publish-mermaid-0-1793099037901 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-0-1793099037901 .icon-shape .label rect,#publish-mermaid-0-1793099037901 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-0-1793099037901 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-0-1793099037901 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-0-1793099037901 .node .neo-node{stroke:#9370DB;}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node rect,#publish-mermaid-0-1793099037901 [data-look=\”neo\”].cluster rect,#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1793099037901 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1793099037901 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
VLAN 分组
实例 1
实例 2
实例 3
生成树 1
生成树 2
生成树 3
负载均衡
该图展示了 MSTP 将多个 VLAN 分组到不同实例,每个实例独立运行生成树算法,实现负载均衡。
二、多实例生成树配置:配置步骤详解
2.1 配置 MSTP 域
配置 MSTP 域是 MSTP 配置的第一步,需要指定域 ID 和修订级别。
#publish-mermaid-1-1793099038034{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1-1793099038034 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1-1793099038034 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1-1793099038034 .error-icon{fill:#552222;}#publish-mermaid-1-1793099038034 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1-1793099038034 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1-1793099038034 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1-1793099038034 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1-1793099038034 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1-1793099038034 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1-1793099038034 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1-1793099038034 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1-1793099038034 .marker.cross{stroke:#333333;}#publish-mermaid-1-1793099038034 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1-1793099038034 p{margin:0;}#publish-mermaid-1-1793099038034 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-1-1793099038034 .cluster-label text{fill:#333;}#publish-mermaid-1-1793099038034 .cluster-label span{color:#333;}#publish-mermaid-1-1793099038034 .cluster-label span p{background-color:transparent;}#publish-mermaid-1-1793099038034 .label text,#publish-mermaid-1-1793099038034 span{fill:#333;color:#333;}#publish-mermaid-1-1793099038034 .node rect,#publish-mermaid-1-1793099038034 .node circle,#publish-mermaid-1-1793099038034 .node ellipse,#publish-mermaid-1-1793099038034 .node polygon,#publish-mermaid-1-1793099038034 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1-1793099038034 .rough-node .label text,#publish-mermaid-1-1793099038034 .node .label text,#publish-mermaid-1-1793099038034 .image-shape .label,#publish-mermaid-1-1793099038034 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1-1793099038034 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1-1793099038034 .rough-node .label,#publish-mermaid-1-1793099038034 .node .label,#publish-mermaid-1-1793099038034 .image-shape .label,#publish-mermaid-1-1793099038034 .icon-shape .label{text-align:center;}#publish-mermaid-1-1793099038034 .node.clickable{cursor:pointer;}#publish-mermaid-1-1793099038034 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1-1793099038034 .arrowheadPath{fill:#333333;}#publish-mermaid-1-1793099038034 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1-1793099038034 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1-1793099038034 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1-1793099038034 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1-1793099038034 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1-1793099038034 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1-1793099038034 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1-1793099038034 .cluster text{fill:#333;}#publish-mermaid-1-1793099038034 .cluster span{color:#333;}#publish-mermaid-1-1793099038034 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1-1793099038034 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1-1793099038034 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1-1793099038034 .icon-shape,#publish-mermaid-1-1793099038034 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1-1793099038034 .icon-shape p,#publish-mermaid-1-1793099038034 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1-1793099038034 .icon-shape .label rect,#publish-mermaid-1-1793099038034 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1-1793099038034 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1-1793099038034 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1-1793099038034 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node rect,#publish-mermaid-1-1793099038034 [data-look=\”neo\”].cluster rect,#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1793099038034 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1793099038034 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
进入系统视图
配置 MSTP 域 ID
配置 MSTP 修订级别
配置 MSTP 域名称
完成 MSTP 域配置
该图展示了配置 MSTP 域的基本步骤。
2.2 配置生成树实例
配置生成树实例需要指定实例 ID 和 VLAN 列表。
#publish-mermaid-2-1793099038118{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-2-1793099038118 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-2-1793099038118 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-2-1793099038118 .error-icon{fill:#552222;}#publish-mermaid-2-1793099038118 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-2-1793099038118 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-2-1793099038118 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-2-1793099038118 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-2-1793099038118 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-2-1793099038118 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-2-1793099038118 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-2-1793099038118 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-2-1793099038118 .marker.cross{stroke:#333333;}#publish-mermaid-2-1793099038118 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-2-1793099038118 p{margin:0;}#publish-mermaid-2-1793099038118 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-2-1793099038118 .cluster-label text{fill:#333;}#publish-mermaid-2-1793099038118 .cluster-label span{color:#333;}#publish-mermaid-2-1793099038118 .cluster-label span p{background-color:transparent;}#publish-mermaid-2-1793099038118 .label text,#publish-mermaid-2-1793099038118 span{fill:#333;color:#333;}#publish-mermaid-2-1793099038118 .node rect,#publish-mermaid-2-1793099038118 .node circle,#publish-mermaid-2-1793099038118 .node ellipse,#publish-mermaid-2-1793099038118 .node polygon,#publish-mermaid-2-1793099038118 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-2-1793099038118 .rough-node .label text,#publish-mermaid-2-1793099038118 .node .label text,#publish-mermaid-2-1793099038118 .image-shape .label,#publish-mermaid-2-1793099038118 .icon-shape .label{text-anchor:middle;}#publish-mermaid-2-1793099038118 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-2-1793099038118 .rough-node .label,#publish-mermaid-2-1793099038118 .node .label,#publish-mermaid-2-1793099038118 .image-shape .label,#publish-mermaid-2-1793099038118 .icon-shape .label{text-align:center;}#publish-mermaid-2-1793099038118 .node.clickable{cursor:pointer;}#publish-mermaid-2-1793099038118 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-2-1793099038118 .arrowheadPath{fill:#333333;}#publish-mermaid-2-1793099038118 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-2-1793099038118 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-2-1793099038118 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-2-1793099038118 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-2-1793099038118 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-2-1793099038118 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-2-1793099038118 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-2-1793099038118 .cluster text{fill:#333;}#publish-mermaid-2-1793099038118 .cluster span{color:#333;}#publish-mermaid-2-1793099038118 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-2-1793099038118 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-2-1793099038118 rect.text{fill:none;stroke-width:0;}#publish-mermaid-2-1793099038118 .icon-shape,#publish-mermaid-2-1793099038118 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-2-1793099038118 .icon-shape p,#publish-mermaid-2-1793099038118 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-2-1793099038118 .icon-shape .label rect,#publish-mermaid-2-1793099038118 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-2-1793099038118 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-2-1793099038118 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-2-1793099038118 .node .neo-node{stroke:#9370DB;}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node rect,#publish-mermaid-2-1793099038118 [data-look=\”neo\”].cluster rect,#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1793099038118 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1793099038118 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
进入系统视图
配置生成树实例
指定实例 ID
配置 VLAN 列表
完成实例配置
该图展示了配置生成树实例的基本步骤。
2.3 配置端口角色
配置端口角色包括指定端口优先级和路径开销。
#publish-mermaid-3-1793099039249{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-3-1793099039249 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-3-1793099039249 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-3-1793099039249 .error-icon{fill:#552222;}#publish-mermaid-3-1793099039249 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-3-1793099039249 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-3-1793099039249 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-3-1793099039249 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-3-1793099039249 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-3-1793099039249 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-3-1793099039249 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-3-1793099039249 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-3-1793099039249 .marker.cross{stroke:#333333;}#publish-mermaid-3-1793099039249 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-3-1793099039249 p{margin:0;}#publish-mermaid-3-1793099039249 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-3-1793099039249 .cluster-label text{fill:#333;}#publish-mermaid-3-1793099039249 .cluster-label span{color:#333;}#publish-mermaid-3-1793099039249 .cluster-label span p{background-color:transparent;}#publish-mermaid-3-1793099039249 .label text,#publish-mermaid-3-1793099039249 span{fill:#333;color:#333;}#publish-mermaid-3-1793099039249 .node rect,#publish-mermaid-3-1793099039249 .node circle,#publish-mermaid-3-1793099039249 .node ellipse,#publish-mermaid-3-1793099039249 .node polygon,#publish-mermaid-3-1793099039249 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1793099039249 .rough-node .label text,#publish-mermaid-3-1793099039249 .node .label text,#publish-mermaid-3-1793099039249 .image-shape .label,#publish-mermaid-3-1793099039249 .icon-shape .label{text-anchor:middle;}#publish-mermaid-3-1793099039249 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-3-1793099039249 .rough-node .label,#publish-mermaid-3-1793099039249 .node .label,#publish-mermaid-3-1793099039249 .image-shape .label,#publish-mermaid-3-1793099039249 .icon-shape .label{text-align:center;}#publish-mermaid-3-1793099039249 .node.clickable{cursor:pointer;}#publish-mermaid-3-1793099039249 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-3-1793099039249 .arrowheadPath{fill:#333333;}#publish-mermaid-3-1793099039249 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-3-1793099039249 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-3-1793099039249 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-3-1793099039249 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-3-1793099039249 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-3-1793099039249 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-3-1793099039249 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-3-1793099039249 .cluster text{fill:#333;}#publish-mermaid-3-1793099039249 .cluster span{color:#333;}#publish-mermaid-3-1793099039249 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-3-1793099039249 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-3-1793099039249 rect.text{fill:none;stroke-width:0;}#publish-mermaid-3-1793099039249 .icon-shape,#publish-mermaid-3-1793099039249 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-3-1793099039249 .icon-shape p,#publish-mermaid-3-1793099039249 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-3-1793099039249 .icon-shape .label rect,#publish-mermaid-3-1793099039249 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-3-1793099039249 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-3-1793099039249 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-3-1793099039249 .node .neo-node{stroke:#9370DB;}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node rect,#publish-mermaid-3-1793099039249 [data-look=\”neo\”].cluster rect,#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1793099039249 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1793099039249 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
进入端口视图
配置端口优先级
配置路径开销
完成端口角色配置
该图展示了配置端口角色的基本步骤。
三、多 VLAN 负载均衡实现:负载均衡策略
3.1 VLAN 分组策略
VLAN 分组策略是将不同 VLAN 分配到不同实例的关键。
#publish-mermaid-4-1793099039333{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-4-1793099039333 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-4-1793099039333 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-4-1793099039333 .error-icon{fill:#552222;}#publish-mermaid-4-1793099039333 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-4-1793099039333 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-4-1793099039333 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-4-1793099039333 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-4-1793099039333 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-4-1793099039333 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-4-1793099039333 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-4-1793099039333 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-4-1793099039333 .marker.cross{stroke:#333333;}#publish-mermaid-4-1793099039333 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-4-1793099039333 p{margin:0;}#publish-mermaid-4-1793099039333 .pieCircle{stroke:black;stroke-width:2px;opacity:0.7;}#publish-mermaid-4-1793099039333 .pieCircle.highlighted{scale:1.05;opacity:1;}#publish-mermaid-4-1793099039333 .pieCircle.highlightedOnHover:hover{transition-duration:250ms;scale:1.05;opacity:1;}#publish-mermaid-4-1793099039333 .pieOuterCircle{stroke:black;stroke-width:2px;fill:none;}#publish-mermaid-4-1793099039333 .pieTitleText{text-anchor:middle;font-size:25px;fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}#publish-mermaid-4-1793099039333 .slice{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;fill:#333;font-size:17px;}#publish-mermaid-4-1793099039333 .legend text{fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:17px;}#publish-mermaid-4-1793099039333 .node .neo-node{stroke:#9370DB;}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node rect,#publish-mermaid-4-1793099039333 [data-look=\”neo\”].cluster rect,#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1793099039333 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1793099039333 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}40%35%25%VLAN 分组策略实例 1实例 2实例 3
该图展示了 VLAN 分组策略的分布情况。
3.2 负载均衡算法
负载均衡算法决定了 VLAN 如何分配到不同实例。
#publish-mermaid-5-1793099039358{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-5-1793099039358 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-5-1793099039358 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-5-1793099039358 .error-icon{fill:#552222;}#publish-mermaid-5-1793099039358 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-5-1793099039358 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-5-1793099039358 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-5-1793099039358 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-5-1793099039358 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-5-1793099039358 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-5-1793099039358 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-5-1793099039358 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-5-1793099039358 .marker.cross{stroke:#333333;}#publish-mermaid-5-1793099039358 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-5-1793099039358 p{margin:0;}#publish-mermaid-5-1793099039358 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-5-1793099039358 .cluster-label text{fill:#333;}#publish-mermaid-5-1793099039358 .cluster-label span{color:#333;}#publish-mermaid-5-1793099039358 .cluster-label span p{background-color:transparent;}#publish-mermaid-5-1793099039358 .label text,#publish-mermaid-5-1793099039358 span{fill:#333;color:#333;}#publish-mermaid-5-1793099039358 .node rect,#publish-mermaid-5-1793099039358 .node circle,#publish-mermaid-5-1793099039358 .node ellipse,#publish-mermaid-5-1793099039358 .node polygon,#publish-mermaid-5-1793099039358 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-5-1793099039358 .rough-node .label text,#publish-mermaid-5-1793099039358 .node .label text,#publish-mermaid-5-1793099039358 .image-shape .label,#publish-mermaid-5-1793099039358 .icon-shape .label{text-anchor:middle;}#publish-mermaid-5-1793099039358 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-5-1793099039358 .rough-node .label,#publish-mermaid-5-1793099039358 .node .label,#publish-mermaid-5-1793099039358 .image-shape .label,#publish-mermaid-5-1793099039358 .icon-shape .label{text-align:center;}#publish-mermaid-5-1793099039358 .node.clickable{cursor:pointer;}#publish-mermaid-5-1793099039358 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-5-1793099039358 .arrowheadPath{fill:#333333;}#publish-mermaid-5-1793099039358 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-5-1793099039358 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-5-1793099039358 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-5-1793099039358 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-5-1793099039358 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-5-1793099039358 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-5-1793099039358 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-5-1793099039358 .cluster text{fill:#333;}#publish-mermaid-5-1793099039358 .cluster span{color:#333;}#publish-mermaid-5-1793099039358 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-5-1793099039358 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-5-1793099039358 rect.text{fill:none;stroke-width:0;}#publish-mermaid-5-1793099039358 .icon-shape,#publish-mermaid-5-1793099039358 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-5-1793099039358 .icon-shape p,#publish-mermaid-5-1793099039358 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-5-1793099039358 .icon-shape .label rect,#publish-mermaid-5-1793099039358 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-5-1793099039358 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-5-1793099039358 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-5-1793099039358 .node .neo-node{stroke:#9370DB;}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node rect,#publish-mermaid-5-1793099039358 [data-look=\”neo\”].cluster rect,#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1793099039358 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1793099039358 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}是否是否
输入 VLAN ID
VLAN ID % 实例数 == 0?
分配到实例 1
VLAN ID % 实例数 == 1?
分配到实例 2
分配到实例 3
该图展示了基于模运算的 VLAN 分配算法。
四、配置示例:华为 S5735 MSTP 配置示例
4.1 基本配置
以下是华为 S5735 交换机的基本 MSTP 配置示例:
交换机用户交换机用户#publish-mermaid-6-1793099039463{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-6-1793099039463 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-6-1793099039463 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-6-1793099039463 .error-icon{fill:#552222;}#publish-mermaid-6-1793099039463 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-6-1793099039463 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-6-1793099039463 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-6-1793099039463 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-6-1793099039463 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-6-1793099039463 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-6-1793099039463 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-6-1793099039463 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-6-1793099039463 .marker.cross{stroke:#333333;}#publish-mermaid-6-1793099039463 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-6-1793099039463 p{margin:0;}#publish-mermaid-6-1793099039463 .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#publish-mermaid-6-1793099039463 rect.actor.outer-path[data-look=\”neo\”]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 rect.note[data-look=\”neo\”]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 text.actor>tspan{fill:black;stroke:none;}#publish-mermaid-6-1793099039463 .actor-line{stroke:#9370DB;}#publish-mermaid-6-1793099039463 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#publish-mermaid-6-1793099039463 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#publish-mermaid-6-1793099039463 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#publish-mermaid-6-1793099039463 [id$=\”-arrowhead\”] path{fill:#333;stroke:#333;}#publish-mermaid-6-1793099039463 .sequenceNumber{fill:white;}#publish-mermaid-6-1793099039463 [id$=\”-sequencenumber\”]{fill:#333;}#publish-mermaid-6-1793099039463 [id$=\”-crosshead\”] path{fill:#333;stroke:#333;}#publish-mermaid-6-1793099039463 .messageText{fill:#333;stroke:none;}#publish-mermaid-6-1793099039463 .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#publish-mermaid-6-1793099039463 .labelText,#publish-mermaid-6-1793099039463 .labelText>tspan{fill:black;stroke:none;}#publish-mermaid-6-1793099039463 .loopText,#publish-mermaid-6-1793099039463 .loopText>tspan{fill:black;stroke:none;}#publish-mermaid-6-1793099039463 .sectionTitle,#publish-mermaid-6-1793099039463 .sectionTitle>tspan{fill:black;stroke:none;}#publish-mermaid-6-1793099039463 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#publish-mermaid-6-1793099039463 .note{stroke:#aaaa33;fill:#fff5ad;}#publish-mermaid-6-1793099039463 .noteText,#publish-mermaid-6-1793099039463 .noteText>tspan{fill:black;stroke:none;font-weight:normal;}#publish-mermaid-6-1793099039463 .activation0{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1793099039463 .activation1{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1793099039463 .activation2{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1793099039463 .actorPopupMenu{position:absolute;}#publish-mermaid-6-1793099039463 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#publish-mermaid-6-1793099039463 .actor-man circle,#publish-mermaid-6-1793099039463 line{fill:#ECECFF;stroke-width:2px;}#publish-mermaid-6-1793099039463 g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#publish-mermaid-6-1793099039463 .node .neo-node{stroke:#9370DB;}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node rect,#publish-mermaid-6-1793099039463 [data-look=\”neo\”].cluster rect,#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1793099039463 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}进入系统视图系统视图提示符配置 MSTP 域域配置成功配置生成树实例实例配置成功配置端口角色端口配置成功
该图展示了配置的基本交互过程。
4.2 具体配置命令
以下是具体的配置命令示例:
#publish-mermaid-7-1793099039526{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-7-1793099039526 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-7-1793099039526 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-7-1793099039526 .error-icon{fill:#552222;}#publish-mermaid-7-1793099039526 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-7-1793099039526 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-7-1793099039526 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-7-1793099039526 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-7-1793099039526 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-7-1793099039526 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-7-1793099039526 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-7-1793099039526 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-7-1793099039526 .marker.cross{stroke:#333333;}#publish-mermaid-7-1793099039526 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-7-1793099039526 p{margin:0;}#publish-mermaid-7-1793099039526 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-7-1793099039526 .cluster-label text{fill:#333;}#publish-mermaid-7-1793099039526 .cluster-label span{color:#333;}#publish-mermaid-7-1793099039526 .cluster-label span p{background-color:transparent;}#publish-mermaid-7-1793099039526 .label text,#publish-mermaid-7-1793099039526 span{fill:#333;color:#333;}#publish-mermaid-7-1793099039526 .node rect,#publish-mermaid-7-1793099039526 .node circle,#publish-mermaid-7-1793099039526 .node ellipse,#publish-mermaid-7-1793099039526 .node polygon,#publish-mermaid-7-1793099039526 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-7-1793099039526 .rough-node .label text,#publish-mermaid-7-1793099039526 .node .label text,#publish-mermaid-7-1793099039526 .image-shape .label,#publish-mermaid-7-1793099039526 .icon-shape .label{text-anchor:middle;}#publish-mermaid-7-1793099039526 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-7-1793099039526 .rough-node .label,#publish-mermaid-7-1793099039526 .node .label,#publish-mermaid-7-1793099039526 .image-shape .label,#publish-mermaid-7-1793099039526 .icon-shape .label{text-align:center;}#publish-mermaid-7-1793099039526 .node.clickable{cursor:pointer;}#publish-mermaid-7-1793099039526 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-7-1793099039526 .arrowheadPath{fill:#333333;}#publish-mermaid-7-1793099039526 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-7-1793099039526 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-7-1793099039526 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-7-1793099039526 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-7-1793099039526 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-7-1793099039526 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-7-1793099039526 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-7-1793099039526 .cluster text{fill:#333;}#publish-mermaid-7-1793099039526 .cluster span{color:#333;}#publish-mermaid-7-1793099039526 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-7-1793099039526 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-7-1793099039526 rect.text{fill:none;stroke-width:0;}#publish-mermaid-7-1793099039526 .icon-shape,#publish-mermaid-7-1793099039526 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-7-1793099039526 .icon-shape p,#publish-mermaid-7-1793099039526 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-7-1793099039526 .icon-shape .label rect,#publish-mermaid-7-1793099039526 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-7-1793099039526 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-7-1793099039526 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-7-1793099039526 .node .neo-node{stroke:#9370DB;}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node rect,#publish-mermaid-7-1793099039526 [data-look=\”neo\”].cluster rect,#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1793099039526 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1793099039526 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
system-view
stp region-configuration
region-name region1
revision-level 1
instance 1 vlan 10 to 20
instance 2 vlan 30 to 40
instance 3 vlan 50 to 60
quit
interface GigabitEthernet0/0/1
stp binding instance 1
stp cost 20000
stp priority 0
该图展示了具体的配置命令流程。
五、验证与故障排除:配置验证与问题解决
5.1 配置验证
配置完成后,需要验证 MSTP 配置是否正确。
#publish-mermaid-8-1793099039701{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-8-1793099039701 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-8-1793099039701 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-8-1793099039701 .error-icon{fill:#552222;}#publish-mermaid-8-1793099039701 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-8-1793099039701 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-8-1793099039701 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-8-1793099039701 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-8-1793099039701 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-8-1793099039701 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-8-1793099039701 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-8-1793099039701 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-8-1793099039701 .marker.cross{stroke:#333333;}#publish-mermaid-8-1793099039701 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-8-1793099039701 p{margin:0;}#publish-mermaid-8-1793099039701 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-8-1793099039701 .cluster-label text{fill:#333;}#publish-mermaid-8-1793099039701 .cluster-label span{color:#333;}#publish-mermaid-8-1793099039701 .cluster-label span p{background-color:transparent;}#publish-mermaid-8-1793099039701 .label text,#publish-mermaid-8-1793099039701 span{fill:#333;color:#333;}#publish-mermaid-8-1793099039701 .node rect,#publish-mermaid-8-1793099039701 .node circle,#publish-mermaid-8-1793099039701 .node ellipse,#publish-mermaid-8-1793099039701 .node polygon,#publish-mermaid-8-1793099039701 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1793099039701 .rough-node .label text,#publish-mermaid-8-1793099039701 .node .label text,#publish-mermaid-8-1793099039701 .image-shape .label,#publish-mermaid-8-1793099039701 .icon-shape .label{text-anchor:middle;}#publish-mermaid-8-1793099039701 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-8-1793099039701 .rough-node .label,#publish-mermaid-8-1793099039701 .node .label,#publish-mermaid-8-1793099039701 .image-shape .label,#publish-mermaid-8-1793099039701 .icon-shape .label{text-align:center;}#publish-mermaid-8-1793099039701 .node.clickable{cursor:pointer;}#publish-mermaid-8-1793099039701 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-8-1793099039701 .arrowheadPath{fill:#333333;}#publish-mermaid-8-1793099039701 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-8-1793099039701 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-8-1793099039701 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-8-1793099039701 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-8-1793099039701 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-8-1793099039701 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-8-1793099039701 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-8-1793099039701 .cluster text{fill:#333;}#publish-mermaid-8-1793099039701 .cluster span{color:#333;}#publish-mermaid-8-1793099039701 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-8-1793099039701 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-8-1793099039701 rect.text{fill:none;stroke-width:0;}#publish-mermaid-8-1793099039701 .icon-shape,#publish-mermaid-8-1793099039701 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-8-1793099039701 .icon-shape p,#publish-mermaid-8-1793099039701 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-8-1793099039701 .icon-shape .label rect,#publish-mermaid-8-1793099039701 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-8-1793099039701 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-8-1793099039701 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-8-1793099039701 .node .neo-node{stroke:#9370DB;}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node rect,#publish-mermaid-8-1793099039701 [data-look=\”neo\”].cluster rect,#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1793099039701 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1793099039701 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
检查 MSTP 域配置
检查生成树实例配置
检查端口角色配置
检查 VLAN 分配
验证负载均衡
该图展示了配置验证的基本步骤。
5.2 常见问题与解决
以下是常见问题及解决方法:
| MSTP 域不匹配 | 域 ID 或修订级别不一致 | 检查并统一 MSTP 域配置 |
| 实例配置错误 | VLAN 列表配置错误 | 检查并修正 VLAN 列表 |
| 负载不均衡 | VLAN 分配策略不合理 | 调整 VLAN 分组策略 |


