網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書_第1頁
網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書_第2頁
網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書_第3頁
網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書_第4頁
網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書_第5頁
已閱讀5頁,還剩109頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、網(wǎng)絡(luò)組建與管理實訓(xùn)指導(dǎo)書林駿澎計算機技術(shù)教研室廣州城建職業(yè)學(xué)院目錄交換機的基本配置1在單臺交換機中劃分虛擬局域網(wǎng) VLAN2跨交換機劃分虛擬局域網(wǎng) VLAN4端口聚合提供冗余備份鏈路7生成樹協(xié)議的配置9路由器的基本配置16用路由器實現(xiàn)不同 VLAN 間路由18用三層交換機的物理接口實現(xiàn) VLAN 間路由21用三層交換機的虛擬接口實現(xiàn) VLAN 間路由24單臂路由27交換機內(nèi)網(wǎng)綜合配置31靜態(tài)路由36態(tài)路由 Rip 協(xié)議39動態(tài)路由 Rip 協(xié)議 v2 版本42態(tài)路由 OSPF 協(xié)議44路由重發(fā)布45路由交換綜合網(wǎng)絡(luò)實驗50實驗 1實驗 2實驗 3實驗 4實驗 5實驗 6實驗 7實驗 8實驗 9

2、實驗 10實驗 11實驗 12實驗 13實驗 14實驗 15實驗 16實驗 17實驗 18實驗 19實驗 20實驗 21實驗 22實驗 23實驗 24實驗 25實驗 26實驗 27實驗 28實驗 29網(wǎng)絡(luò)網(wǎng)絡(luò)網(wǎng)絡(luò)網(wǎng)絡(luò)網(wǎng)絡(luò)-基本的網(wǎng)絡(luò)-基本的網(wǎng)絡(luò)-擴展的網(wǎng)絡(luò)-擴展的網(wǎng)絡(luò)-基于時間的網(wǎng)絡(luò)(PT)59(309) .62(PT)65(309) .66(309) .67網(wǎng)絡(luò)地址轉(zhuǎn)換(PT)69網(wǎng)絡(luò)地址轉(zhuǎn)換(309)73網(wǎng)絡(luò)設(shè)備提供 DHCP 服務(wù)76綜合實訓(xùn) 1(309)79綜合實訓(xùn) 2(pt 模擬器上完成)83雙企業(yè)網(wǎng)絡(luò)配置綜合案例(309)88擴展訓(xùn)練(模擬器)109附錄:2309 網(wǎng)使用簡介109

3、廣州城建職業(yè)學(xué)院2309網(wǎng)絡(luò)布局凸1組2組機柜1機柜23組4組機柜3機柜4機柜5機柜6機柜75組6組機柜8本PC機采網(wǎng)卡,每臺PC都有兩根線纜連接到實驗機柜 7組配置網(wǎng)卡線纜連接線纜機柜連接線測試網(wǎng)卡線纜頁 1. 110提示:本實訓(xùn)中的網(wǎng)絡(luò)設(shè)備接口:在 2309中的 1-2 組機柜用到路由器接口為 F1/0、F1/1、S1/2;3-7 組機柜中用到路由器接口為 F0/0、F0/1、S1/0; 實驗過程中沒有指導(dǎo)書中相應(yīng)的接口應(yīng)根據(jù)你所實訓(xùn)的組號進行更改。發(fā)現(xiàn)設(shè)備配置設(shè)備時最好先在設(shè)備中通過show ip interfere brief 或showrunning-config 命令查看設(shè)備所有的

4、接口,然后在根據(jù)拓?fù)溥B接情況進行配置連接到306中心機房講臺廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室實驗 1交換機的基本配置【實驗名稱】使用交換機令行模式【實驗?zāi)康摹空莆战粨Q機命令行【實現(xiàn)功能】熟練掌握交換機模式的區(qū)別,以及模式之間的切換令行操作模式【實驗設(shè)備】S2126G 交換機(1 臺)【實驗拓?fù)洹縎witch【實驗步驟】交換機命令行操作模式的進入。Switch>enableSwitch#14!輸入!進入模式starSwitch#configure terminalSwitch(config)#!進入全局配置模式Switch(config)#interface模式Switch(con

