




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、;洛陽理工學(xué)院實驗報告系別計算機系班級B120503學(xué)號B12050316姓名段浴課程名稱計算機網(wǎng)絡(luò)實驗日期2014/11/8實驗名稱子網(wǎng)劃分路由配置成績實驗?zāi)康模?、 了解如何配置路由器信息2、 了解如何劃分子網(wǎng)實驗條件:電腦一臺,Cisco packet tracer模擬軟件實驗原理:在本實驗中,為您指定了一個網(wǎng)絡(luò)地址 192.168.9.0/24,您將對它劃分子網(wǎng),并為拓?fù)鋱D中顯示的網(wǎng)絡(luò)分配 IP 地址。路由器全部使用2621XM,交換機全部使用2960。該網(wǎng)絡(luò)的編址需求如下: BRANCH1 的 LAN 1 子網(wǎng)需要 10 個主機 IP 地址。 BRANCH1 的 LAN 2 子網(wǎng)需要
2、 10 個主機 IP 地址。 BRANCH2 的 LAN 1 子網(wǎng)需要 10 個主機 IP 地址。 BRANCH2 的 LAN 2 子網(wǎng)需要 10 個主機 IP 地址。 HQ 的 LAN 子網(wǎng)需要 20 個主機 IP 地址。 從 HQ 到 BRANCH1 的鏈路的兩端各需要一個 IP 地址。 從 HQ 到 BRANCH2 的鏈路的兩端各需要一個 IP 地址。(注意:請記住,網(wǎng)絡(luò)設(shè)備的接口也是主機 IP 地址,已包括在上面的編址需求中。)Fa0/0Fa0/1LAN1LAN2LAN2LAN1實驗內(nèi)容:1. 設(shè)計子網(wǎng)子網(wǎng)編號說明子網(wǎng)地址子網(wǎng)掩碼第一個可用地址最后一個可用地址1HQ 的 LAN192.
3、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.9.8
4、1192.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)的第一個可用地址)設(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不適用BRA
5、NCH1Fa0/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.240192.1
6、68.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、 配置每個路由器的接口IP:5 配置每臺計算機的IP地址6. 設(shè)置路由器中的路由表?!綛RANCH1的配置】下面是配置BRANCH1的IP地址的過程,其它兩個路由器的配置自行完成(1)關(guān)閉路由器電源(2)安裝模塊WIT-2T。(3)進入CLI(4)進行以下操作(藍色
7、文字是需要輸入的命令,紅色文字是說明)Continue with configuration dialog? yes/no: nPress RETURN to get started!進入控制臺模式Routeren進入全局配置模式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.168.9.3
8、3 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.240BRANCH1(conf
9、ig-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è)備,所以需要配置時鐘頻率。BRANCH1(config-if)#int s0/0BRANCH1(config-if)#ip addr 192.168.9.129 255.255.255
10、.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返回到控制臺模式。Exit命令返回到上一層,使用Ctrl+Z可以直接返回控制臺。BRANCH1(config-if)#exitBRANCH1(config)#exit%SYS-5-CONFIG
11、_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 administratively do
12、wn down按此方法配置其它兩個路由器,此時可以測試各個子網(wǎng)和網(wǎng)關(guān)的連通情況。(5)添加路由表。這里沒有使用路由總結(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.255.255.2
13、24 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返回控制臺BRANCH1(config)#Z%SYS-5-CONFIG_I: Configured from console by console查看路由表BRANCH1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP
14、, 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 * - candidate def
15、ault, 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 connected
16、, 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)進入CLI(4)進行以下操作(紅色文字是說明)Continue with configuration dialog? yes/no: nPress RETURN to get started!RouterenRouter#conf tEnt
17、er 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 FastEthernet0
18、/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)#int s0/1HQ
19、(config-if)#ip addr 192.168.9.134 255.255.255.252HQ(config-if)#no shutdown配置DCE設(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
20、)#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 192.168.9.134
21、 YES manual up up添加路由表。這里使用了路由總結(jié)(請自行計算是如何總結(jié)的?。酚杀韽?條減少到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.224 192.168.9
22、.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 - OSPF external
23、 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 subnets, 3 mask
24、sC 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)進入CLI(4)進行以下操作(紅色文字是說明
25、)Continue with configuration dialog? yes/no: nPress RETURN to get started!RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname BRANCH2配置每個端口的IP地址BRANCH2(config)#int f0/0BRANCH2(config-if)#ip addr 192.168.9.65 255.255.255.240BRANCH2(config-if)#no sh
26、utdown%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: Interface FastEthe
27、rnet0/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 upBRANCH2(config-if)
28、#%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.168.9.81 YES ma
29、nual 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. 本站所有資源如無特殊說明,都需要本地電腦安裝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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO 7519:2025 EN Technical product documentation (TPD) - Construction documentation - General principles of presentation for general arrangement and assembly drawings
- 聘用項目總工合同
- 個體診所聘用合同
- 預(yù)定租房合同協(xié)議
- 攝像攝影服務(wù)合同
- 工地門衛(wèi)勞動合同
- 勞務(wù)派遣人員勞動合同書
- 13足球運球繞桿 教學(xué)設(shè)計 -九年級體育與健康
- 天津音樂學(xué)院《寫作與溝通》2023-2024學(xué)年第二學(xué)期期末試卷
- 江蘇科技大學(xué)《大數(shù)據(jù)處理框架》2023-2024學(xué)年第二學(xué)期期末試卷
- 2023-2024年人教版八年級上冊數(shù)學(xué)期末模擬試卷(含答案)
- 數(shù)據(jù)采集管理制度范文
- 幼兒園小班開學(xué)家長會課件
- 中藥抗骨質(zhì)疏松作用
- 中建綜合支吊架施工方案
- 建筑施工規(guī)范大全
- 幼兒園開學(xué)家長會PPT模板(含完整內(nèi)容)
- 表冷器更換施工方案
- 瀝青集料篩分反算計算表格(自動計算)
- 哲學(xué)與人生(中職)PPT完整全套教學(xué)課件
- 惡性高熱課件
評論
0/150
提交評論