MSTP典型配置

  1. 组网需求
    • 网络中所有设备都属于同一个 MST 域。Device A 和Device B 为汇聚层设备,Device C 和Device D 为接入层设备。
    • 通过配置 MSTP,使不同VLAN 的报文按照不同的MSTI 转发:VLAN 10 的报文沿MSTI 1转发,VLAN 30 沿MSTI 3 转发,VLAN 40 沿MSTI 4 转发,VLAN 20 沿MSTI 0 转发。
    • 由于 VLAN 10 和VLAN 30 在汇聚层设备终结、VLAN 40 在接入层设备终结,因此配置MSTI1 和MSTI 3 的根桥分别为Device A 和Device B,MSTI 4 的根桥为Device C。
    2.组网图
    MSTP典型配置
    3.配置步骤
    (1)vlan 和 端口
    请按照上图在Device A和Device B上分别创建VLAN 10、20和30,在Device C上创建VLAN 10、20 和 40,在Device D上创建VLAN 20、30 和 40;将各设备的各端口配置为Trunk端口并允许相应的VLAN通过。
    Device A
    MSTP典型配置

Device B
MSTP典型配置
Device C
MSTP典型配置
Device D
MSTP典型配置
(2).Device A配置 MST 域的域名为 example,将 VLAN 10、30、40 分别映射到 MSTI 1、3、4 上,并配置MSTP 的修订级别为 0。
<DeviceA> sys
[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
[DeviceA-mst-region] active region-configuration
[DeviceA-mst-region] quit
[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> sys
[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
[DeviceB-mst-region] active region-configuration
[DeviceB-mst-region] quit
[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> sys
[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
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
[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> sys
[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
[DeviceD-mst-region] active region-configuration
[DeviceD-mst-region] quit
[DeviceD] stp global enable
4.验证配置
使用 display stp brief 命令可以查看各设备上生成树的简要信息。
下面分别是DeviceA,DeviceB,DeviceC,DeviceD验证结果。
MSTP典型配置

MSTP典型配置

MSTP典型配置

MSTP典型配置

转载于:https://blog.51cto.com/14223834/2375482

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值