5、fig-if) Switch(config-if)#exit Switch(config)# Switch(config-if)#end Switch#交換機命令行基本功能。fastethernet1/0!進入路由器 F1/0 的接口!退回到上一級操作模式!直接退回到模式!ctrl+z 也直接退回到模式R幫助信息(?的作用)Switch#> ?Exec commands:<1-99>disable disconnect enable exithelpping show!顯示當(dāng)前模式下所有可執(zhí)行令Session number to resume Turn off privile

6、ged commandsDisconnect an existing network connection Turn on privileged commandsExit from the EXECDescription of the interactive help system Send echo messagesShow running system informationstart-terminal-service Start terminal servicetelnetOpen a telnet connection1組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書tracerouteTracerout

7、e to destinationSwitch#co?configure!顯示當(dāng)前模式下所有以 co 開頭令copySwitch#copy?!顯示 copy 命令后可執(zhí)行的參數(shù)R歷史命令的調(diào)用(上下箭頭鍵的作用)R中斷當(dāng)前的操作(ctrl + c 鍵的作用)思考題:1.網(wǎng)絡(luò)設(shè)備之間的模式轉(zhuǎn)換:【1】用戶EXEC模式s>EXEC模式s#【3】End或Ctrl+Z【2】【4】接口配置模式s(config-if)#全局配置模式s(config)#【5】2.查找資料簡述交換機的工作原理?實驗 2VLAN在單臺交換機中劃分虛擬局域網(wǎng)【實驗名稱】【實驗?zāi)康摹俊颈尘懊枋觥繂闻_交換機中劃分虛擬局域網(wǎng) VL

8、AN(交換機端口理解 Port Vlan 的配置。)假設(shè)某企業(yè)有 2 個主要部門:銷售部和技術(shù)部,其中銷售部門有個人計算機及服務(wù)器共 6 臺,而技術(shù)部門有個人計算機 5 臺;如果每個部門各用一臺 24 口的交換機,這將造成巨大的浪費,如果接在同一個交換機上又存在局域網(wǎng)安全問題。這樣我們可以通過在同一個交換機上劃分虛擬局域網(wǎng)vlan 來實現(xiàn)銷售部和技術(shù)部內(nèi)部進行相互通訊,銷售部和技術(shù)部之間不能相互通訊?,F(xiàn)要在交換機上做適當(dāng)配置來實現(xiàn)這一目標(biāo)?!緦崿F(xiàn)功能】 同一個虛擬局域網(wǎng) vlan 的主機可以相互通訊,不同 vlan 的主機不2廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室可以相互通訊?!緦嶒炘O(shè)備】【

9、實驗拓?fù)洹縎2126G(1 臺)PC1PC2SwitchF0/F0/15Vlan 10Vlan 20注:在未劃 VLAN 前兩臺 PC 相互可以 ping 通【實驗步驟】第一步:創(chuàng)建 VLAN 10,并將 f0/1-8 端口劃分到 Vlan 10 中。Switch#configure terminal Switch(config)#vlan 10 Switch(config-vlan)#name Switch(config-vlan)#exit Switch(config)#interface的接口配置模式。!進入全局配置模式。創(chuàng)建 vlan 10。將 Vlan 10 命名為 test10。返

10、回全局配置模式。test10range fastethernet0/1-8!進入 fastethernet 0/1-8Switch(config-if)#switchport access vlan 10 Vlan 10。Switch(config-if)#exit!將 fastethernet 0/1-8 端口劃分到! 返回全局配置模式。第二步:創(chuàng)建 VLAN 20,并將 f0/9-16 端口劃分到 Vlan 20 中。Switch(config)#vlan 20 Switch(config-vlan)#name Switch(config-vlan)#exit Switch(config)

