




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、洛阳理工学院实验报告系别计算机系班级B1205学号B1205031姓名段浴036课程名称计算机网络实验日期2014/11/8实验名称子网划分路由配置成绩实验目的:了解如何配置路由器信息了解如何划分子网实验条件:电脑一台,Cisco P acket tracer模拟软件实验原理:在本实验中,为您指定了一个网络地址 址。路由器全部使用2621XM192.168.9.0/24,交换机全部使用2960。,您将对它划分子网,并为拓扑图中显示的网络分配IP地该网络的编址需求如下:? BRANCH1的LAN 1子网需要10个主机IP地址。? BRANCH1的LAN 2子网需要10个主机IP地址。? BRAN
2、CH2的LAN 1子网需要10个主机IP地址。? BRANCH2的LAN 2子网需要10个主机IP地址。? HQ的LAN子网需要20个主机IP地址。?从 HQ 至y BRANCH1的链路的两端各需要一个IP地址。?从 HQ 至y BRANCH2的链路的两端各需要一个IP地址。已包括在上面的编址需求中。)(注意:请记住,网络设备的接口也是主机IP地址,实验内容:1.设计子网子网 编号说明子网地址子网掩码第一个可用地最后一个可用址地址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地址(网关地址使用子网的第一个可用地址)设备接口IP地址子网掩码默认网关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网卡192.168.9.2255.255.255.224192.168.9.1PC2网卡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.240
6、192.168.9.81PC5网卡192.168.9.66255.255.255.240192.168.9.653.连接网络(路由器之间使用DCE电缆连接到串行口配置每个路由器的接口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 配置每台计算机的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.设置路由器中的路
10、由表。【BRANCH1的配置】关闭路由器电源下面是配置BRANCH1的IP地址的过程,其它两个路由器的配置自行完成(1)(2)安装模块WIT-2T。(3)进入CLI进行以下操作(蓝色文字是需要输入的命令,Continue with configuration dialog? yes/no:(4)红色文字是说明)P ress RETURN to get started!进入控制台模式Routeren进入全局配置模式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地址。因为BRANCH1是BRANCH1和
13、HQ之间串行通信的 DCE设备,所以需要配置时钟频率。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按此方法配置其它两个路由器,此时可以测试各个子网和网关的连通情况。(5)添加路由表。这里没有使用路由总结。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)关闭路由器电源(2)安装模块 WIT-2T。(3)进入CLI(4)进行以下操作(红色文字是说明)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设备的时钟频率。HQ是HQ和BRANCH2之间的DCE设备。%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条。添加路由表。这里使用了路由总结(请自行计算是如何总结的!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)关闭路由器电源(2)安装模块WIT-2T。(3)(4)进入CLI进行以下操作(红色文字是说明)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配置每个端口的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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论