子網(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ō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、精選文檔洛陽(yáng)理工學(xué)院試驗(yàn)報(bào)告系別計(jì)算機(jī)系班級(jí)B120503學(xué)號(hào)B12050316姓名段浴課程名稱計(jì)算機(jī)網(wǎng)絡(luò)試驗(yàn)日期2014/11/8試驗(yàn)名稱子網(wǎng)劃分路由配置成果試驗(yàn)?zāi)康模?、 了解如何配置路由器信息2、 了解如何劃分子網(wǎng)試驗(yàn)條件:電腦一臺(tái),Cisco packet tracer模擬軟件試驗(yàn)原理:在本試驗(yàn)中,為您指定了一個(gè)網(wǎng)絡(luò)地址 192.168.9.0/24,您將對(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 子

2、網(wǎng)需要 10 個(gè)主機(jī) IP 地址。 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試驗(yàn)內(nèi)容:1. 設(shè)計(jì)子網(wǎng)子網(wǎng)編號(hào)說(shuō)明子網(wǎng)地址子網(wǎng)掩碼第一個(gè)可用地址最終一個(gè)可用地址1HQ 的 LAN1

3、92.168.9.0255.255.255.224192.168.9.1192.168.9.302BRANCH1 的 LAN 1192.168.9.32255.255.255.240192.168.9.33192.168.9.463BRANCH1 的 LAN 2192.168.9.48255.255.255.240192.168.9.49192.168.9.624BRANCH2 的 LAN 1192.168.9.64255.255.255.240192.168.9.65192.168.9.785BRANCH2 的 LAN 2192.168.9.80255.255.255.240192.168.

4、9.81192.168.9.1266HQ 到 BRANCH1192.168.9.128255.255.255.252192.168.9.129192.168.9.1307HQ 到 BRANCH2192.168.9.132255.255.255.252192.168.9.133192.168.9.1342. 安排IP地址(網(wǎng)關(guān)地址使用子網(wǎng)的第一個(gè)可用地址)設(shè)備接口IP地址子網(wǎng)掩碼默認(rèn)網(wǎng)關(guān)HQFa0/1192.168.9.1255.255.255.224不適用S0/0192.168.9.130255.255.255.252不適用S0/1192.168.9.134255.255.255.252不適用

5、BRANCH1Fa0/0192.168.9.33255.255.255.240不適用Fa0/1192.168.9.49255.255.255.240不適用S0/0192.168.9.129255.255.255.252不適用BRANCH2Fa0/0192.168.9.65255.255.255.240不適用Fa0/1192.168.9.81255.255.255.240不適用S0/1192.168.9.133255.255.255.252不適用PC1網(wǎng)卡192.168.9.2255.255.255.224192.168.9.1PC2網(wǎng)卡192.168.9.50255.255.255.24019

6、2.168.9.49PC3網(wǎng)卡192.168.9.34255.255.255.240192.168.9.33PC4網(wǎng)卡192.168.9.82255.255.255.240192.168.9.81PC5網(wǎng)卡192.168.9.66255.255.255.240192.168.9.653. 連接網(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)行以下操作

7、(藍(lán)色文字是需要輸入的命令,紅色文字是說(shuō)明)Continue with configuration dialog? yes/no: nPress RETURN to get started!進(jìn)入把握臺(tái)模式Router>en進(jìn)入全局配置模式Router#conf tEnter configuration commands, one per line. End with CNTL/Z.修改路由器名稱Router(config)#hostname BRANCH1配置Fa0/0的IP地址BRANCH1(config)#int f0/0BRANCH1(config-if)#ip addr 192.

8、168.9.33 255.255.255.240BRANCH1(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 up配置Fa0/1的IP地址BRANCH1(config-if)#int f0/1BRANCH1(config-if)#ip addr 192.168.9.49 255.255.255.240BRANC

9、H1(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地址。由于BRANCH1是BRANCH1和HQ之間串行通信的DCE設(shè)備,所以需要配置時(shí)鐘頻率。BRANCH1(config-if)#int s0/0BRANCH1(config-if)#ip addr 192.168.9.129 255.

10、255.255.252BRANCH1(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命令返回到上一層,使用Ctrl+Z可以直接返回把握臺(tái)。BRANCH1(config-if)#exitBRANCH1(config)#exit%SYS-5

11、-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.129 YES manual up upSerial0/1 unassigned YES manual administrati

12、vely 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 255.255.255.240 f0/1BRANCH1(config)#ip route 192.168.9.0 255.25

13、5.255.224 192.168.9.130BRANCH1(config)#ip route 192.168.9.64 255.255.255.240 192.168.9.130BRANCH1(config)#ip route 192.168.9.80 255.255.255.240 192.168.9.130返回把握臺(tái)BRANCH1(config)#Z%SYS-5-CONFIG_I: Configured from console by console查看路由表BRANCH1#show ip routeCodes: C - connected, S - static, I - IGRP,

14、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 inter area * - candid

15、ate 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, 6 subnets, 3 masksS 192.168.9.0/28 1/0 via 192.168.9.130C 192.168.9.32/28 is directly connected, FastEthernet0/0C 192.168.9.48/28 is directly co

16、nnected, FastEthernet0/1S 192.168.9.64/27 1/0 via 192.168.9.130S 192.168.9.64/28 1/0 via 192.168.9.130C 192.168.9.128/30 is directly connected, Serial0/0【HQ的配置】(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>enRoute

17、r#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname HQHQ(config)#int f0/1HQ(config-if)#ip addr 192.168.9.1 255.255.255.224HQ(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Fa

18、stEthernet0/1, changed state to upHQ(config-if)#int s0/0HQ(config-if)#ip addr 192.168.9.130 255.255.255.252HQ(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(config-if)

19、#int s0/1HQ(config-if)#ip addr 192.168.9.134 255.255.255.252HQ(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 upH

20、Q(config-if)#Z%SYS-5-CONFIG_I: Configured from 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 19

21、2.168.9.134 YES manual up up添加路由表。這里使用了路由總結(jié)(請(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.32 255.255.255.224 192.168.9.129HQ(config)#ip route 192.168.9.64 255.255.255.22

22、4 192.168.9.133HQ(config)#Z%SYS-5-CONFIG_I: Configured from console by consoleHQ#show ip routeCodes: C - connected, S - 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 - OS

23、PF 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 routeGateway of last resort is not set 192.168.9.0/24 is variably subnetted, 5 subn

24、ets, 3 masksC 192.168.9.0/27 is directly connected, FastEthernet0/1S 192.168.9.32/27 1/0 via 192.168.9.129S 192.168.9.64/27 1/0 via 192.168.9.133C 192.168.9.128/30 is directly connected, Serial0/0C 192.168.9.132/30 is directly connected, Serial0/1HQ#【BRANCH2的配置】(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)進(jìn)入CLI(4)進(jìn)行以

25、下操作(紅色文字是說(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 BRANCH2配置每個(gè)端口的IP地址BRANCH2(config)#int f0/0BRANCH2(config-if)#ip addr 192.168.9.65 255.255.255.240BRANCH2(c

26、onfig-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)#ip addr 192.168.9.81 255.255.255.240BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Int

27、erface 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)#ip addr 192.168.9.133 255.255.255.252BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/1, changed state to upBRA

28、NCH2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface 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.

29、168.9.81 YES manual up upSerial0/0 unassigned YES manual administratively 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)#ip route 192.168.9.0 255.255.255.192 1

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 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ì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論