11、#interface口配置模式。!創(chuàng)建 vlan 20。將 Vlan 20 命名為 test20。返回全局配置模式。test20range fastethernet0/9-16 ! 進入 fastethernet 0/9-16 的接Switch(config-if)#sswwitchport到 vlan 20 中。Switch(config-vlan)#exitaccess vlan 20! 將 fastethernet 0/9-16 端口劃分!返回全局配置模式。檢查配置:Switch#show vlanVLANNameStatusPorts1defaultactiveFa0/17,Fa0/1

12、8,Fa0/19,Fa0/20,F(xiàn)a0/21,Fa0/22, Fa0/23 ,F(xiàn)a0/24Fa0/1,F(xiàn)a0/2,F(xiàn)a0/3,F(xiàn)a0/4,F(xiàn)a0/5,F(xiàn)a0/6,F(xiàn)a0/7,F(xiàn)a0/810test10active3組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書20test20activeFa0/9,F(xiàn)a0/10,F(xiàn)a0/11,F(xiàn)a0/12,F(xiàn)a0/13,F(xiàn)a0/14,F(xiàn)a0/15,F(xiàn)a0/16,第三步:驗證測試:劃分 VLAN 后兩臺 PC 不能相互 ping 通思考題:1. vlan 的什么什么?有什么作用?2. vlan 是怎樣實現(xiàn)的?實驗 3跨交換機劃分虛擬局域網(wǎng) VLAN【實驗名稱】【實驗?zāi)康摹俊颈尘懊?/p>

13、述】跨交換機劃分虛擬局域網(wǎng) VLAN理解 VLAN 如何跨交換機實現(xiàn)假設(shè)某企業(yè)有 2 個主要部門:銷售部和技術(shù)部,其中銷售部門的個人計算機系統(tǒng)分散連接在 2 臺交換機上,他們之間需要相互進行通信,銷售部和技術(shù)部也需要進行相互通訊,現(xiàn)要在交換機上做適當(dāng)配置來實現(xiàn)這一目標(biāo)?!緦崿F(xiàn)功能】 不同交換機之間的相同 vlan 通過 trunk 可以通訊,不同 vlan 的流量不可以通訊?!緦嶒炘O(shè)備】 S2126G (2 臺)【實驗拓?fù)洹縋C1SwitchASwitchBPC3F0/5F0/20F0/5F0/20F0/15vlan10 Salesvlan10 SalesPC2vlan 20 Technica

14、l【實驗步驟】第一步:在交換機 SwitchA 上創(chuàng)建 VlanSwitchA#configure terminal SwitchA(config)#vlan 1010,并將 f0/1-8 端口劃分到 Vlan 10 中。!進入全局配置模式。!創(chuàng)建 Vlan 10。!將 Vlan 10 命名為 sales。! 返回全局配置模式。SwitchA(config-vlan)#nameSwitchA(config-vlan)#exit SwitchA(config)#interfacesalesfastethernet0/1-8!進入接口配置模式。!將 f0/1-8 端口劃分到 Vlan 10。! 返

15、回全局配置模式。SwitchA(config-if)#switchport access vlan 10SwitchA(config-if)#exit4廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室第二步:在交換機 SwitchA 上創(chuàng)建 Vlan 20,并將 f0/9-16 端口劃分到 Vlan 20 中。SwitchA(config)# vlan SwitchA(config-vlan)#SwitchA(config-vlan)#20name exit!創(chuàng)建 Vlan 20。!將 Vlan 20 命名為 technical。! 返回全局配置模式。!進入接口配置模式。!將 0/9-16 端口劃分到

16、 Vlan 20。! 返回全局配置模式。technicalSwitchA(config)# interfacefastethernet0/9-16SwitchA(config-if)# switchport access vlan 20SwitchA(config-if)# exit第三步:在交換機 SwitchA 上將與 SwitchB 相連的端口(假設(shè)為 f0/20 端口)定義為 tag vlan模式SwitchA(config)# interface fastethernet 0/20 SwitchA(config-if)# switchport mode trunk tag vlan

