天天看點

Packet Tracer仿真實驗|第六章 快速生成樹

實驗時間正序目錄

        • 第六章 快速生成樹
          • 實驗背景
          • Packet Tracer拓撲圖
          • IP配置
            • 計算機0
            • 計算機1
          • 交換機配置
            • 交換機0
            • 交換機1
          • 網絡檢測
            • 計算機0 ping 計算機1
          • 交換機配置更改
            • 交換機1
          • 拓撲變更
          • 網絡檢測
            • 計算機0 ping 計算機1

第六章 快速生成樹

實驗背景

學校為了開展計算機教學和網絡辦公,建立的一個計算機教室和一個校辦公區,這

兩處的計算機網絡通過兩台交換機互聯組成内部校園網,為了提高網絡的可靠性,

作為網絡管理者,你要用 2 條鍊路将交換機互連,現要求在交換機上做适當配置,

是網絡避免環路。

Packet Tracer拓撲圖
Packet Tracer仿真實驗|第六章 快速生成樹
IP配置

計算機0

IP: 192.168.1.2

子網路遮罩: AUTO

網關: 192.168.1.1

計算機1

IP: 192.168.1.3

子網路遮罩: AUTO

網關: 192.168.1.1

交換機配置

交換機0

Switch>en
Switch#show spanning-tree
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32769
             Address     0001.C94D.2E2B
             Cost        19
             Port        1(FastEthernet0/1)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0006.2A71.6595
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3            Desg FWD 19        128.3    P2p
Fa0/1            Root FWD 19        128.1    P2p
Fa0/2            Altn BLK 19        128.2    P2p

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#int fa 0/3
S1(config-if)#exit
S1(config)#int rang fa 0/1-2
S1(config-if-range)#switch mode trunk


S1(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
exit
S1(config)#spanning-tree mode rapid-pvst
S1(config)#end
           

交換機1

Switch>en
Switch#conf t
Switch(config)#hostname S2
S2(config)#int range fa 0/1-2
S2(config-if-range)#switch mode trunk
S2(config-if-range)#exit
S2(config)#spanning-tree mode rapid-pvst
S2(config)#end
S2#
%SYS-5-CONFIG_I: Configured from console by console
show spanning-tree
VLAN0001
  Spanning tree enabled protocol rstp
  Root ID    Priority    32769
             Address     0001.C94D.2E2B
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0001.C94D.2E2B
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Desg FWD 19        128.1    P2p
Fa0/3            Desg FWD 19        128.3    P2p
Fa0/2            Desg FWD 19        128.2    P2p
           
網絡檢測

計算機0 ping 計算機1

Packet Tracer仿真實驗|第六章 快速生成樹

檢測兩主機之間可以正常通信

交換機配置更改

交換機1

S2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S2(config)#int fa 0/1
S2(config-if)#shut
           
拓撲變更
Packet Tracer仿真實驗|第六章 快速生成樹
網絡檢測

計算機0 ping 計算機1

Packet Tracer仿真實驗|第六章 快速生成樹

檢測兩主機之間依然可以正常通信

繼續閱讀