鏈路捆綁與STP_第1頁
鏈路捆綁與STP_第2頁
鏈路捆綁與STP_第3頁
鏈路捆綁與STP_第4頁
鏈路捆綁與STP_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、 實驗五 鏈路捆綁與STP1 實驗目的1. 組網(wǎng)需求:采用兩臺核心交換機組網(wǎng)來提高網(wǎng)絡可靠性,為防止二層環(huán)路,需要全網(wǎng)運行STP將SW1部署為根網(wǎng)橋,SW2部署為備份根網(wǎng)橋,并將接入PC的接口配置為portfast端口;SW1-SW2之間使用鏈路捆綁進一步提高可靠性。2. 分析STP的選舉過程(根網(wǎng)橋、跟端口、指定端口、阻塞端口)。3. 測試STP切換,并分析STP的端口狀態(tài)切換過程。2 實驗拓撲三實驗步驟1. 基本信息配置 SW1的基本信息配置(SW2、SW3的基本配置與SW1相同)Switch>enable /進入特權模式Switch#config terminal /進入全局配置模

2、式Switch(config)#hostname SW3 /配置主機名SW3(config)#no ip domain-lookup /禁用域名查找SW3(config)#line console 0 /進入Console線路模式SW3(config-line)#logging synchronous /配置Console信息顯示自動換行SW3(config-line)#no login /配置口Console登錄不認證SW3(config-line)#privilege level 15 SW3(config-line)#line vty 0 4 / 進入Vty線路模式SW3(config-

3、line)#no login /配置Telnet登錄不認證SW3(config-line)#privilege level 15 /配置為最高特權級別,enable不需要密碼2. 二層網(wǎng)絡全局配置(1)SW1的Vlan配置SW1# vlan database SW1(vlan)#vtp transparent /透明模式SW1(vlan)#vlan 8SW1(vlan)#vlan 10SW1(vlan)#vlan 11SW1#show vlan-sw briefVLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 創(chuàng)

4、建成功11 VLAN0011 active (2) SW2的Vlan配置SW2# vlan database SW2(vlan)#vtp transparent SW2(vlan)#vlan 8SW2(vlan)#vlan 10SW2(vlan)#vlan 11SW2#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active 11 VLAN0011 active (3) SW3的Vlan配置SW3# vlan database SW3(vlan)#vtp transparent

5、 SW3(vlan)#vlan 8SW3(vlan)#vlan 10SW3(vlan)#vlan 11SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 創(chuàng)建成功11 VLAN0011 active (4) STP根網(wǎng)橋配置SW1(config)#spanning-tree vlan 8 priority 0SW1(config)#spanning-tree vlan 10 priority 0SW1(config)#spanning-tree vla

6、n 11 priority 0(5) STP備份根網(wǎng)橋配置SW2(config)#spanning-tree vlan 8 priority 4096SW2(config)#spanning-tree vlan 10 priority 4096SW2(config)#spanning-tree vlan 11 priority 40963. 二層網(wǎng)絡接口配置及鏈路測試(1) 核心交換機SW1-SW2鏈路捆綁配置及調測SW1(config)#interface range fa0/1 -2 /以太網(wǎng)接口1和2,注意1后面要空格SW1(config-if-range)#switchport tru

7、nk encapsulation dot1qSW1(config-if-range)#switchport mode trunk SW1(config-if-range)#switchport trunk allowed vlan allSW1(config-if-range)#channel-group 2 mode on/手動捆綁:組2SW2(config)#interface range fa0/1 -2 /以太網(wǎng)接口1和2,注意1后面要空格SW2(config-if-range)#switchport trunk encapsulation dot1qSW2(config-if-ran

8、ge)#switchport mode trunk SW2(config-if-range)#switchport trunk allowed vlan allSW2(config-if-range)#channel-group 2 mode on/手動捆綁:組2SW1#show etherchannel summary /查看以太網(wǎng)通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2

