資源描述:
《4.1配置靜態(tài)路由實(shí)現(xiàn)區(qū)域網(wǎng)連通》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、案例4.1靜態(tài)路由實(shí)現(xiàn)網(wǎng)絡(luò)互連【案例描述】中北大學(xué)網(wǎng)絡(luò)分散兩個(gè)小區(qū),拓?fù)鋱D如下圖所示。使用兩臺(tái)路由器分別表示分散校園網(wǎng)絡(luò)中兩個(gè)不同的園區(qū)區(qū)域:左邊路由器連接的是西校區(qū),右邊路由器連接的是東校區(qū)。其中,園區(qū)網(wǎng)絡(luò)的地址規(guī)劃如下表所示?,F(xiàn)使用網(wǎng)絡(luò)線路直接連接起來(lái),希望通過靜態(tài)路由技術(shù)實(shí)現(xiàn)分散的校園網(wǎng)絡(luò)系統(tǒng)互連互通?!窘虒W(xué)目標(biāo)】學(xué)習(xí)和掌握配置靜態(tài)路由的方法,理解其應(yīng)用場(chǎng)合?!臼褂迷O(shè)備】設(shè)備名稱設(shè)備及端口的配置地址Router1F0172.16.1.254/24F1172.16.2.1/24Router2F1172.16.2.2/24F0172.16.3.254/24PC1172.16.1
2、.1/24PC2172.16.3.1/24【案例實(shí)施】步驟1在路由器Router上配置接口的ip地址Router1(config)#interfacefastEthernet0Router1(config-if)#ipaddress172.16.1.254255.255.255.0Router1(config-if)#noshutdownRouter1(config-if)#exitRouter1(config)#interfaceF1Router1(config-if)#ipaddress172.16.2.1255.255.255.0Router1(config-if)#nos
3、hutdown驗(yàn)證測(cè)試:驗(yàn)證路由器接口的配置Router1#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0172.16.1.254YESmanualupupFastEthernet1172.16.2.1YESmanualupupFastEthernet2unassignedYESunsetadministrativelydowndownFastEthernet3unassignedYESunsetadministrativelydowndownSerial0unassigned
4、YESunsetadministrativelydowndownSerial1unassignedYESunsetadministrativelydowndown可通過如下命令查看接口的狀態(tài)Router1#showinterfacesFastEthernet1步驟2在路由器Router上配置接口的ip地址Router2(config)#interfacefastEthernet0Router2(config-if)#ipaddress172.16.3.254255.255.255.0Router2(config-if)#noshutdownRouter2(config)#inte
5、rfacefastEthernet1Router2(config-if)#ipaddress172.16.2.2255.255.255.0Router2(config-if)#noshutdown驗(yàn)證測(cè)試:驗(yàn)證接口的配置Router2#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0172.16.3.254YESmanualupupFastEthernet1172.16.2.2YESmanualupupFastEthernet2unassignedYESunsetadminist
6、rativelydowndownFastEthernet3unassignedYESunsetadministrativelydowndownSerial0unassignedYESunsetadministrativelydowndownSerial1unassignedYESunsetadministrativelydowndown步驟3確定路由器的直連網(wǎng)段和非直連網(wǎng)段。步驟4.1在路由器Router1上配置靜態(tài)路由.Router1(config)#iproute172.16.3.0255.255.255.0172.16.2.2或Router1(config)#iproute
7、172.16.3.0255.255.255.0FastEthernet1驗(yàn)證測(cè)試:驗(yàn)證Router1上的靜態(tài)路由的配置Router1#showiprouteCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2Gatewayoflastresortisnotset172.16.0.0/24issubnetted,3subnetsC172.16.