17、模式SwitchA(config-if)#exit!進入接口配置模式。!將 fastethernet 0/20 端口設(shè)為! 返回全局配置模式。檢查配置:驗證已創(chuàng)建了 Vlan20,并將 0/9-16 端口已劃分到 Vlan 20 中。SwitchA#show vlanVLANNameid20StatusPorts20technicalactiveFa0/9,Fa0/10,Fa0/11,Fa0/12,Fa0/13,Fa0/13,Fa0/15,Fa0/16檢查配置:驗證 fastethernet0/20 端口已被設(shè)置為 tag vlan 模式。SwitchA#show interfaces fas

18、tethernet 0/20 switchportInterfaceSwitchport ModeAccessNativeProtected VLAN listsFa0/20EnabledTrunk11DisabledAll第四步:在交換機 SwitchB 上創(chuàng)建 Vlan SwitchB#configure terminalSwitchB(config)#vlan 1010,并將 0/1-8 端口劃分到 Vlan 10 中。!進入全局配置模式。!創(chuàng)建 Vlan 10。!將 Vlan 10 命名為 sales。! 返回全局配置模式。SwitchB(config-vlan)#nameSwitch

19、B(config-vlan)#exit SwitchB(config)#interfacesalesfastethernet0/1-8!進入接口配置模式。!將 0/1-8 端口劃分到 Vlan 10。! 返回全局配置模式。SwitchB(config-if)#switchport access vlan 10SwitchB(config-if)#exit第五步:在交換機 SwitchB 上將與 SwitchA 相連的端口(假設(shè)為 0/20 端口)定義為 tag vlan模式。SwitchB(config)#interface fastethernet 0/20 SwitchB(config-i

20、f)#switchport mode trunk tag vlan 模式SwitchB(config-if)#exit!進入接口配置模式!將 fastethernet 0/24 端口設(shè)為! 返回全局配置模式。檢查配置:驗證已在 SwitchB 上創(chuàng)建了 Vlan 10,并將 0/1-8 端口已劃分到 Vlan 10 中。SwitchB#show vlan id 105組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書VLANNameStatusPorts10salesactiveFa0/1,Fa0/2,Fa0/3,Fa0/4,Fa0/5Fa0/6,Fa0/7,Fa0/8檢查配置:驗證 fastethernet0/2

21、0 端口已被設(shè)置為 tag vlan 模式。SwitchB#show interfaces fastEthernet 0/20 switchportInterfaceSwitchport ModeAccessNativeProtected VLAN listsFa0/20EnabledTrunk11DisabledAll第六步:驗證測試驗證 PC1 與 PC3 能互相通信,但 PC2 與 PC3 不能互相通信。C:>ping 192.168.10.30通 PC3 。Pinging 192.168.10.30 with 32 bytes of data:!在 PC1令行方式下驗證能 Pin

22、gReply Reply ReplyReplyfrom from fromfrom192.168.10.30:192.168.10.30:192.168.10.30:192.168.10.30:bytes=32 bytes=32 bytes=32bytes=32time<10ms time<10ms time<10mstime<10msTTL=128 TTL=128 TTL=128TTL=128C:>ping 192.168.10.30Ping 通 PC3 。!在PC2令行方式下驗證不能Pinging192.168.10.30with32bytesofdata:R

23、equest Request RequestRequesttimed timed timedtimedout. out. out.out.6注意:cisco 交換機配置 trunk 口時,由于 cisco 交換機可以支持多個 tap vlan 封裝協(xié)議, 有:ISL 和 dot1q;所以遇上不能配上去的時候要打如下命令:Switch(config)#interface fastethernet 0/20 Switch(config-if)#switch mode trunkCommand rejected: An interface whose trunk encapsulation is &

