实验5 配置MSTP(华为模拟器eNSP)

配置MSTP(华为模拟器eNSP)

    • 步骤1 在交换机Switch-A上划分VLAN并配置Trunk
    • 步骤2 在交换机Switch-B上划分VLAN配置Trunk
    • 步骤3 在交换机Switch-C上划分VLAN配置Trunk
    • 步骤4 在交换机Switch-D上划分VLAN配置Trunk
    • 步骤5 在交换机Switch-A上配置MSTP
    • 步骤6 在交换机Switch-B上配置MSTP
    • 步骤7 在交换机Switch-C上配置MSTP
    • 步骤8 在交换机Switch-D上配置MSTP

实验5 配置MSTP(华为模拟器eNSP)_第1张图片

步骤1 在交换机Switch-A上划分VLAN并配置Trunk

[Switch-A]stp mode mstp
[Switch-A]vlan batch 10 20 40
[Switch-A]interface GigabitEthernet 0/0/1
[Switch-A-GigabitEthernet0/0/1]port link-type trunk
[Switch-A-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 40
[Switch-A-GigabitEthernet0/0/1]quit
[Switch-A]interface GigabitEthernet 0/0/2
[Switch-A-GigabitEthernet0/0/2]port link-type trunk
[Switch-A-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-A-GigabitEthernet0/0/2]quit
[Switch-A]interface Eth 0/0/1
[Switch-A-Ethernet0/0/1]port link-type access
[Switch-A-Ethernet0/0/1]port default vlan 10
[Switch-A-Ethernet0/0/1]quit
[Switch-A]interface Eth 0/0/2
[Switch-A-Ethernet0/0/2]port link-type access
[Switch-A-Ethernet0/0/2]port default vlan 20
[Switch-A-Ethernet0/0/2]quit

步骤2 在交换机Switch-B上划分VLAN配置Trunk

[Switch-B]stp mode mstp
[Switch-B]vlan batch 10 20 40
[Switch-B]interface GigabitEthernet 0/0/1
[Switch-B-GigabitEthernet0/0/1]port link-type trunk
[Switch-B-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 40
[Switch-B-GigabitEthernet0/0/1]quit
[Switch-B]interface GigabitEthernet 0/0/2
[Switch-B-GigabitEthernet0/0/2]port link-type trunk
[Switch-B-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-B-GigabitEthernet0/0/2]quit
[Switch-B]interface Eth 0/0/1
[Switch-B-Ethernet0/0/1]port link-type access
[Switch-B-Ethernet0/0/1]port default vlan 10
[Switch-B-Ethernet0/0/1]quit
[Switch-B]interface Eth 0/0/2
[Switch-B-Ethernet0/0/2]port link-type access
[Switch-B-Ethernet0/0/2]port default vlan 40
[Switch-B-Ethernet0/0/2]quit

步骤3 在交换机Switch-C上划分VLAN配置Trunk

[Switch-C]stp mode mstp
[Switch-C]vlan batch 10 20 40
[Switch-C]interface GigabitEthernet 0/0/1
[Switch-C-GigabitEthernet0/0/1]port link-type trunk
[Switch-C-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 40
[Switch-C-GigabitEthernet0/0/1]quit
[Switch-C]interface GigabitEthernet 0/0/23
[Switch-C-GigabitEthernet0/0/2]port link-type trunk
[Switch-C-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-C-GigabitEthernet0/0/2]quit
[Switch-C]interface GigabitEthernet 0/0/24
[Switch-C-GigabitEthernet0/0/2]port link-type trunk
[Switch-C-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-C-GigabitEthernet0/0/2]quit

步骤4 在交换机Switch-D上划分VLAN配置Trunk

[Switch-D]stp mode mstp
[Switch-D]vlan batch 10 20 40
[Switch-D]interface GigabitEthernet 0/0/1
[Switch-D-GigabitEthernet0/0/1]port link-type trunk
[Switch-D-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 40
[Switch-D-GigabitEthernet0/0/1]quit
[Switch-D]interface GigabitEthernet 0/0/23
[Switch-D-GigabitEthernet0/0/2]port link-type trunk
[Switch-D-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-D-GigabitEthernet0/0/2]quit
[Switch-D]interface GigabitEthernet 0/0/24
[Switch-D-GigabitEthernet0/0/2]port link-type trunk
[Switch-D-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 40
[Switch-D-GigabitEthernet0/0/2]quit

步骤5 在交换机Switch-A上配置MSTP

[Switch-A]stp region-configuration
[Switch-A-mst-region]instance 1 vlan 1
[Switch-A-mst-region]instance 1 vlan 10
[Switch-A-mst-region]instance 2 vlan 20
[Switch-A-mst-region]instance 2 vlan 40
[Switch-A-mst-region]region-name region1
[Switch-A-mst-region]revision-level 1
//验证测试:验证MSTP配置
[Switch-A-mst-region]check region-configuration 
 Admin configuration
   Format selector    :0             
   Region name        :region1             
   Revision level     :1

   Instance   VLANs Mapped
      0       2 to 9, 11 to 19, 21 to 39, 41 to 4094
      1       1, 10
      2       20, 40
[Switch-A-mst-region]active region-configuration

步骤6 在交换机Switch-B上配置MSTP

[Switch-B]stp region-configuration
[Switch-B-mst-region]instance 1 vlan 1
[Switch-B-mst-region]instance 1 vlan 10
[Switch-B-mst-region]instance 2 vlan 20
[Switch-B-mst-region]instance 2 vlan 40
[Switch-B-mst-region]region-name region1
[Switch-B-mst-region]revision-level 1
//验证测试:验证MSTP配置
[Switch-B-mst-region]check region-configuration 
 Admin configuration
   Format selector    :0             
   Region name        :region1             
   Revision level     :1

   Instance   VLANs Mapped
      0       2 to 9, 11 to 19, 21 to 39, 41 to 4094
      1       1, 10
      2       20, 40
[Switch-B-mst-region]active region-configuration

步骤7 在交换机Switch-C上配置MSTP

[Switch-C]stp instance 1 priority 4096
[Switch-C]stp region-configuration
[Switch-C-mst-region]instance 1 vlan 1
[Switch-C-mst-region]instance 1 vlan 10
[Switch-C-mst-region]instance 2 vlan 20
[Switch-C-mst-region]instance 2 vlan 40
[Switch-C-mst-region]region-name region1
[Switch-C-mst-region]revision-level 1
//验证测试:验证MSTP配置
[Switch-C-mst-region]check region-configuration 
 Admin configuration
   Format selector    :0             
   Region name        :region1             
   Revision level     :1

   Instance   VLANs Mapped
      0       2 to 9, 11 to 19, 21 to 39, 41 to 4094
      1       1, 10
      2       20, 40
[Switch-C-mst-region]active region-configuration

步骤8 在交换机Switch-D上配置MSTP

[Switch-D]stp instance 1 priority 4096
[Switch-D]stp region-configuration
[Switch-D-mst-region]instance 1 vlan 1
[Switch-D-mst-region]instance 1 vlan 10
[Switch-D-mst-region]instance 2 vlan 20
[Switch-D-mst-region]instance 2 vlan 40
[Switch-D-mst-region]region-name region1
[Switch-D-mst-region]revision-level 1
//验证测试:验证MSTP配置
[Switch-D-mst-region]check region-configuration 
 Admin configuration
   Format selector    :0             
   Region name        :region1             
   Revision level     :1

   Instance   VLANs Mapped
      0       2 to 9, 11 to 19, 21 to 39, 41 to 4094
      1       1, 10
      2       20, 40
[Switch-D-mst-region]active region-configuration

你可能感兴趣的:(实验5 配置MSTP(华为模拟器eNSP))