子網(wǎng)劃分路由配置_第1頁(yè)
子網(wǎng)劃分路由配置_第2頁(yè)
子網(wǎng)劃分路由配置_第3頁(yè)
子網(wǎng)劃分路由配置_第4頁(yè)
子網(wǎng)劃分路由配置_第5頁(yè)
已閱讀5頁(yè),還剩5頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、洛陽(yáng)理工學(xué)院實(shí)驗(yàn)報(bào)告系別計(jì)算機(jī)系班級(jí)B120503學(xué)號(hào)B12050316姓名段浴課程名稱(chēng)計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn)日期2014/11/8實(shí)驗(yàn)名稱(chēng)子網(wǎng)劃分路由配置成績(jī)實(shí)驗(yàn)?zāi)康模?、 了解如何配置路由器信息2、 了解如何劃分子網(wǎng)實(shí)驗(yàn)條件:電腦一臺(tái),Cisco packet tracer模擬軟件實(shí)驗(yàn)原理:在本實(shí)驗(yàn)中,為您指定了一個(gè)網(wǎng)絡(luò)地址 ,您將對(duì)它劃分子網(wǎng),并為拓?fù)鋱D中顯示的網(wǎng)絡(luò)分配 IP 地址。路由器全部使用2621XM,交換機(jī)全部使用2960。該網(wǎng)絡(luò)的編址需求如下: BRANCH1 的 LAN 1 子網(wǎng)需要 10 個(gè)主機(jī) IP 地址。 BRANCH1 的 LAN 2 子網(wǎng)需要 10 個(gè)主機(jī) IP 地址。

2、BRANCH2 的 LAN 1 子網(wǎng)需要 10 個(gè)主機(jī) IP 地址。 BRANCH2 的 LAN 2 子網(wǎng)需要 10 個(gè)主機(jī) IP 地址。 HQ 的 LAN 子網(wǎng)需要 20 個(gè)主機(jī) IP 地址。 從 HQ 到 BRANCH1 的鏈路的兩端各需要一個(gè) IP 地址。 從 HQ 到 BRANCH2 的鏈路的兩端各需要一個(gè) IP 地址。(注意:請(qǐng)記住,網(wǎng)絡(luò)設(shè)備的接口也是主機(jī) IP 地址,已包括在上面的編址需求中。)Fa0/0Fa0/1LAN1LAN2LAN2LAN1實(shí)驗(yàn)內(nèi)容:1. 設(shè)計(jì)子網(wǎng)子網(wǎng)編號(hào)說(shuō)明子網(wǎng)地址子網(wǎng)掩碼第一個(gè)可用地址最后一個(gè)可用地址1HQ 的 LAN2BRANCH1 的 LAN 1192

3、.168.9.333BRANCH1 的 LAN 2192.168.9.494BRANCH2 的 LAN 1192.168.9.655BRANCH2 的 LAN 2192.168.9.816HQ 到 BRANCH15.252192.168.9.1297HQ 到 BRANCH2192.168.9.1332. 分配IP地址(網(wǎng)關(guān)地址使用子網(wǎng)的第一個(gè)可用地址)設(shè)備接口IP地址子網(wǎng)掩碼默認(rèn)網(wǎng)關(guān)HQFa0/1不適用S0/0不適用S0/1192.16不適用BRANCH1Fa0/0不適用Fa0/1不適用S0/0不適用BRANCH2Fa0/0不適用Fa0/1不適用S0/119不適用PC1網(wǎng)卡PC2網(wǎng)卡PC3網(wǎng)卡