24、quot;Auto" can not be configured to "trunk" mode.Switch(config)#interface fastethernet 0/20 Switch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#switchport mode trunkSwitch(config-if)#廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室思考題:1.如下圖所示的網(wǎng)絡(luò)中,switchA 的 f0/1-20 接口在 vlan10 里面,switchB 的 f0/

25、1-20 接口在 vlan20 里面,switchA 和 SwitchB 通過 f0/20 相連接,請問 PC1,PC2、PC3 這三臺主機分別哪些能相互通信?實驗 4端口聚合提供冗余備份鏈路【實驗名稱】 端口聚合提供冗余備份鏈路【實驗?zāi)康摹?理解鏈路聚合的配置及原理【背景描述】 假設(shè)某企業(yè)有 2 個直屬:兩個都存在有財務(wù)部和技術(shù)部且需要相互通訊,并且兩個不在同一樓層,這時候我們要在同一交換機上劃分 vlan 通過 trunk 口來傳輸不同 vlan 的流量;但是平常的 trunk 口只連接一條網(wǎng)線,這就出現(xiàn)了可靠性問題,萬一線路出現(xiàn)問題就會造成兩個的部門不可通訊,為了提高其可靠性,我們需要將

26、多個端口聚行相應(yīng)配置來實現(xiàn)這一目標(biāo)?!緦嶒炘O(shè)備】 S2126G (2 臺)trunk 口,現(xiàn)要對交換機進【實驗拓?fù)洹?(兩位同學(xué)合作做一組,其中機架上的交換機 s1 和 s3 一組;s2 和 s4 一組,請同學(xué)們按照此安排和同學(xué)合作做端口聚合實訓(xùn))PC2PC1SwitchASwitchBF0/20F0/5F0/5F0/21192.168.10.10/24192.168.10.20/24【實驗步驟】第一步:在交換機 SwitchA 上創(chuàng)建 Vlan10,并將 0/5 端口劃分到 Vlan 10 中SwitchA >enable 14為 starSwitchA # configure ter

27、minalSwitchA(config)# vlan 10 SwitchA(config-vlan)# name sales!進入全局配置模式!創(chuàng)建 Vlan 10!將 Vlan 10 命名為 sales7組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書SwitchA(config-vlan)#exitSwitchA(config)#interface fastethernet 0/5 SwitchA(config-if)#switchport access vlan 10!進入接口配置模式!將 0/5 端口劃分到 Vlan 10驗證測試:驗證已創(chuàng)建了 Vlan10,并將 0/5 端口已劃分到 Vlan 10 中

28、SwitchA#showVLAN Namevlanid10StatusPorts10salesactiveFa0/5第二步:在交換機 SwitchA 上配置聚合端口SwitchA(config)#interface aggregateport 1 SwitchA(config-if)#switchport mode trunk SwitchA(config-if)#exit SwitchA(config)#interfacerange fastethernetSwitchA(config-if)#port-group 1!創(chuàng)建聚合接口 AG1!配置 AG 模式為 trunk0/20-21 入接

29、口 0/20 和 0/21!配置接口 0/20 和 0/21 屬于 AG1驗證測試:驗證接口 fastethernet 0/20 和 0/21 屬于 AG1 SwitchA#show aggregatePort 1 summaryAggregatePort MaxPorts SwitchPort ModePortsAg18EnabledTrunkFa0/20 , Fa0/21第三步:在交換機 SwitchB 上創(chuàng)建 Vlan10,并將 0/5 端口劃分到 Vlan 10 中SwitchB >enable 14為 starSwitchB # configure terminal Switc

30、hB(config)# vlan 10 SwitchB(config-vlan)# name sales SwitchB(config-vlan)#exitSwitchB(config)#interface fastethernet!進入全局配置模式!創(chuàng)建 Vlan 10!將 Vlan 10 命名為 sales0/5!進入接口配置模式!將 0/5 端口劃分到 Vlan 10SwitchB(config-if)#switchport access vlan 10驗證測試:驗證已在 SwitchB 上創(chuàng)建了 Vlan 10,并將 0/5 端口已劃分到 Vlan 10 中SwitchB#showvl

