




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
實驗四靜/動態路由設置實驗目的學習靜待路由配置方法,理解路由器的工作原理了解路由器的RIP路由協議的原來;熟悉掌握路由器的RIP路由協議的配置方法;了解路由器的OSPF路由協議的原來;熟悉掌握路由器的OSPF路由協議的配置方法。實驗內容根據拓撲圖鏈接好所有設備;綜合使用路由器和主機進行靜態路由方案的設計;使用超級終端進行路由配置;使用PIP路由協議配置路由器的動態路由;使用OSPF路由協議配置路由器的動態路由;相關命令:#shiowipprotocols:顯示路由的路由信息#showiproute:顯示IP路由表靜態路由:(config-if)#ipaddress<本端口IP地址><子網掩碼>:為端口設置一個IP地址(config)#iproute<目的子網地址><子網掩碼><相鄰路由器端口地址或者本地物理端口號>:設置靜態路由(config)#noiproute<目的子網掩碼><子網掩碼><相鄰路由器端口地址或本地物理端口號>:刪除靜態路由RIP:(config)#routerrip:激活RIP路由協議(config-router)#network<>網段地址>:指明相關聯的網段,以便RIP動態學習路由信息OSPF:(config)#routerospf<進程號>:激活OSPF路由協議(config-router)#network<與本路由器相連的ip子網號><通配符>area<區域號>實驗條件:如圖搭建實驗環境。實驗過程配置靜態路由:R2600A#showiproute(查看當前路由信息)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,Ethernet0/0/0C192.168.2.0/24isdirectlyconnected,Ethernet0/1/0C192.168.3.0/24isdirectlyconnected,FastEthernet0/0R2600A#config(設置靜態路由)Configuringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2600A(config)#iproute192.168.4.0255.255.255.0192.168.3.2R2600A(config)#iproute192.168.5.0255.255.255.0192.168.3.2R2600A(config)#exit%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR2600A#showiproute(查看當前路由信息,發生變化)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,Ethernet0/0/0C192.168.2.0/24isdirectlyconnected,Ethernet0/1/0C192.168.3.0/24isdirectlyconnected,FastEthernet0/0S192.168.4.0/24[1/0]via192.168.3.2S192.168.5.0/24[1/0]via192.168.3.2R2600A#對于路由器S2600B進行類似的配合,路由信息如下:R2600B#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetS192.168.1.0/24[1/0]via192.168.3.1S192.168.2.0/24[1/0]via192.168.3.1C192.168.3.0/24isdirectlyconnected,FastEthernet0/0C192.168.4.0/24isdirectlyconnected,Ethernet0/0/0C192.168.5.0/24isdirectlyconnected,Ethernet0/1/0R2600B#在PC1上檢測連通性,如下:R2600A#config(刪除路由器A靜態路由)Configuringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2600A(config)#noiproute192.168.4.0255.255.255.0R2600A(config)#noiproute192.168.5.0255.255.255.0R2600A(config)#exit%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR2600A#showiproute(顯示結果)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,Ethernet0/0/0C192.168.2.0/24isdirectlyconnected,Ethernet0/1/0C192.168.3.0/24isdirectlyconnected,FastEthernet0/0R2600A#對于路由器B也進行類似操作,請參考路由器A。配置RIP路由協議:對路由器A:R2600A(config)#norouteripR2600A#exitR2600A#configConfiguringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2600A(config)#routerripR2600A(config-router)#network192.168.1.0R2600A(config-router)#network192.168.2.0R2600A(config-router)#network192.168.3.0R2600A(config-router)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR2600A#showipprotocols(查看路由器ARIP協議的相關信息)RoutingProtocolis"rip"Sendingupdatesevery30seconds,nextduein7secondsInvalidafter180seconds,holddown180,flushedafter240OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetRedistributing:ripDefaultversioncontrol:sendversion1,receiveanyversionInterfaceSendRecvTriggeredRIPKey-chainEthernet0/0/0121Ethernet0/1/0121FastEthernet0/0121AutomaticnetworksummarizationisineffectMaximumpath:4RoutingforNetworks: 192.168.1.0 192.168.2.0 192.168.3.0PassiveInterface(s):RoutingInformationSources: GatewayDistanceLastUpdateDistance:(defaultis120)對路由器B進行類似的配置,RIP協議的相關信息如下:R2600B#showipprotocols(查看路由器BRIP協議的相關信息)RoutingProtocolis"rip"Sendingupdatesevery30seconds,nextduein20secondsInvalidafter180seconds,holddown180,flushedafter240OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetRedistributing:ripDefaultversioncontrol:sendversion1,receiveanyversionInterfaceSendRecvTriggeredRIPKey-chainFastEthernet0/0121Ethernet0/0/0121Ethernet0/1/0121AutomaticnetworksummarizationisineffectMaximumpath:4RoutingforNetworks: 192.168.3.0 192.168.4.0 192.168.5.0PassiveInterface(s):RoutingInformationSources: GatewayDistanceLastUpdate 192.168.3.112000:00:25Distance:(defaultis120)RoutingProtocolis"ospf100"OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetRouterID192.168.5.1Numberofareasinthisrouteris1.1normal0stub0nssaMaximumpath:4RoutingforNetworks:192.0.0.00.255.255.255area200RoutingInformationSources:GatewayDistanceLastUpdateDistance:(defaultis110)分別查看路由器A、B的動態路由表R2600A#showiproute(路由器A的動態路由表)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,Ethernet0/0/0C192.168.2.0/24isdirectlyconnected,Ethernet0/1/0C192.168.3.0/24isdirectlyconnected,FastEthernet0/0R192.168.4.0/24[120/1]via192.168.3.2,00:00:15,FastEthernet0/0R192.168.5.0/24[120/1]via192.168.3.2,00:00:15,FastEthernet0/0R2600A#R2600B#showiproute(路由器B的動態路由表)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetR192.168.1.0/24[120/1]via192.168.3.1,00:00:00,FastEthernet0/0R192.168.2.0/24[120/1]via192.168.3.1,00:00:00,FastEthernet0/0C192.168.3.0/24isdirectlyconnected,FastEthernet0/0C192.168.4.0/24isdirectlyconnected,Ethernet0/0/0C192.168.5.0/24isdirectlyconnected,Ethernet0/1/0R2600B#在PC1上檢測連通性,結果如下:刪除路由器A、B的RIP路由設置:R2600A#norouterripR2600B#norouterrip配置OSPF路由協議:對路由器A:R2600A#configConfiguringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2600A(config)#routerospf100R2600A(config-router)#network192.168.1.00.255.255.255area200R2600A(config-router)#network192.168.2.00.255.255.255area200R2600A(config-router)#network192.168.3.00.255.255.255area200R2600A(config-router)#endR2600A#showipprotocols(查看A路由器OSPF協議的相關信息)RoutingProtocolis"ospf100"OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetRouterID192.168.3.1Numberofareasinthisrouteris1.1normal0stub0nssaMaximumpath:4RoutingforNetworks:192.0.0.00.255.255.255area200RoutingInformationSources:GatewayDistanceLastUpdateDistance:(defaultis110)對路由器B進行類似配置:(查看B路由器OSPF協議的相關信息)R2600B#showipprotocolsRoutingProtocolis"ospf100"OutgoingupdatefilterlistforallinterfacesisnotsetIncomingupdatefilterlistforallinterfacesisnotsetRouterID192.168.5.1Numberofareasinthisrouteris1.1normal0stub0nssaMaximumpath:4RoutingforNetworks:192.168.3.00.0.0.255area200192.168.4.00.0.0.255area200192.168.5.00.0.0.255area200RoutingInformationSources:GatewayDistanceLastUpdate192.168.3.111000:01:26Distance:(defaultis110)路由器A、B的路由表信息:R2600A#showiproute(路由器A的路由表信息)Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,Ethernet0/0/0C192.168.2.0/24isdirectlyconnected,Ethernet0/1/0C192.168.3.0/24isdirectlyconnected,
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 文庫發布:護理
- 班會課件十分鐘教學反思
- 收納兒童課件圖片
- 關于火災教學課件
- 2025年自然資源部人力資源開發中心招聘應屆畢業生2人筆試歷年典型考題及考點剖析附帶答案詳解
- 時裝比賽活動方案
- 旺旺促銷活動方案
- 春季企業活動策劃方案
- 【石家莊】河北石家莊市無極縣從2025年“三支一扶”志愿者中招聘事業單位工作人員2人筆試歷年典型考題及考點剖析附帶答案詳解
- 新年公司開工策劃方案
- 2024-2025學年山東省濟南市市中區八年級(下)期末數學試卷(含解析)
- 2025年七一黨課-作風建設永遠在路上學習教育黨課
- 2025年高考數學全國二卷試題真題及答案詳解(精校打印)
- 《公路橋梁預應力鋼絞線用錨具夾具和連接器 JTT 329-2025》知識培訓
- 山東省2024年藝術類本科批美術與設計類第1次志愿投檔情況表(公布)
- 10000中國普通人名大全
- 獸藥管理法律制度課件
- 叉車安全駕駛技術(叉車基礎知識、安全駕駛、動力裝置)課件
- 公務員登記表及備案表
- 人教版高一數學必修1課件【全冊】
- 反習慣性違章重在班組長
評論
0/150
提交評論