子网划分路由配置_第1页
子网划分路由配置_第2页
子网划分路由配置_第3页
子网划分路由配置_第4页
子网划分路由配置_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、XX理工学院实验报告系别廿算机系JH级B120503学号B12050316段浴课程名称廿算机网络实验日期2014/11/8实验名称子网划分路由配置实验目的:1、了解如何配置路由器信息2、了解如何划分子网实验条件: 电腑一台,Cisco packet tracer模协软件实验原理:CE本买酸中,力您摘定了 个网ft #192.16&9.0/24,您将对它則分子网,并力折补图中B示的网络分配IP «tt0 路由器全使用2621XM,交複机全那便用2960。垓网络的编址語求如下:BRANCH1的 LAN 1子网需要10个主01IP地址。BRANCH1的 LAN 2子网需要10彳、主

2、时«ttoBRANCH2的 LAN 1子网需要10个主01IP地址。BRANCH2的 LAN 2子网需要10彳、主时«tto优质资料HQ的LAN子网需要20 f主机IP tftttoUHQ 3BRANCH1的隨路的两竭各需要一个IP JtttoUHQ弭BRANCH2的热路的两竭各需要一个IP fttfo(lig:请记住,网络设岛的接口也是1 HI IP ifitt,已包牯在上面的编址需求中C)S0/0/0LAN1FaO/()FaO/OS0/0/1 DCEfaOf1 / so/o/oPC4X"BRANCH2LAN2FaO/1LAN2LAN l实验内容:1.设廿子网子

3、网 编号说明子网地址子网掩码第一个可用地址最后一个可用地址1HQ 的LAN192.168.9.0255.255.255.224192.168.9.1192.168.9.302BRANCH1 的 LAN1192.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 的 LAN1192.168.9.64255.255.255.240192.168.9.65192.168.9.785BRANCH2的 LAN 2

4、192.168.9.80255.255.255.240192.168.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览址(网关堆址使用子网的第一个可用览址)设备接口IP地址子网掩码8U网关HQFaO/1192.168.9.1255.255.255.224不适用S0/0192.168.9.130255.255.255.252不适用S0/1

5、192.168.9.134255.255.255.252不适用BRANCH1FaO/O192.168.9.33255.255.255.240不适用FaO/1192.168.9.49255.255.255.240不适用SO/O192.168.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网卡192.168.9.2255.255.255.224192.168.9.1PC2

6、网卡192.168.9.50255.255.255.240192.168.9.49PC3网卡192.168.9.34255.255.255.240192.168.9.33PC4网卡192.168.9.82255.255.255.240192.168.9.81PC5网卡192.168.9.66255.255.255.240192.168.9.653.连接网络(路由器之间使用DCE电缆连接到串行口3、配置每个路由器的接口 IP:5配置每台廿算机的IPS!址6.按置路由器中的路由表。BRANCH1的配置】下面是£ E BRANCH1的IP地址的过程,其它两个路由器的配賈自行完或 (1 )关

7、团路由器电漂(2) 安装模块WIT-2T。(3) 1 人 CLI(4) iaiTimo( 色文字是需要用人的命令,爼色文字是说明)Continue with configuration dialog? yes/no: nPress RETURN to get started!直人腔iM台復stRouter>eni!人全同配習模罠Router#conf tEnter configuration mands? one per line. End with TL/Z.修改路由器各称Router(config)#hostname BRANCH1K 8 FaO/O 的 IP 地 tfBRANCH1

8、(config)#int f0/0BRANCH1(config-if)#ip addr 192.168.9.33 255.255.255.240BRANCH1(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernetO/O, changed state to 叩%LINEPR0T0-5-UPD0WN: Line protocol on Interface FastEthernetO/O, changed state to upK 冒 Fa0/1 的 IP 地 j|BRANCH1(config-if)#int f0/1BRANCH

9、1(config-if)#ip addr 192.168.9.49 255.255.255.240BRANCH1(config-if)#no shutdow n%LINK-5-CHANGED: Interface FastEthernetO/1, changed state to up%LINEPR0T0-5-UPD0WN: Line protocol on Interface FastEthernetO/1, changed state to upK1S0A)的IP地X。因为BRANCHI是BRANCH1和HQ 2网串打通花的DCEj殳备,所以雷婆配置时鈴賈率。BRANCH1(config-

10、if)#int s0/0BRANCH1(config-if)#ip addr 192.168.9.129 255.255.255.252BRANCH1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0? changed state to upBRANCH1(config-if)#clock rate 64000%LINEPR0T0-5-UPD0WN: Line protocol on Interface SerialO/0, changed state to up0 51 M台模式。Exit命令握回到上_层,便用Ctrl+Z台

11、。BRANCH1(config-if)#exitBRANCH1(config)#exit%SYS-5-CONFIGJ: Configured from console by consoleStBRANCHUshowip int briInterfaceIP-AddressOK? Method StatusProtocolFastEthernetO/O192.168.9.33YES manual upupFastEthernetO/1192.168.9.49YES manual upupSerialO/O192.168.9.129YES manual upupSerialO/1unassigne

12、dYES manual administratively down down按lit方进就罔其它两个路由器,此IH可以甫试各个子网和网关的连通侑况。 (5)淡UD胳由表°这里设有愼用路由隅BRANCH1#conftEnter configuration mands, one per line. End with TL/Z. BRANCH1(config)#ip route 192.168.9.32 255.255.255.240 f0/0 BRANCH1(config)#ip route 192.168.9.48 255.255.255.240 f0/1BRANCH1(config)