31、anid10VLAN NameStatusPorts10salesactiveFa0/5第四步:在交換機 SwitchB 上配置聚合端口SwitchB(config)#interface aggregateport 1 SwitchB(config-if)#switchport mode trunk SwitchB(config-if)#exit SwitchB(config)#interfacerange fastethernetSwitchB(config-if)#port-group 1!創(chuàng)建聚合接口 AG1!配置 AG 模式為 trunk0/20-21 入接口 0/20 和 0/21!

32、配置接口 0/20 和 0/21 屬于 AG18廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室驗證測試:驗證接口 fastethernet 0/20 和 0/21 屬于 AG1 SwitchB#show aggregatePort 1 summaryAggregatePort MaxPorts SwitchPort ModePortsAg18EnabledTrunkFa0/20 , Fa0/21第五步:驗證當(dāng)交換機之間的一條鏈路斷開時,PC1 與 PC2 仍能互相通信C:>ping 192.168.10.20 -t!在 PC1令行方式下驗證能 Ping 通 PC3Pinging 192.168

33、.10.20 with 32 bytes of data:Reply Reply ReplyReplyfrom from fromfrom192.168.10.20:192.168.10.20:192.168.10.20:192.168.10.20:bytes=32 bytes=32 bytes=32bytes=32time<10ms time<10ms time<10mstime<10msTTL=128 TTL=128 TTL=128TTL=128思考題:1.為什么要進行端口聚合?有什么作用?實驗 5生成樹協(xié)議的配置【實驗名稱】【實驗?zāi)康摹俊緦嶒炘O(shè)備】【實驗拓?fù)洹可?/p>

34、樹協(xié)議 STP理解生成樹協(xié)議 STP 的配置及原理S2126G(2 臺)SwitchBSwitchAF0/1F0/1F0/2F0/2F0/3F0/3PC1PC2【實驗步驟】第一步:在每臺交換機上開啟生成樹協(xié)議例如對 SwitchA 做如下配置:SwitchA#configure terminal!進入全局配置模式SwitchA(config)#spanning-tree !開啟生成樹協(xié)議9組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書SwitchA(config)#end驗證測試:驗證生成樹協(xié)議已經(jīng)開啟SwitchA#show StpVersion : SysStpStatus BaseNumPortsMaxA

35、ge : 20spanning-treeMSTP!顯示交換機生成樹的狀態(tài):Enabled24HelloTime : 2ForwardDelay : BridgeMaxAge :1520BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops : 20TxHoldCount : 3 PathCostMethod : Long BPDUGuard : DisabledBPDUFilter:Disabled# MSTBridgeAddr Priority :0:vlans mapped :00d0.f8ef.9e89All32768TimeSinceTopo

36、logyChange : 0d:0h:0m:8s TopologyChanges : 0DesignatedRoot : 800000D0F8EF9D09 RootCost : 200000RootPort : Fa0/1CistRegionRoot : 800000D0F8EF9E89 CistPathCost : 0SwitchA#show spanning-treeinterface fastthernet 0/1 的狀態(tài)PortAdminPortfast : Disabled PortOperPortfast : Disabled PortAdminLinkType : auto Po

37、rtOperLinkType : point-to-point PortBPDUGuard: DisabledPortBPDUFilter: Disabledfastthernet 0/1! 顯示交換機接口# MST 0 vlans mapped : AllPortState : forwarding態(tài)PortPriority : 128!顯示接口 fastthernet 0/1 處于轉(zhuǎn)發(fā)(forwarding) 狀PortDesignatedRoot : 800000D0F8EF9D0910廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室PortDesignatedCost :PortDesigna

