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

下载本文档

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

文档简介

1、洛阳理工学院实验报告系别计算机系班级B120503学号B12050316姓名段浴课程名称计算机网络实验日期2014/11/8实验名称子网划分路由配置成绩实验目的:1、 了解如何配置路由器信息2、 了解如何划分子网实验条件:电脑一台,Cisco packet tracer模拟软件实验原理:在本实验中,为您指定了一个网络地址 ,您将对它划分子网,并为拓扑图中显示的网络分配 IP 地址。路由器全部使用2621XM,交换机全部使用2960。该网络的编址需求如下: BRANCH1 的 LAN 1 子网需要 10 个主机 IP 地址。 BRANCH1 的 LAN 2 子网需要 10 个主机 IP 地址。

2、BRANCH2 的 LAN 1 子网需要 10 个主机 IP 地址。 BRANCH2 的 LAN 2 子网需要 10 个主机 IP 地址。 HQ 的 LAN 子网需要 20 个主机 IP 地址。 从 HQ 到 BRANCH1 的链路的两端各需要一个 IP 地址。 从 HQ 到 BRANCH2 的链路的两端各需要一个 IP 地址。(注意:请记住,网络设备的接口也是主机 IP 地址,已包括在上面的编址需求中。)Fa0/0Fa0/1LAN1LAN2LAN2LAN1实验内容:1. 设计子网子网编号说明子网地址子网掩码第一个可用地址最后一个可用地址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地址(网关地址使用子网的第一个可用地址)设备接口IP地址子网掩码默认网关HQFa0/1不适用S0/0不适用S0/1192.16不适用BRANCH1Fa0/0不适用Fa0/1不适用S0/0不适用BRANCH2Fa0/0不适用Fa0/1不适用S0/119不适用PC1网卡PC2网卡PC3网卡

4、PC4网卡PC5网卡255.23. 连接网络(路由器之间使用DCE电缆连接到串行口3、 配置每个路由器的接口IP:5 配置每台计算机的IP地址6. 设置路由器中的路由表。【BRANCH1的配置】下面是配置BRANCH1的IP地址的过程,其它两个路由器的配置自行完成(1)关闭路由器电源(2)安装模块WIT-2T。(3)进入CLI(4)进行以下操作(蓝色文字是需要输入的命令,红色文字是说明)Continue with configuration dialog? yes/no: nPress RETURN to get started!进入控制台模式Router>en进入全局配置模式Route

5、r#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)#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地址。因为BRANCH1是BRANC

7、H1和HQ之间串行通信的DCE设备,所以需要配置时钟频率。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返回到控制台模式。Exit命令返回到上一层,使用C

8、trl+Z可以直接返回控制台。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按此方法配置其它两个路由器,此时可以测试各个子网和网关的连通情况。(5)添加路由表。这里没有使用路由总结。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返回控制台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)关闭路由器电源(2)安装模块WIT-2T。(3)进入CLI(4)进行以下操

13、作(红色文字是说明)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设备的时钟频率。HQ是HQ和BRANCH2之间的DCE设备。%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添加路由表。这里使用了路由总结(

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

评论

0/150

提交评论