13、#ip route 192.168.9.0 255.255.255.224 192.168.9.130 BRANCH1(config)#ip route 192.168.9.64 255.255.255.240 192.168.9.130 BRANCH1(config)#ip route 192.168.9.80 255.255.255.240 192.168.9.130gagu 台BRANCH1(config)#7%SYS-5-C0NFIG_l: Configured from console by console査看路由表BRANCH1#showip routeCodes: C - con

14、nected. S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS? L1 - IS-IS level-1, L2 - IS-IS level-2, ia -

15、IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set192.168.9.0/24 is variably subnetted, 6 subnets. 3 masksS192.168.9.0/28 1/0 via 192.168.9.130C192.168.9.32/28 is directly connected, FastEthernetO/OC192.168.9

16、.48/28 is directly connected, FastEthernetO/1S192.168.9.64/27 1/01 via 192.168.9.130S192.168.9.64/28 1/0 via 192.168.9.130C192.168.9.128/30 is directly connected, SerialO/O【HQ的配置】(1) 关冈路由器电霖(2) 安装模块WIT-2T。(3 )进人CLI(4)进仃从卞操作(纟I色文字是说明)Continue with configuration dialog? yes/no: nPress RETURN to get st

17、arted!Router>enRouter#conf tEnter configuration mands? one per line. End with TL/Z.Router(config)#hostname HQHQ(config)#int fO/1HQ(config-if)#ip addr 192.168.9.1 255.255.255.224HQ(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernetO/t changed state to up%LINEPR0T0-5-UPD0WN: Line protoco

18、l on Interface FastEthernetO/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 shutdownKUPtt%LINK-5-CHANGED: Interface Serial0/0, changed state to upHQ(config-if) #%LINEPR0T0-5-UPD0WN: Line protocol on Interface SerialO/O, changed state t

19、o upHQ(config-if)#int s0/1HQ(config-if)#ip addr 192.168.9.134 255.255.255.252HQ(config-if)#no shutdov/ n配胃DCE设备的IH外腹率。HQ是HQ和BRANCH2 2间的DCE设备。%LINK-5-CHANGED: Interface Serial0/1, changed state to 叩HQ(config-if)#clock rate 64000HQ(config-if)#%LINEPR0T0-5-UPD0WN: Line protocol on Interface SerialO/t c

20、hanged state to upHQ(config-if)#7%SYS-5-C0NFIGJ: Configured from console by console査看IP地it配習怖爲HQ#show ip int briInterfaceIP-AddressOK? Method StatusPreFastEthernetO/OunassignedYES manual administratively down downFastEthernetO/1192.168.9.1YES manual upupSerialO/O192.168.9.130YES manual upupSerialO/1

21、192.168.9.134YES manual upup由表。这甲使用了路由绘结(请自fj计尊是IB何总给的!),路由表从5条M少到3条。HQ#conf tEnter configuration mands, one per line. End with TL/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.

22、168.9.133HQ(config)#7%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, IA - OSPF inter areaN1 - OSPF NSSA external type 1. N2 - OSPF NSSA external type 2 E1 - OSPF exter

23、nal 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 - ODRP - periodic downloaded static routeGateway of last resort is not set192.168.9.0/24 is variably subnetted, 5 subnets, 3 mask

24、sC192.168.9.0/27 is directly connected, FastEthernetO/1S192.168.9.32/27 1/0 via 192.168.9.129S192.168.9.64/27 1/0 via 192.168.9.133C 192.168.9.128/30 is directly connected, SerialO/OC192.168.9.132/30 is directly connected, SerialO/1HQ#BRANCH2的配置】(1) 关团路由器电霖(2) 安装模块WIT-2T。(3 )进人CLI(4)血折从卞操卄(纟I色文字是说明)

25、Continue with configuration dialog? yes/no: nPress RETURN to get started!Router>enRouter#conf tEnter configuration mands? one per line. End with TL/Z.Router(config)#hostname BRANCH2配抽个竭口的ip JUBRANCH2(config)#int f0/0BRANCH2(config-if)#ip addr 192.168.9.65 255.255.255.240BRANCH2(config-if)#no shut

26、down%LINK-5-CHANGED: Interface FastEthernetO/O, changed state to up%LINEPR0T0-5-UPD0WN: Line protocol on Interface FastEthernetO/O, changed state to upBRANCH2(config-if)#intfO/1BRANCH2(config-if)#ip addr 192.168.9.81 255.255.255.240BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEtherne

27、tO/1, changed state to 叩%LINEPR0T0-5-UPD0WN: Line protocol on Interface FastEthernetO/1, changed state to upBRANCH2(config-if)#int s0/1BRANCH2(config-if)#ip addr 192.168.9.133 255.255.255.252优质资料BRANCH2(config-if)#no shutdown%LINK-5-CHANGED: Interface SerialO/1, changed state to 叩BRANCH2(config-if)#

28、%LINEPR0T0-5-UPD0WN: Line protocol on Interface SerialO/t changed state to upBRANCH2(config-if)#7%SYS-5-C0NFIGJ: Configured from console by consoleBRANCH2#show ip int briInterfaceIP-AddressOK? Method StatusProtocolFastEthernetO/O192.168.9.65YES manual upupFastEthernetO/1192.168.9.81YES manual upupSe

29、rialO/OunassignedYES manual administratively down downSerialO/1192.168.9.133YES manual upup由表BRANCH2#conftEnter configuration mands, one per line. End with TL/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 fO/1BRANCH2(config)#ip route 192.168.9.0 255.255.255.192 192.168.9.134 BRANCH2(config)#7%SYS-5-C0NFIGJ: Configured from console by consoleBRANCH2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external 0 - OSP

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论