目录
一、实验拓扑
二、实验要求
三、实验步骤
1、创建vlan
2、创建端口组,放通vlan
3、配置MSTP
4、配置主备奋根
一、实验拓扑
二、实验要求
1、所有交换机上创建vlan10,vlan20,vlan30和vlan40
2、所有交换机之间的端口配置为Trunk,并放行相关vlan
3、按照图示分区配置MSTP,并配置主备根网桥
三、实验步骤
1、创建vlan
[SW1]vlan batch 10 20 30 40
[SW2]vlan batch 10 20 30 40
[SW3]vlan batch 10 20 30 40
[SW4]vlan batch 10 20 30 40
[SW5]vlan batch 10 20 30 40
[SW6]vlan batch 10 20 30 40
[SW7]vlan batch 10 20 30 40
2、创建端口组,放通vlan
[SW1]port-group group-member g0/0/1 to g0/0/2
[SW1-port-group]port link-type trunk
[SW1-port-group]port trunk allow-pass vlan 10 20 30 40
[SW2]port-group group-member g0/0/1 to g0/0/2
[SW2-port-group]port link-type trunk
[SW2-port-group]port trunk allow-pass vlan 10 20 30 40
[SW3]port-group group-member g0/0/1 to g0/0/4
[SW3-port-group]port link-type trunk
[SW3-port-group]port trunk allow-pass vlan 10 20 30 40
[SW4]port-group group-member g0/0/1 to g0/0/3
[SW4-port-group]port link-type trunk
[SW4-port-group]port trunk allow-pass vlan 10 20 30 40
[SW5]port-group group-member g0/0/1 to g0/0/2
[SW5-port-group]port link-type trunk
[SW5-port-group]port trunk allow-pass vlan 10 20 30 40
[SW6]port-group group-member g0/0/1 to g0/0/3
[SW6-port-group]port link-type trunk
[SW6-port-group]port trunk allow-pass vlan 10 20 30 40
[SW7]port-group group-member g0/0/1 to g0/0/2
[SW7-port-group]port link-type trunk
[SW7-port-group]port trunk allow-pass vlan 10 20 30 40
3、配置MSTP
[SW1]stp enable
[SW1]stp mode mstp
[SW1]stp region-configuration
[SW1-mst-region]region-name hw1
[SW1-mst-region]revision-level ?
INTEGER<0-65535> Revision level
[SW1-mst-region]revision-level 1
[SW1-mst-region]instance ?
INTEGER<0-48> Identifier of spanning tree instance
[SW1-mst-region]instance 1 vlan 10 20
[SW1-mst-region]instance 2 vlan 30 40
[SW1-mst-region]active region-configuration # 一定要加上!!!,否则配置不生效
[SW2]stp enable
[SW2]stp mode mstp
[SW2]stp region-configuration
[SW2-mst-region]region-name hw1
[SW2-mst-region]revision-level 1
[SW2-mst-region]instance 1 vlan 10 20
[SW2-mst-region]instance 2 vlan 30 40
[SW2-mst-region]active region-configuration
[SW3]stp enable
[SW3]stp mode mstp
[SW3]stp region-configuration
[SW3-mst-region]region-name hw1
[SW3-mst-region]revision-level 1
[SW3-mst-region]instance 1 vlan 10 20
[SW3-mst-region]instance 2 vlan 30 40
[SW3-mst-region]active region-configuration
[SW4]stp enable
[SW4]stp mode mstp
[SW4]stp region-configuration
[SW4-mst-region]region-name hw2
[SW4-mst-region]revision-level 2
[SW4-mst-region]instance 1 vlan 10
[SW4-mst-region]instance 2 vlan 30
[SW4-mst-region]active region-configuration
[SW5]stp enable
[SW5]stp mode mstp
[SW5]stp region-configuration
[SW5-mst-region]region-name hw2
[SW5-mst-region]revision-level 2
[SW5-mst-region]instance 1 vlan 10
[SW5-mst-region]instance 2 vlan 30
[SW5-mst-region]active region-configuration
[SW6]stp enable
[SW6]stp mode mstp
[SW6]stp region-configuration
[SW6-mst-region]region-name hw2
[SW6-mst-region]revision-level 2
[SW6-mst-region]instance 1 vlan 10
[SW6-mst-region]instance 2 vlan 30
[SW6-mst-region]active region-configuration
[SW7]stp enable
[SW7]stp mode mstp
[SW7]stp region-configuration
[SW7-mst-region]region-name hw3
[SW7-mst-region]revision-level 3
[SW7-mst-region]instance 1 vlan 20
[SW7-mst-region]instance 2 vlan 40
[SW7-mst-region]active region-configuration
4、配置主备奋根
[SW1]stp instance 1 ?
priority Specify bridge priority
root Specify root switch
[SW1]stp instance 1 root primary
[SW1]stp instance 2 root secondary
[SW2]stp instance 1 root secondary
[SW2]stp instance 2 root primary
[SW4]stp instance 1 root primary
[SW4]stp instance 2 root secondary
[SW6]stp instance 1 root secondary
[SW6]stp instance 2 root primary