博客
关于我
10分钟带你了解MSTP协议,附加配置MSTP实验
阅读量:346 次
发布时间:2019-03-04

本文共 1486 字,大约阅读时间需要 4 分钟。

MSTP协议及配置实践指南

一、MSTP协议概述

1. STP和RSTP的局限性

STP(Spanning Tree Protocol)和RSTP(Rapid Spanning Tree Protocol)共享一颗生成树,无法实现多VLAN负载分担,限制了网络的灵活性。

2. MSTP协议概述

MSTP(Multi Spanning Tree Protocol)通过多实例生成树协议,实现了VLAN间的负载分担。MSTP支持多个生成树,避免冲突,同时保证网络的高可靠性。

3. MSTP的基本思想

MSTP通过多个生成树(MST Instances)工作,每个实例对应一个VLAN或多个VLAN,形成冗余备份,确保网络可用性。

4. MSTP的功能

  • 计算多个生成树
  • 防环机制
  • VLAN间负载分担
  • 高可靠性网络

5. 三种生成树的比较

  • STP:单一生成树,适合小规模网络
  • RSTP:优化了生成树计算速度
  • MSTP:支持多实例,适合大规模VLAN网络

6. MSTP的域划分

  • 域名:3-byte值(0-65535,默认0)
  • VLAN映射:域内VLAN与映射关系一致
  • 优先级:域间优先级决定交换机角色

7. MSTP配置步骤

1. 区域配置

[W1-mst-region]region-na[W1-mst-region]region-name WW[W1-mst-region]instance 1 vlan 10[W1-mst-region]instance 2 vlan 20[W1-mst-region]active

2. 实例与VLAN映射

[W2-mst-region]instance 1 vlan 10[W2-mst-region]instance 2 vlan 20[W2-mst-region]active

3. 交换机根优先级

[W1-mst-region]stp instance 2 root secondary

二、实验配置示例

交换机配置示例

[W1]vlan batch 10 20[W1-Ethernet0/0/1]port hybrid pvid vlan 10[W1-Ethernet0/0/1]port hybrid untagged vlan 10 20[W1-GigabitEthernet0/0/2]port hybrid pvid 10[W1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 20[W1]stp region-configuration [W1-mst-region][W1-mst-region]instance 1 vlan 10[W1-mst-region]instance 2 vlan 20[W1-mst-region]active

交换机代码示例

[W2]vlan batch 10 20[W2-Ethernet0/0/1]port hybrid pvid vlan 20[W2-Ethernet0/0/1]port hybrid untagged vlan 10 20[W2]stp region-configuration [W2-mst-region][W2-mst-region]instance 1 vlan 10[W2-mst-region]instance 2 vlan 20[W2-mst-region]active

网络架构

三台交换机(SW1、SW2、SW3)构成的网络,分别连接着多个访问网络和骨干网络,实现多VLAN负载分担。

转载地址:http://mzie.baihongyu.com/

你可能感兴趣的文章
npm安装教程
查看>>
npm报错Cannot find module ‘webpack‘ Require stack
查看>>
npm报错Failed at the node-sass@4.14.1 postinstall script
查看>>
npm报错fatal: Could not read from remote repository
查看>>
npm报错File to import not found or unreadable: @/assets/styles/global.scss.
查看>>
npm报错TypeError: this.getOptions is not a function
查看>>
npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
查看>>
npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
查看>>
npm版本过高问题
查看>>
npm的“--force“和“--legacy-peer-deps“参数
查看>>
npm的安装和更新---npm工作笔记002
查看>>
npm的常用操作---npm工作笔记003
查看>>
npm的常用配置项---npm工作笔记004
查看>>
npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
查看>>
npm编译报错You may need an additional loader to handle the result of these loaders
查看>>
npm设置淘宝镜像、升级等
查看>>
npm设置源地址,npm官方地址
查看>>
npm设置镜像如淘宝:http://npm.taobao.org/
查看>>
npm配置安装最新淘宝镜像,旧镜像会errror
查看>>
NPM酷库052:sax,按流解析XML
查看>>