版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
靜態(tài)、動(dòng)態(tài)路由實(shí)驗(yàn)報(bào)告實(shí)驗(yàn)過程和步驟:1、本次實(shí)驗(yàn)所用的拓?fù)鋱DIP地址分配情況如下:RouterA: FastEthernet0192.168.1.1/24FastEthernet1192.168.2.1/24FastEthernet2192.168.3.1/24RouterB: FastEthernet0192.168.5.1/24FastEthernet1192.168.4.1/24FastEthernet2192.168.3.2/24PC1:192.168.1.2/24網(wǎng)關(guān)192.168.1.1PC2:192.168.2.2/24網(wǎng)關(guān)192.168.2.1PC3:192.168.3.2/24網(wǎng)關(guān)192.168.3.1PC4:192.168.4.2/24網(wǎng)關(guān)192.168.4.12、搭建本地配置控制臺配線架上路由器接口連接情況1FastEthernet02FastEthernet13FastEthernet24FastEthernet35AUX6Console(1)用配置線將PC機(jī)的COM端口與配線架6接口相連。(2)在PC機(jī)上使用超級終端對路由器進(jìn)行連接,超級終端的連接端口選COM1。COM1的屬性為:每秒位數(shù)9600,數(shù)據(jù)位8,奇偶校驗(yàn)無,停止位1,數(shù)據(jù)流控制硬件。3、連接設(shè)備。按拓?fù)鋱D所示,用直通或交叉雙絞線將PC機(jī)跟路由器各端口連接。路由器之間,用交叉線連接。并設(shè)置好每臺PC機(jī)的IP地址,網(wǎng)關(guān)。4、配置路由器接口IP(1)在路由器RouterA上的操作:Ra#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Ra(config)#hostRARA(config)#intfa0RA(config-if)#ipadd192.168.1.1255.255.255.0RA(config-if)#noshutRA(config-if)#intfa1RA(config-if)#ipadd192.168.2.1255.255.255.0RA(config-if)#noshutRA(config-if)#intfa2RA(config-if)#ipadd192.168.3.1255.255.255.0RA(config-if)#noshut至此,RouterA的接口IP配置完成。(2)在路由器RouterB上的操作:RB#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RB(config)#intfa0RB(config-if)#ipadd192.168.5.1255.255.255.0RB(config-if)#noshutRB(config-if)#intfa1RB(config-if)#ipadd192.168.4.1255.255.255.0RB(config-if)#noshutRB(config-if)#intfa2RB(config-if)#ipadd192.168.3.2255.255.255.0RB(config-if)#noshut至此,RouterB的接口IP配置完成
5、配置靜態(tài)路由(1)先查看運(yùn)行配置文件Ra#showrunBuildingconfiguration...Currentconfiguration:!version6.14(2)!hostname"Ra"!!!!ipsubnet-zeronoiprouting //路由器的路由功能沒有開啟!!……<部分輸出省略>……在全局模式下啟用路由功能:RA#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RA(config)#iprouting(2)在RouterA上配置靜態(tài)路由RA#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RA(config)#iproute192.168.4.0255.255.255.0192.168.3.2RA(config)#iproute192.168.5.0255.255.255.0192.168.3.2查看RouterA路由表:RA#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,FastEthernet0/0C192.168.2.0/24isdirectlyconnected,FastEthernet0/1C192.168.3.0/24isdirectlyconnected,FastEthernet1/0S192.168.4.0/24[1/0]via192.168.3.2S192.168.5.0/24[1/0]via192.168.3.2(3)在RouterB上配置靜態(tài)路由RB#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RB(config)#iproute192.168.1.0255.255.255.0192.168.3.1RB(config)#iproute192.168.2.0255.255.255.0192.168.3.1查看RouterB的路由表RB#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetS192.168.1.0/24[1/0]via192.168.3.1S192.168.2.0/24[1/0]via192.168.3.1C192.168.3.0/24isdirectlyconnected,FastEthernet1/0C192.168.4.0/24isdirectlyconnected,FastEthernet0/1C192.168.5.0/24isdirectlyconnected,FastEthernet0/0至此,兩個(gè)路由器的靜態(tài)IP配置完成。(4)在每臺PC機(jī)上ping另外三臺機(jī),可以ping通。6、配置動(dòng)態(tài)RIP路由取消兩個(gè)路由器上的靜態(tài)路由RouterA上的操作:RA(config)#noiproute192.168.4.0255.255.255.0192.168.3.2RA(config)#noiproute192.168.5.0255.255.255.0192.168.3.2RouterB上的操作:RB(config)#noiproute192.168.1.0255.255.255.0192.168.3.2RB(config)#noiproute192.168.2.0255.255.255.0192.168.3.2至此,靜態(tài)路由取消完成。(2)配置RIP路由 RouterA上的配置: RA#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RA(config)#routerrip //進(jìn)入rip路由協(xié)議配置模式RA(config-router)#net192.168.1.0 //分別宣告直連網(wǎng)絡(luò)RA(config-router)#net192.168.2.0RA(config-router)#net192.168.3.0 RouterB上的配置: RB#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RB(config)#routerripRB(config-router)#net192.168.3.0RB(config-router)#net192.168.4.0RB(config-router)#net192.168.5.0至此,RIP動(dòng)態(tài)路由配置完成。(3)別在路由器上查看路由表RouterA:RA#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,FastEthernet0C192.168.2.0/24isdirectlyconnected,FastEthernet1C192.168.3.0/24isdirectlyconnected,FastEthernet2R192.168.4.0/24[120/1]via192.168.3.2,00:00:13,FastEthernet2R192.168.5.0/24[120/1]via192.168.3.2,00:00:13,FastEthernet2RouterB:RB#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetR192.168.1.0/24[120/1]via192.168.3.1,00:00:19,FastEthernet2R192.168.2.0/24[120/1]via192.168.3.1,00:00:19,FastEthernet2C192.168.3.0/24isdirectlyconnected,FastEthernet2C192.168.4.0/24isdirectlyconnected,FastEthernet1C192.168.5.0/24isdirectlyconnected,FastEthernet0路由器通過RIP相互學(xué)到了相連路由器的路由。分別在任意一臺PC機(jī)上ping另外三臺PC機(jī),可以ping通。7、OSPF動(dòng)態(tài)路由配置(1)取消RIP路由的配置。 RA(config)#norouterrip//該命令用來取消動(dòng)態(tài)RIP路由(2)分別在路由器上配置OSPF動(dòng)態(tài)路由RouterA配置:RA#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RA(config)#routerospf100 RA(config-router)#net192.168.1.00.0.0.255area200RA(config-router)#net192.168.2.00.0.0.255area200RA(config-router)#net192.168.3.00.0.0.255area200 //100為OSPF進(jìn)程號,僅具有本地意義。//宣告本地直連網(wǎng)絡(luò)的命令格式為:network子網(wǎng)地址反掩碼area區(qū)域號 RouterB配置:RB#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.RB(config)#routerospf100RB(config-router)#net192.168.3.00.0.0.255area200RB(config-router)#net192.168.4.00.0.0.255area200RB(config-router)#net192.168.5.00.0.0.255area200(3)查看各自的路由表:RouterA:RA#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,FastEthernet0C192.168.2.0/24isdirectlyconnected,FastEthernet1C192.168.3.0/24isdirectlyconnected,FastEthernet2O192.168.4.0/24[110/2]
溫馨提示
- 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 北師大版找規(guī)律提高邏輯思維
- 蘇教版三年級下冊數(shù)學(xué)教案教學(xué)感悟
- 圓的圖形與方程測試練習(xí)
- 人教版初中語文學(xué)習(xí)指南
- 蘇教版四年級下冊英語核心詞結(jié)
- 比的應(yīng)用教案北師大版教學(xué)評價(jià)方法
- 四年級蘇教版數(shù)學(xué)教學(xué)方案
- 剖析蘇教版小數(shù)乘整數(shù)突破數(shù)學(xué)學(xué)習(xí)的瓶頸
- 遺傳系譜圖的人教版解讀
- 運(yùn)動(dòng)快慢規(guī)律的發(fā)現(xiàn)
- 物理化學(xué)實(shí)驗(yàn)教材電子
- 護(hù)坦專項(xiàng)施工方案
- 承接查驗(yàn)協(xié)議書
- 沖壓件常用公式及數(shù)據(jù)表
- 中國簽證邀請函模板
- 警惕‘委托代辦郵政業(yè)務(wù)’之規(guī)定被曲解與濫用
- 完整版高低壓開關(guān)柜投標(biāo)文件技術(shù)標(biāo)
- 部編語文五年級上冊習(xí)作:縮寫故事ppt課件
- 學(xué)校五好關(guān)工委方案
- 吊籃計(jì)算書(精編版)
- 基于S7200PLC的全自動(dòng)洗衣機(jī)控制系統(tǒng)設(shè)計(jì)畢業(yè)設(shè)計(jì)(論文)
評論
0/150
提交評論