天天看點

華為--MSTP實驗一:概述二:實驗

華為--MSTP實驗

  • 一:概述
    • 1.1:作用
  • 二:實驗
    • 2.1:實驗目的
    • 2.2:實驗環境
    • 2.3:實驗拓撲結構圖
    • 2.4:實驗配置
    • 2.5:實驗總結

一:概述

mstp是多執行個體生成樹

1.1:作用

讓指定的一個vlan或者多個vlan生成一棵樹,實作鍊路的負載均衡

二:實驗

2.1:實驗目的

實作trunk鍊路的負載均衡

2.2:實驗環境

ENSP

三台交換機

兩台PC

一台路由器

2.3:實驗拓撲結構圖

華為--MSTP實驗一:概述二:實驗

2.4:實驗配置

SW1
<Huawei>undo terminal monitor 
<Huawei>sys
[Huawei]sysn SW1
[SW1]user-interface console 0
[SW1-ui-console0]idle-timeout 0 0
[SW1]v b 10 20
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]p h p v 10
[SW1-Ethernet0/0/1]p h u v a
[SW1-Ethernet0/0/1]int g0/0/1
[SW1-GigabitEthernet0/0/1]p l t
[SW1-GigabitEthernet0/0/1]p t a v a
[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]p h p v 10
[SW1-GigabitEthernet0/0/2]p h u v 10 20
[SW1-GigabitEthernet0/0/2]q
[SW1]stp mode mstp
[SW1]stp region-configuration 
[SW1-mst-region]region-name huawei
[SW1-mst-region]revision-level 1	
[SW1-mst-region]instance 1 vlan 10
[SW1-mst-region]instance 2 vlan 20
[SW1-mst-region]active region-configuration 
[SW1-mst-region]q
[SW1]stp instance 1 root primary 
[SW1]stp instance 2 root secondary 
           
SW2
<Huawei>undo terminal monitor 
<Huawei>sys
[Huawei]sysn SW2
[SW2]user-interface console 0
[SW2-ui-console0]id	
[SW2-ui-console0]idle-timeout 0 0
[SW2-Ethernet0/0/1]q
[SW2]v b 10 20
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]p h p v 20
[SW2-Ethernet0/0/1]p h u v 10 20
[SW2-Ethernet0/0/1]int g0/0/1
[SW2-GigabitEthernet0/0/1]p l t
[SW2-GigabitEthernet0/0/1]p t a v a
[SW2-GigabitEthernet0/0/1]int g0/0/2
[SW2-GigabitEthernet0/0/2]p h p v 20
[SW2-GigabitEthernet0/0/2]p h u v 10 20
[SW2-GigabitEthernet0/0/2]q
[SW2]stp mode mstp
[SW2]stp region-configuration 
[SW2-mst-region]region-name huawei	
[SW2-mst-region]revision-level 1	
[SW2-mst-region]instance 1 vlan 10
[SW2-mst-region]instance 2 vlan 20
[SW2-mst-region]active region-configuration 
[SW2-mst-region]q
[SW2]stp instance 1 root secondary 
[SW2]stp instance 2 root primary 
           
SW3
<Huawei>undo terminal monitor 
<Huawei>sys
[Huawei]sysn SW3
[SW3]user-interface console 0
[SW3-ui-console0]idle-timeout 0 0
[SW3]v b 10 20
[SW3]int e0/0/1
[SW3-Ethernet0/0/1]p h p v 10
[SW3-Ethernet0/0/1]p h u v 10 20
[SW3-Ethernet0/0/1]int e0/0/3
[SW3-Ethernet0/0/3]p h p v 10
[SW3-Ethernet0/0/3]p h u v 10 20
[SW3-Ethernet0/0/3]int e0/0/2
[SW3-Ethernet0/0/2]p h p v 20 
[SW3-Ethernet0/0/2]p h u v 10 20
[SW3-Ethernet0/0/2]int e0/0/4
[SW3-Ethernet0/0/4]p h p v 20
[SW3-Ethernet0/0/4]p h u v 10 20
[SW3-Ethernet0/0/4]q
[SW3]stp mode mstp
[SW3]stp region-configuration 
[SW3-mst-region]region-name huawei	
[SW3-mst-region]revision-level 1
[SW3-mst-region]instance 1 vlan 10
[SW3-mst-region]instance 2 vlan 20
[SW3-mst-region]active region-configuration 
           
R1
<Huawei>undo terminal mo
<Huawei>sys
[Huawei]sysn R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.10.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.20.1 24
[R1-GigabitEthernet0/0/1]int loo 0
[R1-LoopBack0]ip add 1.1.1.1 32
           
華為--MSTP實驗一:概述二:實驗
華為--MSTP實驗一:概述二:實驗
華為--MSTP實驗一:概述二:實驗

2.5:實驗總結

<Huawei>undo terminal monitor   關閉提醒
<Huawei>sys
[SW]user-interface console 0
[SW-ui-console0]idle-timeout 0 0    設定永不逾時
[SW]stp mode mstp                                  stp模式設定為mstp
[SW]stp region-configuration      進入mstp區域設定 
[SW-mst-region]region-name huawei      區域名稱
[SW-mst-region]revision-level 1	       版本級别為1
[SW-mst-region]instance 1 vlan 10        定義示例1為vlan10
[SW-mst-region]instance 2 vlan 20
[SW-mst-region]active region-configuration 對mstp配置儲存
[SW-mst-region]q
[SW]stp instance 1 root primary  定義本交換機為執行個體1的根 
[SW]stp instance 2 root secondary 定義本交換機為執行個體2的備選根
           

繼續閱讀