38、tedBridge PortDesignatedPort :0: 800000D0F8EF9D09 8001PortForwardTransitions : 1PortAdminPathCost : 0PortOperPathCost : 200000 PortRole : rootPort第二步:設(shè)置生成樹模式SwitchA(config)#spanning-treemode驗證測試:驗證生成樹協(xié)模式為 802.1Dstp!設(shè)置生成樹模式為 STP(802.1D)SwitchA#show StpVersion : SysStpStatus BaseNumPortsMaxAge : 20spa

39、nning-treeSTP:Enabled24HelloTime : 2 ForwardDelay :BridgeMaxAge :1520BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops : 20TxHoldCount : 3 PathCostMethod : Long BPDUGuard : DisabledBPDUFilterBridgeAddr Priority : Disabled: 00d0.f8ef.9e89 32768TimeSinceTopologyChange : 0d:0h:7m:0s TopologyChanges : 0

40、DesignatedRoot : 800000D0F8EF9D09 RootCost : 200000RootPort : Fa0/1第三步:設(shè)置交換機的優(yōu)先級SwitchA(config)#spanning-tree priority4096!設(shè)置交換機 SwitchA 的優(yōu)先級為4096, 數(shù)值最小的交換機為根交換機(也稱根橋),交換機 SwitchB 的優(yōu)先級采用默認(rèn)優(yōu)先級(32768),因此 SwitchA 將成為根交換機。驗證測試:驗證交換機 SwitchA 的優(yōu)先級SwitchA#show StpVersion : SysStpStatusBaseNumPortsspanning-

41、tree STP: Enabled: 2411組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書MaxAge : 20HelloTime : 2ForwardDelay : 15BridgeMaxAge : 20BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops : 20TxHoldCount : 3 PathCostMethod : Long BPDUGuard : DisabledBPDUFilterBridgeAddr Priority : Disabled: 00d0.f8ef.9e89 4096TimeSinceTopologyChange : 0d:0h:

42、0m:0s TopologyChanges : 26DesignatedRoot : 100000D0F8EF9E89 RootCost : 0RootPort : 0第四步:交換機 BSwitchB#configure terminal!進入全局配置模式SwitchB(config)#spanning-tree !開啟生成樹協(xié)議SwitchB(config)#spanning-treemodestp !設(shè)置生成樹模式為 STP SwitchB(config)#end(802.1D)第五步:綜合驗證測試. 驗證交換機 SwitchB 的端口 F0/和 F0/的狀態(tài)SwitchB#show sp

43、anning-tree interface fastEthernet 0/1 fastthernet 0/1 的狀態(tài)!顯示 SwitchB 的端口PortAdminPortfast : Disabled PortOperPortfast : Disabled PortAdminLinkType : auto PortOperLinkType : point-to-point PortBPDUGuard: DisabledPortBPDUFilter: DisabledPortState : forwarding狀態(tài)!SwitchB 的端口 fastthernet 0/處于轉(zhuǎn)發(fā)(forwardi

44、ng)PortPriority : 128 PortDesignatedRoot : PortDesignatedCost :PortDesignatedBridge200000D0F8EF9E890: 200000D0F8EF9E8912廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室PortDesignatedPort : 8002PortForwardTransitions : 22PortAdminPathCost : 0PortOperPathCost : 200000 PortRole : rootPortSwitchB#show spanning-tree interface fastE

45、thernet 0/2fastthernet 0/2 的狀態(tài)!顯示 SwitchB 的端口PortAdminPortfast : Disabled PortOperPortfast : Disabled PortAdminLinkType : auto PortOperLinkType : point-to-point PortBPDUGuard: Disabled PortBPDUFilter: DisabledPortState : discarding!SwitchB 的端口 fastthernet 0/2 處于阻塞(discarding)狀態(tài)PortPriority : 128Port

