侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

MSTP配置

2023-02-24 星期五 / 0 评论 / 0 点赞 / 57 阅读 / 4698 字

1 配置 VLAN 和端口请按照图在Device A和Device B上分别创建VLAN 10、20和30,在Device C上创建VLAN 10、20 和 40,在Device D上创建VLAN 2

.

1 配置 VLAN 和端口
请按照图在Device A和Device B上分别创建VLAN 10、20和30,在Device C上创建VLAN 10、20 和 40,在Device D上创建VLAN 20、30 和 40;将各设备的各端口配置为Trunk端口并允许相应的VLAN通过,具体配置过程略。


2 配置 Device A
*配置 MST 域的域名为 example,将 VLAN 10、30、40
分别映射到 MSTI 1、3、4 上,并配置MSTP 的修订级别为 0。
<DeviceA> system-view
[DeviceA] stp region-configuration
[DeviceA-mst-region] region-name example
[DeviceA-mst-region] instance 1 vlan 10
[DeviceA-mst-region] instance 3 vlan 30
[DeviceA-mst-region] instance 4 vlan 40
[DeviceA-mst-region] revision-level 0

  • 激活 MST 域的配置。
    [DeviceA-mst-region] active region-configuration
    [DeviceA-mst-region] quit
  • 配置本设备为 MSTI 1 的根桥。
    [DeviceA] stp instance 1 root primary
  • 全局使能生成树协议。
    [DeviceA] stp global enable
    3 配置 Device B
  • 配置 MST 域的域名为 example,将 VLAN 10、30、40
    分别映射到 MSTI 1、3、4 上,并配置MSTP 的修订级别为 0。
    <DeviceB> system-view
    [DeviceB] stp region-configuration
    [DeviceB-mst-region] region-name example
    [DeviceB-mst-region] instance 1 vlan 10
    [DeviceB-mst-region] instance 3 vlan 30
    [DeviceB-mst-region] instance 4 vlan 40
    [DeviceB-mst-region] revision-level 0
  • 激活 MST 域的配置。
    [DeviceB-mst-region] active region-configuration
    [DeviceB-mst-region] quit
  • 配置本设备为 MSTI 3 的根桥。
    [DeviceB] stp instance 3 root primary
  • 全局使能生成树协议。
    [DeviceB] stp global enable
    4 配置 Device C
  • 配置 MST 域的域名为 example,将 VLAN 10、30、40
    分别映射到 MSTI 1、3、4 上,并配置MSTP 的修订级别为 0。
    <DeviceC> system-view
    [DeviceC] stp region-configuration
    [DeviceC-mst-region] region-name example
    [DeviceC-mst-region] instance 1 vlan 10
    [DeviceC-mst-region] instance 3 vlan 30
    [DeviceC-mst-region] instance 4 vlan 40
    [DeviceC-mst-region] revision-level 0
    *激活 MST 域的配置。
    [DeviceC-mst-region] active region-configuration
    [DeviceC-mst-region] quit
  • 配置本设备为 MSTI 4 的根桥。
    [DeviceC] stp instance 4 root primary
  • 全局使能生成树协议。
    [DeviceC] stp global enable
    5 配置 Device D
    配置 MST 域的域名为 example,将 VLAN 10、30、40
    分别映射到 MSTI 1、3、4 上,并配置
    MSTP 的修订级别为 0。
    <DeviceD> system-view
    [DeviceD] stp region-configuration
    [DeviceD-mst-region] region-name example
    [DeviceD-mst-region] instance 1 vlan 10
    [DeviceD-mst-region] instance 3 vlan 30
    [DeviceD-mst-region] instance 4 vlan 40
    [DeviceD-mst-region] revision-level 0
    激活 MST 域的配置。
    [DeviceD-mst-region] active region-configuration
    [DeviceD-mst-region] quit
  • 全局使能生成树协议。
    [DeviceD] stp global enable
    6 当网络拓扑稳定后,通过使用 display stp brief 命令可以查看各设备上生成树的简要信息。

    DeiviceA(正常情况是3个端口,因为我DeiviceD交换机没开启)

    DeiviceB(正常情况是3个端口,因为我DeiviceD交换机没开启)

    DeiviceC(正常情况是3个端口,因为我DeiviceD交换机没开启)

    DeiviceD(正常情况是3个端口,因为我DeiviceA交换机没开启)
.

广告 广告

评论区