9、 Po2(SU) Fa0/1(P) Fa0/2(P)SW2#show etherchannel summary /查看以太網(wǎng)通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2 Po2(SU) Fa0/1(P) Fa0/2(P)(2) SW1-SW3的Trunk鏈路調測SW1(config)#interface fa0/3SW1(config-if)#switchport trunk

10、encapsulation dot1qSW1(config-if)#switchport mode trunk SW1(config-if)#switchport trunk allowed vlan allSW1#show interfaces trunk /查看Trunk信息(只粘貼本步有用信息)Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/1SW3(config-if)#switchport trunk encapsulation dot1qSW3

11、(config-if)#switchport mode trunk SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息(只粘貼本步有用信息)Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1(3) SW2-SW3的Trunk鏈路調測SW2(config)#interface fa0/3SW2(config-if)#switchport trunk encapsulation dot1qSW2(

12、config-if)#switchport mode trunk SW2(config-if)#switchport trunk allowed vlan allSW2#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/2SW3(config-if)#switchport trunk encapsulation dot1qSW3(config-if)#switchport mode trunk

13、SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/2 on 802.1q trunking 1(4) SW3的Access接口配置SW3(config)#interface fa0/10 /與PC1相連的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 10SW3(config-if

14、)#spanning-tree portfast /配置成Portfast端口SW3(config-if)#exitSW3(config)#interface fa0/11 /與PC1相連的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 11SW3(config-if)#spanning-tree portfast /配置成Portfast端口SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports10 VLAN0010 active

15、Fa0/1011 VLAN0010 active Fa0/11(5) 二層設備網(wǎng)管地址配置/為SW2配置網(wǎng)管接口SW2(config)#interface vlan 8 SW2(config-if)#ip address 192.168.8.130 255.255.255.128SW2(config-if)#no shutdownSW2(config-if)#exit SW2(config)#ip default-gateway 192.168.8.129/為SW3配置網(wǎng)管接口SW3(config)#interface vlan 8SW3(config-if)#ip address 192.1

16、68.8.131 255.255.255.128SW3(config-if)#no shutdownSW3(config-if)#exit SW3(config)#ip default-gateway 192.168.8.129 (6) 二層網(wǎng)絡STP調測SW1#show spanning-tree brief /查看生成樹簡要信息VLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 This bridge is the root Hello Time 2 sec Max Age

17、20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都為指定端口,轉發(fā)狀態(tài) VLAN10 Spanning tree e

18、nabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Rol

19、e FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都為指定端口,轉發(fā)狀態(tài) Vlan11 。 SW2#show spanning-tree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 12 Port 321 (Port-channel2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bri

20、dge ID Priority 4096 Address cc01.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name Port ID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD DesgPort-channel2 129.65 128 12 FWD Root/Fa0/3為指定端口,Po2為跟端口,都為轉發(fā)狀態(tài)。Vlan 10 、Vlan 11 。SW3#show spanning-t

21、ree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interfac

22、e Designated Name PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD Root FastEthernet0/2 128.3 128 19 BLK Altn /Fa0/1為根端口,轉發(fā)狀態(tài);Fa0/2為其他端口,阻塞狀態(tài)。VLAN10 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 se

23、c Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface DesignatedName PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD RootFastEthernet0/2 128.3 128 19 BLK AltnFastEthernet0/10 128.11 128 19 FWD Desg

24、/Fa0/1為根端口,轉發(fā)狀態(tài);Fa0/2為其他端口,阻塞狀態(tài);Fa0/10為指定端口,轉發(fā)狀態(tài)。Vlan11。4. 三層網(wǎng)絡接口配置 SW1(config)#ip routing /啟動三層交換機的路由SW1(config)#interface vlan 8 /Vlan 8 的路由點SW1(config-if)#ip address 192.168.8.129 255.255.255.128SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 10 /Vlan 10 的路由點SW1(config-if)#ip address 192.168.10.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 11 /Vlan 11的路由點SW1(config-if)#ip address 192.168.11.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit 5. STP切換測試SW3(config)#interface fa0/1SW3(confi

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論