46、DesignatedRoot : PortDesignatedCost : PortDesignatedBridgePortDesignatedPort :200000D0F8EF9E89200000: 800000D0F8EF9D09 8002PortForwardTransitions : 39PortAdminPathCost : 0PortOperPathCost : 200000 PortRole : alternatePort2. 驗證網(wǎng)絡(luò)拓?fù)浒l(fā)生變化時,ping 的丟包情況C:>ping 192.168.0.136 t!從主機 PC1 ping PC2(用連續(xù) ping),

47、然后拔掉 SwitchA與 SwitchB 的端口 F0/1 之間的連線,觀察丟包情況。顯示結(jié)果如下:13組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書以上結(jié)果顯示丟包數(shù)為 30 個。3. 驗證網(wǎng)絡(luò)拓?fù)浒l(fā)生變化時,交換機 SwitchB 的端口的狀態(tài)變化,并觀察生成樹的收斂時間SwitchB#show spanning-tree interface fastEthernet 0/2 fastthernet 0/2 的狀態(tài)PortAdminPortfast : Disabled PortOperPortfast : Disabled PortAdminLinkType : auto PortOperLinkTyp

48、e : point-to-point PortBPDUGuard: DisabledPortBPDUFilter: Disabled!顯示 SwitchB 的端口PortState : forwarding狀態(tài),轉(zhuǎn)換時間大約 32 秒PortPriority : 128!SwitchB 的端口 fastthernet 0/2 轉(zhuǎn)變?yōu)檗D(zhuǎn)發(fā)(forwarding)PortDesignatedRoot : PortDesignatedCost : PortDesignatedBridgePortDesignatedPort :200000D0F8EF9E89200000: 800000D0F8EF9

49、D09 8002PortForwardTransitions : 40PortAdminPathCost : 0PortOperPathCost : 200000 PortRole : rootPortSwitchB#show spanning-tree interface fastEthernet 0/2!顯示 SwitchB 的端口14廣州城建職業(yè)學(xué)院機電與信息網(wǎng)絡(luò)技術(shù)教研室fastthernet 0/2 的狀態(tài)2003-04-27 23:27:242003-04-27 23:27:53PortAdminPortfast :5-LINKUPDOWN:Fa0/2 changed state

50、to up 4-TOPOCHANGE:Topology is changedDisabledPortOperPortfast : Disabled PortAdminLinkType : auto PortOperLinkType : point-to-point PortBPDUGuard: DisabledPortBPDUFilter: DisabledPortState : discarding狀態(tài),轉(zhuǎn)換時間大約 31 秒PortPriority : 128!SwitchB 的端口 fastthernet 0/2 轉(zhuǎn)變?yōu)樽枞╠iscarding)PortDesignatedRoot :

51、 PortDesignatedCost : PortDesignatedBridgePortDesignatedPort :200000D0F8EF9E89200000: 800000D0F8EF9D09 8002PortForwardTransitions : 40PortAdminPathCost : 0PortOperPathCost : 200000 PortRole : alternatePort【參考配置】SwitchA#showrun! 交換機 SwitchA 的全部配置Building configuration.Current configuration : 122 byte

52、s!version 1.0!hostname SwitchAspanning-tree spanning-tree spanning-treeendmode stpmst 0 priority 4096SwitchB#showrun! 交換機 SwitchB 的全部配置Building configuration. Current configuration : 85 bytes!version 1.0!hostname SwitchB spanning-tree mode stp spanning-treeend15組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理實訓(xùn)指導(dǎo)書思考題:1. 為什么會有生成樹,作用是什么?2. 查找資料了解生成樹的類型有那些?各有什么標(biāo)準(zhǔn)?實驗 6路由器的基本配置【實驗名稱】使用命令行界面【實驗?zāi)康摹空莆章酚善髅钚小緦崿F(xiàn)功能】熟練掌握路由器模式的區(qū)別,以及模式之間的切換令行操作模式【實驗設(shè)備】R1762 路由器(1 臺)【實驗拓?fù)洹縍outerA【實驗步驟】一、路由器命令行Router>enable 14 Pass

溫馨提示

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

評論

0/150

提交評論