4、PC4網(wǎng)卡PC5網(wǎng)卡255.23. 連接網(wǎng)絡(luò)(路由器之間使用DCE電纜連接到串行口3、 配置每個(gè)路由器的接口IP:5 配置每臺(tái)計(jì)算機(jī)的IP地址6. 設(shè)置路由器中的路由表。【BRANCH1的配置】下面是配置BRANCH1的IP地址的過(guò)程,其它兩個(gè)路由器的配置自行完成(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)進(jìn)入CLI(4)進(jìn)行以下操作(藍(lán)色文字是需要輸入的命令,紅色文字是說(shuō)明)Continue with configuration dialog? yes/no: nPress RETURN to get started!進(jìn)入控制臺(tái)模式Router>en進(jìn)入全局配置模式Route

5、r#conf tEnter configuration commands, one per line. End with CNTL/Z.修改路由器名稱(chēng)Router(config)#hostname BRANCH1配置Fa0/0的IP地址BRANCH1(config)#int f0/0BRANCH1(config-if)#BRANCH1(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interfac

6、e FastEthernet0/0, changed state to up配置Fa0/1的IP地址BRANCH1(config-if)#int f0/1BRANCH1(config-if)#BRANCH1(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up配置S0/0的IP地址。因?yàn)锽RANCH1是BRANC

7、H1和HQ之間串行通信的DCE設(shè)備,所以需要配置時(shí)鐘頻率。BRANCH1(config-if)#int s0/0BRANCH1(config-if)#BRANCH1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0, changed state to upBRANCH1(config-if)#clock rate 64000%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up返回到控制臺(tái)模式。Exit命令返回到上一層,使用C

8、trl+Z可以直接返回控制臺(tái)。BRANCH1(config-if)#exitBRANCH1(config)#exit%SYS-5-CONFIG_I: Configured from console by console查看IP地址配置情況。BRANCH1#show ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.9.33 YES manual up upFastEthernet0/1 192.168.9.49 YES manual up upSerial0/0 192.168.9.

9、129 YES manual up upSerial0/1 unassigned YES manual administratively down down按此方法配置其它兩個(gè)路由器,此時(shí)可以測(cè)試各個(gè)子網(wǎng)和網(wǎng)關(guān)的連通情況。(5)添加路由表。這里沒(méi)有使用路由總結(jié)。BRANCH1#conf tEnter configuration commands, one per line. End with CNTL/Z.BRANCH1(config)#ip route 192.168.9.32 255.255.255.240 f0/0BRANCH1(config)#ip route 192.168.9.48

10、 255.255.255.240 f0/1BRANCH1(config)#24BRANCH1(config)#BRANCH1(config)#40返回控制臺(tái)BRANCH1(config)#Z%SYS-5-CONFIG_I: Configured from console by console查看路由表BRANCH1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF int

11、er area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

12、Gateway of last resort is not set 192.168.9.0/24 is variably subnetted, 6 subnets, 3 masksC 192.168.9.32/28 is directly connected, FastEthernet0/0C 192.168.9.48/28 is directly connected, FastEthernet0/1C 192.168.9.128/30 is directly connected, Serial0/0【HQ的配置】(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)進(jìn)入CLI(4)進(jìn)行以下操

13、作(紅色文字是說(shuō)明)Continue with configuration dialog? yes/no: nPress RETURN to get started!Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname HQHQ(config)#int f0/1HQ(confHQ(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed sta

14、te to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upHQ(config-if)#int s0/0HQ(config-if)#no shutdown配置IP地址%LINK-5-CHANGED: Interface Serial0/0, changed state to upHQ(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upHQ(con

15、fig-if)#int s0/1HQ(config-if)#no shutdown配置DCE設(shè)備的時(shí)鐘頻率。HQ是HQ和BRANCH2之間的DCE設(shè)備。%LINK-5-CHANGED: Interface Serial0/1, changed state to upHQ(config-if)#clock rate 64000HQ(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to upHQ(config-if)#Z%SYS-5-CONFIG_I: Configured fr

16、om console by console查看IP地址配置情況HQ#show ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 unassigned YES manual administratively down downFastEthernet0/1 192.168.9.1 YES manual up upSerial0/0 192.168.9.130 YES manual up upSerial0/1 192.168.9.134 YES manual up up添加路由表。這里使用了路由總結(jié)(

17、請(qǐng)自行計(jì)算是如何總結(jié)的?。?,路由表從5條減少到3條。HQ#conf tEnter configuration commands, one per line. End with CNTL/Z.HQ(config)#ip route 192.168.9.0 255.255.255.224 f0/1HQ(config)#ip route 192.168.9.64 255.255.255.224HQ(config)#Z%SYS-5-CONFIG_I: Configured from console by consoleHQ#show ip routeCodes: C - connected, S -

18、static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS int

19、er area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not set 192.168.9.0/24 is variably subnetted, 5 subnets, 3 masksC 192.168.9.0/27 is directly connected, FastEthernet0/17C 192.168.9.128/30 is directly connected, Serial0/0C

20、 192.168.9.132/30 is directly connected, Serial0/1HQ#【BRANCH2的配置】(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)進(jìn)入CLI(4)進(jìn)行以下操作(紅色文字是說(shuō)明)Continue with configuration dialog? yes/no: nPress RETURN to get started!Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname BRA

21、NCH2配置每個(gè)端口的IP地址BRANCH2(config)#int f0/0BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upBRANCH2(config-if)#int f0/1BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface

22、FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upBRANCH2(config-if)#int s0/1BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/1, changed state to upBRANCH2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface

23、 Serial0/1, changed state to upBRANCH2(config-if)#Z%SYS-5-CONFIG_I: Configured from console by consoleBRANCH2#show ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.9.65 YES manual up upFastEthernet0/1 192.168.9.81 YES manual up upSerial0/0 unassigned YES manual admini

24、stratively down downSerial0/1 192.168.9.133 YES manual up up添加路由表BRANCH2#conf tEnter configuration commands, one per line. End with CNTL/Z.BRANCH2(config)#ip route 192.168.9.64 255.255.255.240 f0/0BRANCH2(config)#ip route 192.168.9.80 255.255.255.240 f0/1BRANCH2(config)#Z%SYS-5-CONFIG_I: Configured from console by consoleBRANCH2#show ip routeCodes: C - connected, S -

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論