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

下載本文檔

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

文檔簡介

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

2、CH2的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 至y BRANCH1的鏈路的兩端各需要一個(gè)IP地址。?從 HQ 至y BRANCH2的鏈路的兩端各需要一個(gè)IP地址。已包括在上面的編址需求中。)(注意:請記住,網(wǎng)絡(luò)設(shè)備的接口也是主機(jī)IP地址,實(shí)驗(yàn)內(nèi)容:1.設(shè)計(jì)子網(wǎng)子網(wǎng) 編號說明子網(wǎng)地址子網(wǎng)掩碼第一個(gè)可用地最后一個(gè)可用址地址1HQ的192.168.9.0255.255.255.22192.168.9.1192.168.9.30LAN42BRANC192.168.9.32255.255.2

3、55.24192.168.9.33192.168.9.46H1的0LAN 13BRANC192.168.9.48255.255.255.24192.168.9.49192.168.9.62H1的0LAN 24BRANC192.168.9.64255.255.255.24192.168.9.65192.168.9.78H2的0LAN 15BRANC192.168.9.80255.255.255.24192.168.9.81192.168.9.12H2的06LAN 26HQ 到192.168.9.12255.255.255.25192.168.9.12192.168.9.13BRANC8290H1

4、7HQ 到192.168.9.13255.255.255.25192.168.9.13192.168.9.13BRANC2234H22.分配IP地址(網(wǎng)關(guān)地址使用子網(wǎng)的第一個(gè)可用地址)設(shè)備接口IP地址子網(wǎng)掩碼默認(rèn)網(wǎng)關(guān)HQFaO/1192.168.9.1255.255.255.224不適用SO/0192.168.9.13O255.255.255.252不適用SO/1192.168.9.134255.255.255.252不適用BRANCH1FaO/0192.168.9.33255.255.255.240不適用FaO/1192.168.9.49255.255.255.240不適用SO/0192.1

5、68.9.129255.255.255.252不適用BRANCH2FaO/O192.168.9.65255.255.255.240不適用FaO/1192.168.9.81255.255.255.240不適用SO/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.240192.168.9.49PC3網(wǎng)卡192.168.9.34255.255.255.240192.168.9.33PC4網(wǎng)卡192.168.9.82255.255.255.240

6、192.168.9.81PC5網(wǎng)卡192.168.9.66255.255.255.240192.168.9.653.連接網(wǎng)絡(luò)(路由器之間使用DCE電纜連接到串行口配置每個(gè)路由器的接口IP :Physical ConfigCUGLOBALsettingsFastEthornGtO/OAlgorithm bettngROUTINGStaticR.1PINTERFACEFastElherretC/0stEtherretC/l3eralO/DSerialO/lPrt StatusSandwid th10 Mbps100 MbpsS On0 AutoDuplexFull DuplexHalf Duple

7、x0 AutoMAC AddressO0EO.BQDC.D3O1IP Address192.168.9.33Subnet Mask25.255.255.310Tx Ring LimitEquivalent IO CommandsKCIJ.-hZ J olEJ X KR匚Tjt-ErtezzEJ-ziHlconlgkicticn coicxama, one per line. ZrU iflG即 CtTTZ/Z. cu t-AT f DOT.亍X甲)TiTLa-rf S.PO Ts a匸 it hem fl : 0/0 乜匚utertICXRvvtpr2亙岡Physical configCLIG

8、LOBALSeriaJO/CAlgcrithfTi ScrbncROUTINGPort Status21 OnhntirPCl&ck Ratahot Set 7INrCRFACtfortEt-icmetC/ODupkxFull JLph:FastEtcmctC/l3c-iflld/DSffiiidlO/lIP AddregsSubnet Mask10飛 Ring LinriitEqui*亡I匕nt IOS CcjirnidriJs5 配置每臺計(jì)算機(jī)的IP地址Fikj hl L EiL 匸 L?!* 丄弓f二丄L krS 4 B jC b B. = Ir h L J =E JJE I .* J

9、Fsutcjc i eenfiF=if : *11P0utr i cojifig-if :苫gtFsHtcf | config: tLhtzrfBC exialO/ JIIPouter (coniiT-if ; tvll口國玄Physical Oonfig DesktopO DHCP StJticIP Address192.168.9.50SubriEt253.255.355.240CKaTauk Cstow/192 詢940OTJS ServerIP ConfiguralionCHro TP ComnuinicntorE MailPPPoE MaierText Cdrtw6.設(shè)置路由器中的路

10、由表?!綛RANCH1的配置】關(guān)閉路由器電源下面是配置BRANCH1的IP地址的過程,其它兩個(gè)路由器的配置自行完成(1)(2)安裝模塊WIT-2T。(3)進(jìn)入CLI進(jìn)行以下操作(藍(lán)色文字是需要輸入的命令,Continue with configuration dialog? yes/no:(4)紅色文字是說明)P ress RETURN to get started!進(jìn)入控制臺模式Routeren進(jìn)入全局配置模式Router# conf tEnter configuration commands, one per line.修改路由器名稱End with CNTL/Z.Router(confi

11、g)# hostname BRANCH1 配置Fa0/0的IP地址BRANCH1(config)# int fO/0BRANCH1(config-if)# ip addr 192.168.9.33 255.255.255.240BRANCH1(config-if)# no shutdown%LI NK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LI NE PROTO-5-U PDOWN: Line p rotocol on Interface FastEthernet0/0, changed state to up配置F

12、a0/1的IP地址BRANCH1(config-if)#int f0/1BRANCH1(config-if)#ip addr 192.168949 255.255.255.240no shutdownBRANCH1(config-if)#%LIN K-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEP ROTO-5-U PDOWN: Line p rotocol on Interface FastEthernet0/1, changed state to up配置S0/0的IP地址。因?yàn)锽RANCH1是BRANCH1和

13、HQ之間串行通信的 DCE設(shè)備,所以需要配置時(shí)鐘頻率。BRANCH1(config-if)#int s0/0BRANCH1(config-if)#no shutdownip addr 192.168.9.129 255.255.255.252BRANCH1(config-if)#%LIN K-5-CHANGED: Interface Serial0/0, changed state to upBRANCH1(config-if)# clock rate 64000 %LI NE PROTO-5-U PDOWN: Line p rotocol on Interface Serial0/0, ch

14、anged state to up返回到控制臺模式。Exit命令返回到上一層,使用Ctrl+Z可以直接返回控制臺。BRANCH1(config-if)# exitBRANCH1(config)# exit%SYS-5-CONFIG_I: Configured from console by console查看IP地址配置情況。InterfaceIP -AddressOK? Method StatusProtocolFastEthernet0/0192.168.9.33YES manual upupFastEthernet0/1192.168.9.49YES manual upupSerial0

15、/0192.168.9.129YES manual upupSerial0/1unassignedYES manual administratively down downBRANCH1# show ip int bri按此方法配置其它兩個(gè)路由器,此時(shí)可以測試各個(gè)子網(wǎng)和網(wǎng)關(guān)的連通情況。(5)添加路由表。這里沒有使用路由總結(jié)。BRANCH1# conf tEnter configuration commands, one per line.End with CNTL/Z.BRANCH1(config)#BRANCH1(config)#ip route 192.168.9.32 255.255.2

16、55.240 f0/0ip route 192.168.9.48 255.255.255.240 f0/1BRANCH1(config)#ip route 192.16890 255.255.255.224 192.168.9.130BRANCH1(config)#BRANCH1(config)#ip route 192.168.9.64 255.255.255.240 192.168.9.130ip route 192.168.9.80 255.255.255.240 192.168.9.130返回控制臺BRANCH1(config)#AZ%SYS-5-CONFIG_l: Configure

17、d from console by console查看路由表BRANCH1# show ip routeCodes: C - connected, S - static, I - IGRP , R - RIP, M - mobile, B - BGPD - EIGRP , EX - EIGRP external, O - OSPF, lA - OSPF inter areaN1 - OSPF NSSA external ty pe 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external typ

18、e 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - p er-user static route, o - ODR P - p eriodic downloaded static routeGateway of last resort is not set192.168.9.0/24 is variably subnetted, 6 subnets, 3 masks192.168.9.0/28 1/0 via 192.168

19、.9.130 192.168.9.32/28 is directly connected, FastEthernet0/0 192.168.9.48/28 is directly connected, FastEthernet0/1192.168.9.64/27 1/0 via 192.168.9.130 192.168.9.64/28 1/0 via 192.168.9.130 192.168.9.128/30 is directly connected, Serial0/0【HQ的配置】(1)關(guān)閉路由器電源(2)安裝模塊 WIT-2T。(3)進(jìn)入CLI(4)進(jìn)行以下操作(紅色文字是說明)C

20、ontinue with configuration dialog? yes/no: n P ress RETURN to get started!RouterenEnd with CNTL/Z.Router#conf tEnter configuration commands, one per line.Router(config)#hostname HQHQ(config)#int f0/1HQ(config-if)#ip addr 192.168.9.1 255.255.255.224HQ(config-if)#no shutdown %LIN K-5-CHANGED: Interfac

21、e FastEthernetO/1, changed state to up %LINEP ROTO-5-U PDOWN: Line p rotocol on Interface FastEthernet0/1, changed state to up HQ(config-if)#int s0/0HQ(config-if)#ip addr 192.1689130 255.255.255.252HQ(config-if)#no shutdown配置IP地址%LIN K-5-CHANGED: Interface Serial0/0, changed state to upHQ(config-if)

22、# %LI NE PROTO-5-U PDOWN: Line p rotocol on Interface Serial0/0, changed state to upHQ(config-if)#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è)備。%LI NK-5-CHANGED: Interface Serial0/1, changed state to upHQ(config-if)#clock rate

23、64000HQ(config-if)# %LI NE PROTO-5-U PDOWN: Line p rotocol on Interface Serial0/1, changed state to up HQ(config-if)#AZ %SYS-5-CONFIG_l: Configured from console by console查看IP地址配置情況HQ#show ip int briInterfaceIP -AddressOK? Method StatusPrFastEthernet0/0unassignedYES manual administratively down down

24、FastEthernet0/1192.168.9.1YES manual upupSerial0/0192.168.9.130YES manual upupSerial0/1192.168.9.134YES manual upup),路由表從5條減少到3條。添加路由表。這里使用了路由總結(jié)(請自行計(jì)算是如何總結(jié)的!HQ#conf tEnd with CNTL/Z.Enter configuration commands, one per line.HQ(config)#ip route 192.168.9.0 255.255.255.224 f0/1HQ(config)#ip route 192

25、.168.9.32 255.255.255.224 192.168.9.129HQ(config)#i p route 192.168.9.64 255.255.255.224 192.168.9.133 HQ(config)#AZ %SYS-5-CONFIG_l: Configured from console by consoleHQ#show ip routeCodes: C - connected, S - static, I - IGRP , R - RIP, M - mobile, B - BGPD - EIGRP , EX - EIGRP external, O - OSPF,

26、IA - OSPF inter areaN1 - OSPF NSSA external ty pe 1, N2 - OSPF NSSA external type 2E1 - OSPF external ty pe 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 - p er-user static route, o - ODR P - p eriodic downloade

27、d static routeGateway of last resort is not set192.168.9.0/24 is variably subnetted, 5 subnets, 3 masks192.168.9.0/27 is directly connected, FastEthernet0/1 192.168932/27 1/0 via 192.168.9.129 192.168.9.64/27 1/0 via 192.168.9.133 192.168.9.128/30 is directly connected, Serial0/0 192.168.9.132/30 is

28、 directly connected, Serial0/1HQ#【BRANCH2的配置】(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)(4)進(jìn)入CLI進(jìn)行以下操作(紅色文字是說明)Continue with configuration dialog? yes/no: nP ress RETURN to get started!RouterenEnd with CNTL/Z.Router#conf tEnter configuration commands, one per line.Router(config)#hostname BRANCH2配置每個(gè)端口的IP地址BRANCH2(c

29、onfig)#int fO/0BRANCH2(config-if)#ip addr 192.168.9.65 255.255.255.240BRANCH2(config-if)#no shutdown %LI NK-5-CHANGED: Interface FastEthernetO/0, changed state to up %LI NE PR0T0-5-U PDOWN: Line p rotocol on Interface FastEthernet0/0, changed state to upBRANCH2(config-if)#int f0/1BRANCH2(config-if)#

30、ip addr 192.168981 255.255.255.240BRANCH2(config-if)#no shutdown%LIN K-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEP ROTO-5-U PDOWN: Line p rotocol on Interface FastEthernet0/1, changed state to upBRANCH2(config-if)#int s0/1BRANCH2(config-if)#ip addr 192.1689133 255.255.255.252BRA

31、NCH2(config-if)#no shutdown %LI NK-5-CHANGED: Interface Serial0/1, changed state to up BRANCH2(config-if)# %LI NE PROTO-5-U PDOWN: Line p rotocol on Interface Serial0/1, changed state to upBRANCH2(config-if)#AZ%SYS-5-CONFIG_I: Configured from console by consoleBRANCH2#show ip int briInterfaceIP -Add

32、ressOK? Method StatusProtocolFastEthernet0/0192.168.9.65YES manual upupFastEthernet0/1192.168.9.81YES manual upupSerial0/0Serial0/1unassigned192.168.9.133YES manual administratively down downYES manual upup添加路由表End with CNTL/Z.BRANCH2#conf tEnter configuration commands, one per line.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 192.168.9.134BRANCH2(config)#AZ

溫馨提示

  • 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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論