计算机网络实验报告 静态路由配置
静态路由配置实验报告
![静态路由配置实验报告](https://img.taocdn.com/s3/m/28644313be1e650e52ea99bc.png)
静态路由配置实验报告篇一:计算机网络实验报告静态路由配置实验报告八班级:姓名:学号:实验时间:机房:组号:机号:PC_B一、实验题目静态路由配置二、实验设备CISCO路由器,专用电缆,网线,CONSOLE线,PC机三、实验内容? 了解路由的功能? 在CISCO路由器上配置和验证静态路由? 配置缺省路由四、原理静态路由是指由网络管理员手工配置的路由信息。
当网络的拓扑结构或链路的状态发生变化时,需要手工去修改路由表中相关的静态路由信息。
静态路由信息在缺省情况下是私有的,不会传递给其他的路由器。
静态路由一般适用于比较简单的网络环境,在这样的环境中,易于清楚地了解网络的拓扑结构,便于设置正确的路由信息。
五、实际步骤1.设置PC_B的IP地址,连接路由器,打开超级终端。
2.路由器B的配置User Access VerificationPassword:5_R2>enPassword:5_R2#conf tEnter configuration commands, one per line. End with CNTL/Z. 5_R2(config)#int s0/1/05_R2(config-if)#no shut5_R2(config-if)#interface s0/1/05_R2(config-if)#ip addr% Incomplete command.3.配置routerB的s0/1/0端口的IP地址5_R2(config-if)#ip address 172.17.200.6 255.255.255.2525_R2(config-if)#^Z4.配置路由器routerB的f0/1端口的IP地址5_R2#conf tEnter configuration commands, one per line. End with CNTL/Z. 5_R2(config)#int f0/15_R2(config-if)#ip address 10.5.2.1 255.255.255.0 5_R2(config-if)#^Z5.配置路由器routerB的f0/0端口的IP地址5_R2#conf tEnter configuration commands, one per line. End with CNTL/Z. 5_R2(config)#int f0/05_R2(config-if)#ip addr 10.5.4.1 255.255.255.05_R2(config-if)#no shutdown5_R2(config-if)#6.PC_B能与PC2ping 通,不能ping PC17.在PC_B上配置缺省路由5_R2(config)#ip route 10.5.1.0 255.255.255.0 172.17.200.55_R2(config)#exit5_R2#show ip routCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - 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 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, + - replicated routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksS 10.5.1.0/24 [1/0] via 172.17.200.5C 10.5.2.0/24 is directly connected, FastEthernet0/1L 10.5.2.1/32 is directly connected, FastEthernet0/1C 10.5.4.0/24 is directly connected, FastEthernet0/0L 10.5.4.1/32 is directly connected, FastEthernet0/0172.17.0.0/16 is variably subnetted, 2 subnets, 2 masksC 172.17.200.0/24 is directly connected, Serial0/1/0L 172.17.200.6/32 is directly connected, Serial0/1/05_R2#ping 10.5.1.123 (PCA)Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.5.1.123, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms 5_R2#5_R2(config)#ip route 10.5.3.0 255.255.255.0 172.17.200.55_R2(config)#exit5_R2#show ip routCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - 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 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user staticrouteo - ODR, P - periodic downloaded static route, + - replicated routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 6 subnets, 2masksS 10.5.1.0/24 [1/0] via 172.17.200.5C 10.5.2.0/24 is directly connected, FastEthernet0/1L 10.5.2.1/32 is directly connected, FastEthernet0/1S 10.5.3.0/24 [1/0] via 172.17.200.5C 10.5.4.0/24 is directly connected, FastEthernet0/0L 10.5.4.1/32 is directly connected, FastEthernet0/0172.17.0.0/16 is variably subnetted, 2 subnets, 2 masksC 172.17.200.0/24 is directly connected, Serial0/1/0L 172.17.200.6/32 is directly connected, Serial0/1/05_R2#PCB ping PCAPCB ping PC1篇二:静态路由配置实验报告深圳大学实验报告课程名称:学院:信息工程学院学号:XX131114班级:3实验时间:实验报告提交时间:教务处制注:1、报告内的项目或内容设置,可根据实际情况加以调整和补充。
静态路由配置实验报告
![静态路由配置实验报告](https://img.taocdn.com/s3/m/22914004eff9aef8941e06ad.png)
静态路由配置实验报告
01网络王志龙2010304020104 一.实验目的:
掌握路由器的基本使用及配置静态路由。
二.实验内容:
1.给各路由器命名。
2.给路由器及PC配置ip地址。
3.给各路由器配置路由。
4.测试路由是否连通。
三.实验环境及网络结构拓扑图:
1.环境:window7 思科模拟路由器。
2.拓扑图:
四.实验过程:
1.把设计好的网络拓扑图装载入思科模拟
路由软件。
2.给各路由器命名为R1,R2,R3。
R1:
R2:
R3:
3.按照下表配置R1 的Ip和路由。
R1:
各路由器配好如下:R2:
R3:
Pc1:
Pc2:
4.ping测试:
Pc1 ping pc2:
结果为通
Pc2 ping pc1:
结果为通
五.试验总结:
1.在配置ip地址时要注意进入的端口,ip地址
和端口要按预先设计好的一一对应.
2.在配置路由时应注意弄清楚进入目的网络的
下一跳端口IP。
3.实验中配置好后可以使用show runing-config 命令来检查各端口是否配错.。
《计算机网络》实验六 静态路由配置 实验报告
![《计算机网络》实验六 静态路由配置 实验报告](https://img.taocdn.com/s3/m/5dcdf14cf7ec4afe04a1df0f.png)
实验报告六班级:07东方信息姓名:学号:实验时间:10年5月17日机房:9#205 组号:机号:A一、实验题目静态路由配置二、实验设备CISCO路由器、专用电缆、网线、CONSOLE线、PC机三、实验内容1了解路由器的功能2在CISCO路由器上设置和验证静态路由3配置缺省路由四、原理实现网络的互连互通,从而实现信息的共享和传输。
静态路由实验网络拓扑结构图:五、实际步骤步骤1:初始化设置(1)按照图4-1的网络拓扑结构,连接好PC与路由器的网线、PC与路由器Console端口的调试电缆、路由器与路由器之间的V.35电缆。
(2)按照图4-1要求,在PC1、PC2计算机中设置好IP地址、子网掩码、默认网关。
然后利用Ping命令测试两台PC机之间的连通性。
模拟器也按以上配置。
(3)在PC机上启动“超级终端”。
步骤2:路由器 Route A 的基础配置7-A#show runBuilding configuration...Current configuration : 826 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname 7-A!boot-start-markerboot-end-marker!enable password cisco!no network-clock-participate aim 0no network-clock-participate aim 1no aaa new-modelip subnet-zero!!ip cef!!no ftp-server write-enable!!!!interface FastEthernet0/0ip address 10.7.3.1 255.255.255.0duplex autospeed auto!interface FastEthernet0/1ip address 10.7.1.1 255.255.255.0 duplex autospeed auto!interface Serial0/3/0ip address 172.17.200.5 255.255.255.252 no fair-queue!interface Serial0/3/1no ip addressshutdownclockrate 2000000!ip classlessip http server!!!control-plane!!line con 0line aux 0line vty 0 4password ciscologin!scheduler allocate 20000 1000!End步骤3:路由器Route B 的基础配置7-B#show runBuilding configuration...Current configuration : 868 bytes!version 12.3service timestamps debug datetime msec service timestamps log datetime msecno service password-encryption!hostname 7-B!boot-start-markerboot-end-marker!enable password cisco!no network-clock-participate aim 0no network-clock-participate aim 1no aaa new-modelip subnet-zero!!ip cef!!no ftp-server write-enable!!!!interface FastEthernet0/0ip address 10.7.3.1 255.255.255.0 shutdownduplex autospeed auto!interface FastEthernet0/1ip address 10.7.2.1 255.255.255.0 duplex autospeed auto!interface Serial0/3/0ip address 172.17.200.6 255.255.255.252 no fair-queueclockrate 128000!interface Serial0/3/1bandwidth 64no ip addressshutdownclockrate 2000000!ip classlessip http server!!!control-plane!!line con 0line aux 0line vty 0 4password ciscologin!scheduler allocate 20000 1000!end步骤4:在 Route A 上配置静态路由7-A(config)#ip route 10.7.2.0 255.255.255.0 172.17.200.67-A(config)#10.7.4.0 255.255.255.0 172.17.200.6步骤5:检查9-A上的路由表7-A#show ip routeCodes: C - connected, S - static, 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 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set172.17.0.0/30 is subnetted, 1 subnetsC 172.17.200.4 is directly connected, Serial0/3/010.0.0.0/24 is subnetted, 4 subnetsS 10.7.4.0 [1/0] via 172.17.200.6C 10.7.1.0 is directly connected, FastEthernet0/1C 10.7.3.0 is directly connected, FastEthernet0/0S 10.7.2.0 [1/0] via 172.17.200.6步骤6:Ping 7-B的FastEthernet端口的地址。
实验四:路由器静态路由的配置
![实验四:路由器静态路由的配置](https://img.taocdn.com/s3/m/7160d606bb68a98271fefaac.png)
实验四:路由器静态路由的配置实验学时:2学时实验类型:验证实验要求:必修一、实验目的1.掌握路由器的基本配置命令。
2.理解和掌握路由表的概念、作用和基本原理。
3. 掌握静态路由配置,实现不同网段的计算机之间的连接。
二、实验内容对路由器A与B进行配置,实现两台计算机PC1与PC2之间的连通,实验拓扑图如下:其中:PC1的IP地址:172.16.1.2/16 ;PC1的网关地址:172.16.1.1/16PC2的IP地址:172.18.1.2/16 ;PC2的网关地址:172.18.1.1/16RouterA的F0地址:172.16.1.1/16 ;s0的IP地址:172.17.1.1/16;其中,s0为DCE RouterB的F0地址:172.18.1.1/16 ;s0的IP地址:172.17.1.2/16;其中,s0为DTE Switch1、Switch2不需进行设置三、实验原理、方法和手段按照书本及老师所讲授的实验原理、方法进行实验。
四、实验组织运行要求本实验课以学生自主训练为主的开放模式组织教学,当老师在实验过程中发现了学生实验中存在的共同问题时,可要求学生暂停实验,对多数学生都存在的问题进行集中的讲授。
五、实验条件双绞线、PC机、锐捷网络实验室(路由器、交换机)。
六、实验步骤1.配置静态路由前,测试PC1和PC2间的连通性:1.请用Ping命令来测试PC1和PC2之间的连通性。
2.请用Show ip route命令来查看RouterA和RouterB路由表信息。
2.路由器基本配置配置路由器主机名RouterARouter> enable注:从用户模式进入特权模式Router# configure terminal注:从特权模式进入全局配置模式Router(config)# hostname RouterA注:将主机名配置为“RouterA”RouterA(config)#配置路由器主机名RouterBRouter> enable注:从用户模式进入特权模式Router# configure terminal注:从特权模式进入全局配置模式Switch(config)# hostname RouterB注:将主机名配置为“RouterB”RouterB(config)#3. 配置路由器RouterA各接口的IP 地址RouterA(config)# interface serial 0注:进入路由器serial 0 的接口配置模式RouterA(config-if)# ip address 172.17.1.1 255.255.0.0RouterA(config-if)# no shut注:设置路由器serial 0 的IP 地址为172.17.1.1,对应的子网掩码为255.255.0.0 并激活端口RouterA(config)# interface fastethernet 0注:进入路由器fastethernet 0 的接口配置模式RouterA(config-if)# ip address 172.16.1.1 255.255.0.0RouterA(config-if)# no shut注:设置路由器fastethernet 0 的IP 地址为172.16.1.1,对应的子网掩码为255.255.0.0并激活端口配置路由器RouterB各接口的IP 地址RouterB(config)# interface serial 0注:进入路由器serial 0 的接口配置模式RouterB(config-if)# ip address 1172.18.1.172.17.1.2 255.255.0.0RouterB(config-if)# no shut注:设置路由器serial 0 的IP 地址为172.17.1.2,对应的子网掩码为255.255.0.0并激活端口RouterB(config)# interface fastethernet 0注:进入路由器fastethernet 0 的接口配置模式RouterB(config-if)# ip address 172.18.1.1 255.255.0.0RouterB(config-if)# no shut注:设置路由器fastethernet 0 的IP 地址为172.18.1.1,对应的子网掩码为255.255.0.0并激活端口4. 配置接口时钟频率(DCE)RouterA(config)# interface serial 0注:进入路由器serial 0 的接口配置模式RouterA(config-if) clock rate 64000注:设置接口物理时钟频率为64Kbps5.配置静态路由RouterA(config)# ip route 172.18.0.0 255.255.0.0 172.17.1.2注:172.17.1.2 为下一跳的IP地址, 172.18.0.0为目的网段RouterB(config)# ip route 172.16.0.0 255.255.0.0 172.17.1.1注:172.17.1.1 为下一跳的IP地址, 172.16.0.0为目的网段6. 配置静态路由后,测试PC1和PC2间的连通性:1.通过命令Ping实现PC1和PC2彼此的访问;2.在RouterA,RouterB上,分别使用命令show ip route查验全网路由。
静态路由配置实验报告
![静态路由配置实验报告](https://img.taocdn.com/s3/m/3edd25b4844769eae009edc3.png)
静态路由配置实验报告 Document number【980KGB-6898YT-769T8CB-246UT-18GG08】实验报告5实验名称静态路由配置实验姓名学号班级13计本实验目的(1)掌握路由器配置方法(2)理解路由器工作原理实验内容(1)配置路由器。
(2)查看路由表。
(3)验证两个终端之间的连通性。
实验步骤(1)如图1所示摆放好实验网络中的各个设备:图1(2)左键单击Router0的图标,在物理选项卡下,单击右方实物图上的电源开关部分以关闭路由器,然后在左边找到WIC-2T,拖动到右边合适的空槽,打开电源。
结果如图。
依次操作,给Router1和Router2也加上这个设备以便路由器之间的连接。
如图2所示:图2(3)如图3所示,用连线中的直通线把PC、交换机、路由器三者连接起来,连接的时候选的都是FastEthernet端口。
然后用DCE 串口线把3个路由器之间互相连接起来,连接的时候选择Serial端口。
PS:注意接口的编号,在后边配置的时候需要对应。
图3(4)分配各个设备的信息。
用这个IP段,具体分配如下:①P C0、PC1到Router0的Fastethernet0/0口(这种路由器有2个fastethernet口,在和Switcher连接时都选择的是0/0这个口)占用这个网号;②后边的PC2PC3以及PC4PC5分别占用、这两个网号。
③R outer0和Router1之间的网络占用,Router1和Router2占用.(5)分配后先设置Router0的FastEthernet0/0口的信息。
①左键单击它的图标,在弹出的选项卡中选择<配置>选项卡,在左边的<接口配置>下单击FastEthernet0/0;②IP 地址填入网号中第一个可用的IP,即,同时该IP也是PC0、PC1的网关。
切换到子网掩码后自动填入子网掩码,然后在端口状态后的On前打上勾,结果如图,关闭窗口。
静态路由的配置实验报告
![静态路由的配置实验报告](https://img.taocdn.com/s3/m/edeb4e2e67ec102de2bd89d7.png)
静态路由的配置实验报告实验名称:静态路由的配置实验目的:实现网络之间的全网互通实验环境:2811路由器3台,主机两台,链接线缆若干。
项目需求:为方便操作,为三台路由器命名,依次为R1、R2、R3;实验命令:R1(config)#ip route 目标网络子网掩码下一跳R1#show ip route查看路由记录R1#show running-config 查看设备当前运行的配置信息实验步骤:PC0:IP地址192.168.1.1子网掩码255.255.255.0网关192.168.1.254PC2:IP地址192.168.2.1子网掩码255.255.255.0网关192.168.2.254R1:配置Router>enRouter#conf t.Router(config)#hostRouter(config)#hostname R1R1(config)#int f0/1R1(config-if)#ip addR1(config-if)#ip address 192.168.1.254 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#int f0/0R1(config-if)#ip address 192.168.3.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upR1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2R1(config)#exitR1#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 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 - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet0/1R2:配置Router>enRouter#conf tRouter#(config)#hostname R2R2(config)#int f0/0R2(config-if)#ip address 192.168.3.2 255.255.255.0Router(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 upR2(config-if)#exitR2(config)#interface f0/1R2(config-if)#ip address 192.168.4.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upR2(config-if)#exitR2(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.2R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1R2(config)#exitR2#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 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 - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setS 192.168.1.0/24 [1/0] via 192.168.3.1C 192.168.3.0/24 is directly connected, FastEthernet0/0Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R3R3(config)#interface f0/0R3(config-if)#exitR3(config)#interface f0/1R3(config-if)#ip address 192.168.2.254 255.255.255.0R3(config-if)#no shutdownR3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upR3(config-if)#exitR3(config)#interface f0/0Enter configuration commands, one per line. End with CNTL/Z.R3(config-if)#ip address 192.168.4.2 255.255.255.0R3(config-if)#no shutdownR3(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.1R3(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.1R3#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 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 - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setS 192.168.1.0/24 [1/0] via 192.168.4.2[1/0] via 192.168.4.1C 192.168.2.0/24 is directly connected, FastEthernet0/1S 192.168.3.0/24 [1/0] via 192.168.4.2[1/0] via 192.168.4.1C 192.168.4.0/24 is directly connected, FastEthernet0/0实验拓扑图:。
静态路由配置的实验报告
![静态路由配置的实验报告](https://img.taocdn.com/s3/m/2b65c5f564ce0508763231126edb6f1aff00710e.png)
静态路由配置的实验报告
静态路由配置实验报告
摘要:本实验旨在探究静态路由配置对网络通信的影响。
通过实验,我们了解了静态路由配置的基本原理和操作步骤,并通过实际操作验证了其在网络通信中的作用和效果。
引言:在网络通信中,路由器扮演着至关重要的角色,它负责将数据包从源主机传输到目标主机。
静态路由配置是一种简单而有效的路由器配置方式,通过手动设置路由表来指定数据包的传输路径。
本实验将通过配置静态路由来探究其对网络通信的影响。
实验目的:1. 了解静态路由配置的基本原理和操作步骤;2. 验证静态路由配置对网络通信的作用和效果。
实验步骤:1. 搭建实验环境,包括两台路由器和多台主机;2. 配置路由器的静态路由表,指定数据包的传输路径;3. 进行网络通信测试,观察数据包的传输情况。
实验结果:经过实验操作和测试,我们发现静态路由配置可以有效地指定数据包的传输路径,提高网络通信的效率和稳定性。
通过手动设置路由表,我们可以灵活地控制数据包的传输,避免网络拥堵和数据丢失的问题。
结论:静态路由配置是一种简单而有效的路由器配置方式,通过手动设置路由表来指定数据包的传输路径。
本实验通过实际操作验证了静态路由配置对网络通信的作用和效果,为我们深入理解网络通信和路由器配置提供了重要的实践基础。
展望:未来,我们将进一步探究动态路由配置和其他高级路由技术,深入研究
网络通信的原理和方法,为网络技术的发展和应用做出更大的贡献。
通过本次实验,我们对静态路由配置有了更深入的理解,相信在今后的学习和工作中能够更好地运用和实践这一技术。
《计算机网络》静态、动态路由实验报告
![《计算机网络》静态、动态路由实验报告](https://img.taocdn.com/s3/m/1c4b0a4103020740be1e650e52ea551810a6c9f8.png)
静态、动态路由实验报告实验过程和步骤:1、本次实验所用的拓扑图IP地址分配情况如下:Router A:FastEthernet 0 192.168.1.1/24FastEthernet 1 192.168.2.1/24FastEthernet 2 192.168.3.1/24Router B:FastEthernet 0 192.168.5.1/24FastEthernet 1 192.168.4.1/24FastEthernet 2 192.168.3.2/24PC1:192.168.1.2/24 网关192.168.1.1PC2:192.168.2.2/24 网关192.168.2.1PC3:192.168.3.2/24 网关192.168.3.1PC4:192.168.4.2/24 网关192.168.4.12、搭建本地配置控制台配线架上路由器接口连接情况1 FastEthernet02 FastEthernet 13 FastEthernet 24 FastEthernet 35 AUX6 Console(1)用配置线将PC机的COM端口与配线架6接口相连。
(2)在PC机上使用超级终端对路由器进行连接,超级终端的连接端口选COM1。
COM1的属性为:每秒位数9600,数据位8,奇偶校验无,停止位1,数据流控制硬件。
3、连接设备。
按拓扑图所示,用直通或交叉双绞线将PC机跟路由器各端口连接。
路由器之间,用交叉线连接。
并设置好每台PC机的IP地址,网关。
4、配置路由器接口IP(1)在路由器Router A上的操作:Ra#conf tEnter configuration commands, one per line. End with CNTL/Z.Ra(config)#host RARA(config)#int fa 0RA(config-if)#ip add 192.168.1.1 255.255.255.0RA(config-if)#no shutRA(config-if)#int fa 1RA(config-if)#ip add 192.168.2.1 255.255.255.0RA(config-if)#no shutRA(config-if)#int fa 2RA(config-if)#ip add 192.168.3.1 255.255.255.0RA(config-if)#no shut至此,Router A的接口IP配置完成。
实验12 静态路由配置
![实验12 静态路由配置](https://img.taocdn.com/s3/m/38ab7325dd36a32d7375811c.png)
实验12 静态路由配置【实验目的】掌握通过静态路由方式实现网络的连通性。
【背景描述】校园网内有一台接入路由器连接到校园网管中心的汇聚路由器上,现要在两台路由器上配置静态路由,实现校园网内不同网络主机的相互通信。
【技术原理】路由器是根据路由表进行选路和转发的。
而路由表里就是由一条条的路由信息组成。
路由表的产生方式一般有3种:直连路由:给路由器接口配置一个IP地址,路由器自动产生本接口IP所在网段的路由信息。
静态路由:在拓扑结构简单的网络中,网管员通过手工的方式配置本路由器未知网段的路由信息,从而实现不同网段之间的连接。
动态路由协议学习产生的路由在大规模的网络中,或网络拓扑相对复杂的情况下,通过在路由器上运行动态路由协议,路由器之间互相自动学习产生路由信息。
【实验设置】R2624(软件中以Router-PT代替)(两台)、V35线缆(1条)、PC(两台)、连接线若干条【实验拓扑图】【实验的重点和难点】1、PC机和路由器的端口、IP 地址的对应关系2、路由器接口IP 地址的配置3、静态路由的配置与测试思考:PC的网关地址应该是多少?路由器之间通过串口连接,DCE、DTE应该哪一端配置时钟频率?【实验步骤】实验前应该先配置好主机的IP地址、子网掩码和默认网关。
在未配置静态路由前测试两台PC是否可以ping通。
1、配置第一台路由器的主机名为R1,在路由器R1上配置接口的IP地址和串口上的时钟频率。
2、验证测试:验证R1接口的配置。
3、在路由器R1上配置静态路由。
R1(config)#ip route 目标网络的地址下一跳接口的地址或:R1(config)#ip route 目标网络的地址本设备的出口的接口4、验证测试:验证R1上的静态路由配置。
5、配置第二台路由器的主机名为R2,在路由器R2上配置接口的IP地址。
6、验证测试:验证路由器接口的配置。
7、在路由器R2上配置静态路由。
8、验证测试:验证R2上的静态路由配置。
实验1. 配置静态路由
![实验1. 配置静态路由](https://img.taocdn.com/s3/m/efbfdffa0242a8956bece493.png)
实验1. 静态路由基础配置1 应用背景管理员可以通过手工的方法在路由器中直接配置路由表,这就是静态路由。
虽然静态路由不适合于在大的网络中使用,但是由于静态路由简单、路由器负载小、安全性高等原因,现在在ISP、金融、证券等单位经常被使用。
2 实验目的通过本实验,掌握以下技能:◆路由表的概念◆命令ip route的使用,以及静态路由跟下一条地址和接口◆根据需求正确的配置静态路由◆掌握验证静态路由的命令3 设备需求:思科路由器 3640 三台4 实验拓扑:Hlsz_R1Hlsz_R3Hlsz_R2LOOPBACK 0Ip add 1.1.1.1/32LOOPBACK 0Ip add 3.3.3.3/32成都互联神州网络技术培训S2/0S2/0S2/1S2/15 实验步骤5.1、静态路由配置静态路由让R1 loopback 0:1.1.1.1/24、R2 loopback 0:2.2.2.2/24、R3 loopback 0:3.3.3.3/24能够相互通信5.1.1、基本配置配置接口IP地址,保证直连链路的互通R1(config)#int loopback0R1(config-if)#ip address 1.1.1.1 255.255.255.0R1(config)#int s2/0R1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#no shutdownR2(config)#int loopback0R2(config-if)#ip address 2.2.2.2 255.255.255.0R2(config)#int s2/0R2(config-if)#clock rate 64000 /DCE端配置时钟速率R2(config-if)#ip address 12.1.1.2 255.255.255.0R2(config-if)#no shutdownR2(config)#int s2/1R2(config-if)#clock rate 64000 /DCE端配置时钟速率R2(config-if)#ip address 23.1.1.2 255.255.255.0R2(config-if)#no shutdownR3(config)#int loopback0R3(config-if)#ip address 3.3.3.3 255.255.255.0R3(config)#int s2/1R3(config-if)#ip address 23.1.1.3 255.255.255.0R3(config-if)#no shutdown5.1.2、配置静态路由静态路由指向下一跳地址R1(config)#ip route 3.3.3.0 255.255.255.0 12.1.1.2R1(config)#ip route 2.2.2.0 255.255.255.0 12.1.1.2R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2/在R1上配置静态路由分别到网段:23.1.1.0、3.3.3.0和2.2.2.0,采用下一跳IP地址的形式,注意IP:12.1.1.2是R2上S2/0接口IP地址。
思科网络实验报告2静态路由的配置
![思科网络实验报告2静态路由的配置](https://img.taocdn.com/s3/m/3077e300ff00bed5b9f31dc3.png)
集美大学计算机工程学院实验报告实验名称基本静态路由配置课程名称计算机网络班级日期成绩一、实验目的1、为接口分配适当的地址,并进行记录。
2、根据拓扑图进行网络布线。
3、清除启动配置并将路由器重新加载为默认状态。
4、在路由器上执行基本配置任务。
5、配置并激活串行接口和以太网接口。
6、确定适当的静态路由、总结路由和默认路由。
二、实验场景对一个网络地址进行子网划分以便完成拓扑结构图所示的网络编址。
连接到ISP 路由器的LAN 编址和HQ 与ISP 路由器之间的链路已经完成。
但还需要配置静态路由以便非直连网络中的主机能够彼此通信。
实际拓扑图:三、实验器材(1)直通以太网电缆 3条(2)交叉以太网电缆 1条(3)PC机 3台(4)路由器 3台(5)交换器 2台四、实验内容任务1:对地址空间划分子网步骤1:研究网络要求。
在网络设计中,使用192.168.2.0/24 地址空间。
对该网络进行子网划分,以提供足够的IP 地址来支持60 台主机。
步骤2:创建网络设计时思考以下问题:需要将192.168.2.0/24 网络划分为多少个子网?__4个___这些子网的网络地址分别是什么?子网0:_192.168.2. 0/26__________________________子网1:_192.168.2.64/26__________________________子网2:_192.168.2.128/26_________________________子网3:_192.168.2.192/26_________________________这些网络以点分十进制格式表示的子网掩码是什么?__255.255.255.192________________________以斜杠格式表示的网络子网掩码是什么?_/26____每个子网可支持多少台主机?__62______步骤3:为拓扑图分配子网地址。
1. 将子网1 分配给连接到HQ 的LAN。
计算机网络实验路由配置
![计算机网络实验路由配置](https://img.taocdn.com/s3/m/7862af83caaedd3382c4d3c3.png)
实验三路由配置[参考文件夹”文档“的”Packet_Tracer图文教程”]第一部分:路由器静态路由配置【实验目的】1、掌握静态路由配置方法和技巧;2、掌握通过静态路由方式实现网络的连通性;3、熟悉广域网线缆的方式。
【实验背景】学校有新旧两个校区,每个校区是一个独立的局域网,为了使新旧校区能够正常相互通讯,共享资源。
每个校区出口利用一台路由器进行,两台路由器间学校申请了一条2M的DDN专线进行相连,要求做适当配置实现两个校区的正常相互访问。
技术原理:1、路由器属于网络层设备,能够根据IP的信息,选择一条最佳路径,将数据报出去,实现不同网段的主机之间的互相访问。
路由器是根据路由表进行选路和转发的,而路由表里就是由一条条路由信息组成。
2、生成路由表主要有两种方法:手工配置和动态配置,即静态路由协议配置和动态路由协议配置。
3、静态路由是指网络管理员手工配置的路由信息。
4、静态路由除了具有简单、高效、可靠的有点外,它的另一个好处是网络安全性高。
5、缺省路由可以看做是静态路由的一种特殊情况。
当数据在查找路由表时,没有找到目标相匹配的路由表项时,为数据指定路由。
【实验步骤】新建packet tracer拓扑图1、在路由器R1、R2上配置接口的IP地址和R1串口上的时钟频率;2、查看路由表生成的直连路由;3、在路由表R1、R2上配置静态路由;4、验证R1、R2上的静态路由配置;5、将PC1、PC2主机默认网关分别设置为路由器接口fa1/01的IP地址;6、PC1、PC2主机之间可以相互通信。
【实验设备】PC 2台;Router-PT可扩展路由2台(Switch_2811无V.35线接口);Switch_2960 2台;DCE串口线;直连线;交叉线PC1IP:192.168.1.2Submask:255.255.255.0Gateway:192.168.1.1PC2IP:192.168.2.2Submask:255.255.255.0Gateway:192.168.2.1R1enconfthostname R1int fa 1/0no shutip address 192.168.1.1 255.255.255.0exitint serial 2/0no shutip address 192.168.3.1 255.255.255.0clock rate 64000(必须配置时钟才可通信)endR2enconfthostname R2int fa 1/0no shutip address 192.168.2.1 255.255.255.0exitint serial 2/0no shutip address 192.168.3.2 255.255.255.0no shutendR1enconftip route 192.168.2.0 255.255.255.0 192.168.3.2endshow ip routeR2enconftip route 192.168.1.0 255.255.255.0 192.168.3.1endshow ip route第二部分:路由器RIP动态路由配置【实验目的】1、掌握RIP协议的配置方法;2、掌握查看通过动态路由协议RIP学习产生的路由;3、熟悉广域网线缆的方式。
实验5静态路由的配置报告
![实验5静态路由的配置报告](https://img.taocdn.com/s3/m/ac905974f46527d3240ce07b.png)
6.查看各路由器路由表的信息
1)查看路由器r1的路由表信息
[r1]display ip routing-table
2)查看路由器r2的路由表信息
[r2]display ip routing-table
[r2-serial0]ip address 192.168.3.2 255.255.255.0
[r2-serial0]shutdown
[r2-serial0]undo shutdown
[r2-serial0]quit
9)配置E1口的IP地址
[r2]interface e1
[r2-Ethernet0]ip address 192.168.2.254 255.255.255.0
7.测试连通性
1)测试PC-B到PC-D的连通性
PING192.168.2.2
3)测试PC-D到PC-B的连通性
PING192.168.1.2
【实验问题】
1.RIP,IGRP,EIGRP三种路由协议有什么不同?各协议分别适用应用在什么网络?
答:不同种类的路由协议。RIP和IGRP之间的主要区别是距离矢量协议;EIGRP主要是连接状态协议。配置RIP动态路由协议是通用的路由协议,而IGRP,EIGRP是CISCO专用的路由协议。
【实验心得和体会】
学会了路由器的基本配置,掌握了动态路由表的配置,从错误中体会到成功的喜悦,从实验中体会到知识的无穷,从实践中学到了知识。
指导教师评语及成绩:
评语:
成绩:指导教师签名:
批阅日期:
[r1-serial0]ip address 192.168.3.1 255.255.255.0
算机网络实验报告-实验九-静态路由配置
![算机网络实验报告-实验九-静态路由配置](https://img.taocdn.com/s3/m/a85b45a9d1f34693daef3ebc.png)
实验课程名称计算机网络实验报告实验项目名称静态路由配置专业班级电子信息科学与技术091班学生姓名学号指导教师理学院实验名称:实验九静态与动态路由配置实验目的:1.学会用配置静态路由;2.学会用RIP协议配置动态路由。
实验器材:装有YS-RouterSim 软件的计算机。
实验步骤配置静态路由1.设置计算机和路由器的IP地址设置PCA、PCB的IP地址分别为:10.65.1.1和10.71.1.1。
[root#PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0 [root#PCA root]# route add default gw 10.65.1.2[root#PCB root]# ifconfig eth0 10.71.1.1 netmask 255.255.0.0 [root#PCB root]# route add default gw 10.71.1.2[root#PCC root]# ifconfig eth0 10.70.1.1 netmask 255.255.0.0 [root#PCC root]# route add default gw 10.70.1.2设置RouterA的IP地址: (子网掩码是255.255.0.0)f0/0: 10.65.1.2 ----->10.65.1.1 (PCA) (箭头表示连接)f0/1: 10.66.1.2s0/0: 10.67.1.2s0/1: 10.68.1.2 -----> (RouterA的s0/1接RouterB的s0/0) 设置RouterB的IP地址:s0/0: 10.68.1.1 <----s0/1: 10.69.1.2f0/0: 10.70.1.2f0/1: 10.71.1.2 ---->10.71.1.1 (PCB)2.设置路由器的静态路由:设置路由器的IP地址(略)先看一下路由表:show ip route 是显示路由表命令,它可以看到直联网络,静态路由和动态路由的情况,这是一个很常用的命令。
计算机网络-实验8 静态路由配置
![计算机网络-实验8 静态路由配置](https://img.taocdn.com/s3/m/f3836940767f5acfa1c7cda1.png)
实验报告---静态路由配置一、实验题目:静态路由配置二、实验设备CISCO路由器,网线,专用电缆(v35),PC机,CONSOLE线三、实验内容:了解路由器的功能,在cisco路由器上配置和验证静态路由,配置缺省路由四、实验原理:路由器是工作在网络层上的网络互连设备,执行OSI网络层及其下层的协议转换,可用于连接两个或者多个仅在低三层有差异的网络,通常用在局域网与局域网,局域网与广域网的互联。
路由器根据所收到的数据报(IP数据据)的目的地址(IP地址),查找路由表,选择一个合适的路径,将数据报传送到下一个路由器,路径上最后的路由器负责将数据报送交目的主机。
五、实验步骤:1)完成实验4.1的配置2)在10-A上配置静态路由3)检查10-A上的路由表六、成果与总结(1)4.1的配置及验证10_R1#User Access VerificationPassword:Password:Password:10_R1>enPassword:10_R1#ping 172.17.200.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.17.200.6, timeout is 2 seconds:.....Success rate is 0 percent (0/5)10_R1#show int f0/0FastEthernet0/0 is up, line protocol is upHardware is Gt96k FE, address is 44e4.d9ea.c3a2 (bia 44e4.d9ea.c3a2) Internet address is 10.10.3.1/24MTU 1500 bytes, BW 100000 Kbit/sec, DL Y 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Full-duplex, 100Mb/s, 100BaseTX/FXARP type: ARPA, ARP Timeout 04:00:00Last input 00:00:24, output 00:00:00, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec971 packets input, 1015220 bytesReceived 706 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog0 input packets with dribble condition detected1719 packets output, 174370 bytes, 0 underruns0 output errors, 0 collisions, 12 interface resets0 unknown protocol drops0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out10_R1#ping 172.17.200.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.17.200.6, timeout is 2 seconds: .....Success rate is 0 percent (0/5)10_R1#ping 10.10.3.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.3.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms10_R1#ping 10.10.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.2.2, timeout is 2 seconds: .....Success rate is 0 percent (0/5)10_R1#ping 172.17.200.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.17.200.6, timeout is 2 seconds: .....Success rate is 0 percent (0/5)10_R1#conf tEnter configuration commands, one per line. End with CNTL/Z.10_R1(config)#int s0/1/010_R1(config-if)#no shut10_R1(config-if)#interface s0/1/010_R1(config-if)#ip address 172.17.200.5 255.255.255.25210_R1(config-if)#^Z10_R1#conf tEnter configuration commands, one per line. End with CNTL/Z.10_R1(config)#int f0/010_R1(config-if)#ip address 10.10.3.1 255.255.255.010_R1(config-if)#no shutdown10_R1(config-if)#^Z10_R1#show int f0/0FastEthernet0/0 is up, line protocol is upHardware is Gt96k FE, address is 44e4.d9ea.c3a2 (bia 44e4.d9ea.c3a2) Internet address is 10.10.3.1/24MTU 1500 bytes, BW 100000 Kbit/sec, DL Y 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Full-duplex, 100Mb/s, 100BaseTX/FXARP type: ARPA, ARP Timeout 04:00:00Last input 00:03:40, output 00:00:03, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec983 packets input, 1016646 bytesReceived 709 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog0 input packets with dribble condition detected1823 packets output, 184827 bytes, 0 underruns0 output errors, 0 collisions, 12 interface resets0 unknown protocol drops0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out10_R1#10_R1#ping 172.17.200.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.17.200.6, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms 10_R1#User Access VerificationPassword:10_R1>enPassword:10_R1#conf tEnter configuration commands, one per line. End with CNTL/Z. 10_R1(config)#int s0/1/010_R1(config-if)#no shut10_R1(config-if)#interface s0/1/010_R1(config-if)#ip addr% Incomplete command.10_R1(config-if)#ip address 172.17.200.5 255.255.255.25210_R1(config-if)#^Z10_R1#int f0/010_R1#conf tEnter configuration commands, one per line. End with CNTL/Z. 10_R1(config)#int f0/010_R1(config-if)#ip addr 10.10.3.1 255.255.255.010_R1(config-if)#no shutdown10_R1(config-if)#^Z10_R1#SHOW RUNBuilding configuration...Current configuration : 930 bytes!! Last configuration change at 08:39:18 UTC Wed Nov 28 2012 !version 15.0service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname 10_R1!boot-start-markerboot-end-marker!enable secret 5 $1$4N1F$gBeAmwXreILnDWy9GtaVz1!no aaa new-modelip source-route!!!!ip cefmultilink bundle-name authenticated!!!license udi pid CISCO2801 sn FGL151711VB !!!!!!interface FastEthernet0/0ip address 10.10.3.1 255.255.255.0duplex autospeed auto!interface FastEthernet0/1ip address 10.10.1.1 255.255.255.0duplex autospeed auto!interface Serial0/1/0ip address 172.17.200.5 255.255.255.252no fair-queueclock rate 125000!interface Serial0/1/1no ip addressclock rate 125000!ip forward-protocol nd!!no ip http server!!!control-plane!!line con 0line aux 0line vty 0 4password ciscologin!scheduler allocate 20000 1000End(2)步骤210_R1(config)#ip route 10.10.2.0 255.255.255.0 172.17.200.610_R1(config)#ip route 10.10.4.0 255.255.255.0 172.17.200.6(3)步骤310_R1#show ip routeCodes: L - local, C - connected, S - static, 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 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, + - replicated routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 4 subnets, 2 masksC 10.10.2.0/24 is directly connected, FastEthernet0/1L 10.10.2.1/32 is directly connected, FastEthernet0/1C 10.10.4.0/24 is directly connected, FastEthernet0/0L 10.10.4.1/32 is directly connected, FastEthernet0/0172.17.0.0/16 is variably subnetted, 2 subnets, 2 masksC 172.17.200.4/30 is directly connected, Serial0/1/0L 172.17.200.6/32 is directly connected, Serial0/1/0先是进行上节课的实验,验证4台计算机的连通性,听老师讲解其中的原理,验证成功后,做4.2的实验,其原理弄懂了之后,发现实验变得比较简单,只需记住那些代码就可以了。
计算机网络路由器静态路由配置实验报告
![计算机网络路由器静态路由配置实验报告](https://img.taocdn.com/s3/m/b00d269aaeaad1f347933f57.png)
郑州轻工业学院
实验报告
实验名称:实验四路由器静态路由配置指导教师:xxx
姓名:xxx
学号:xxxxxxxxxx
班级:xxxxx
提交日期:xxxxx
1.实验目的
(1)掌握静态路由的配置方法。
(2)验证静态路由的配置结果,加深对路由概念的理解。
2.实验题目
路由器静态路由配置
3.实验步骤(含每一步骤截图)
一、绘制网络结构图
二、进行路由基本配置
三、配置各个主机ip地址
四、分别给各个路由器命名
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1
五、配置路由器的FastEthernet0/0口和serial口ip 地址并设置串口时钟频率(DEC),实现同一路由下的主机互通
六、用ping令检验配置结果
七、配置各个路由器上的静态路由并查看路由表,实现不同路由之间的主机互通。
八、用Ping令检验配置结果,不同路由之间的主机可以相
互ping到。
4.实验结论
5.心得体会
实验报告评审表。
静态路由配置实验报告
![静态路由配置实验报告](https://img.taocdn.com/s3/m/7bccf6bdf78a6529647d53e8.png)
(1)如图1所示摆放好实验网络中的各个设备:实验步骤(2)左键单击RouterO的图标,在物理选项卡下,单击右方实物图上的电源开关部分以关闭路由器,然后在左边找到WIC-2T,拖动到右边合适的空槽,打开电源。
结果如图。
依次操作,给Routerl和Router2也加上这个设备以便路由器之间的连接。
如图2所示:Routed堺理| FlNM-2WNM-4A/SNM-OAMhM- CoverNN・Er三讥・:匕」HWIC-2THWIC-3AH^:C-AP-AG~BXV1C- 1AM^IC-1 FNFT\MC ITWlC-iAMVilC Cover主匸屋#疥四u甫空懊疑植嘤了灵壬寥協辽丈特.芳m 可肚建竺肢壬H^SJ爭NF •工非twt.界u世苗单牛at割打吃言握严勿皿号奠仔.■里用但ftMT«n :商12日比bosh噴吕rrodum古桂*事涉宙君可汗严可乂吁迂诗箱* #A* < -r:-;7.- >.-!!7-b -E'. nc ard -L:_U.(3)如图3所示,用连线中的直通线把PC交换机、路由器三者连接起来,连接的时候选的都是FastEthernet端口。
然后用DCE串口线把3个路由器之间互相连接起来,连接的时候选择Serial端口。
PS:注意接口的编号,在后边配置的时候需要对应。
(5)分配后先设置 RouterO 的FastEthernetO/O 口的信息。
① 左键单击它的图标,在弹出的选项卡中选择 <配置〉选项卡,在左边的 <接口配置 >下单击 FastEthernet0/0 ; ② “连通”了。
如下图4:图3(4)分配各个设备的信息。
用192.168这个IP 段,具体分配如下:回辛杀龙主 FLIP空撲配妊口图5图4毛 RouterO1=1芒炉亍全阿配握*3N 弟箱去FastEthe rnetOVO FastEthernetQ/1 IP 地址子岡掩码 T x Ring LimitIOS 击牛)。
实验四静态路由的设置
![实验四静态路由的设置](https://img.taocdn.com/s3/m/9fa0c03426284b73f242336c1eb91a37f1113282.png)
实验步骤4:
步骤4:测试PC间连通性,并分析原因。
实验步骤 2 :配置路由器A、B的各端口的IP地址,
Ra (config-if)#clock rate 64000 !配置RA的时钟频率(DCE) Ra (config-if)#no shutdown Ra (config-if)#exit 路由器B做同样配置,需注意,Rb串口为DTE,不需配置时钟频率。 验证:查看端口配置,查看路由器中路由表内容。 Ra #show ip interface Ra #show interface serial 1/2 Ra #show ip route
实验步骤6:验证PC1与PC2连通性,并分析原因。
如:C:\>ping 202.99.8.3 !在PC1的命令行方式下验证能PING通PC2。
6、实验要求
(1)熟悉静态路由的概念; (2)正确记录实验过程设置情况; (3)写出实验报告。
实验四 静态路由的设置
静态路由:在拓扑结构简单的网络中,网管员通过手工的方式配置本路由器未知网段的路由信息,从而实现不同网段之间的连接。 动态路由:在大规模的网络中,或网络拓扑相对复杂的情况下,通过在路由器上运行动态路由协议,路由器之间互相自动学习产生路由信息。
1、实验目的
学习掌握路由器中设置静态路由的方法;
4、实验内容
(3)然后,设置两个路由器相互连接的串行口,使得它们位于同一逻辑网内,在两个路由器上分别设置合理的静态路由; (4)测试两个局域网主机之间的连通性。
静态路由配置实验报告
![静态路由配置实验报告](https://img.taocdn.com/s3/m/1d96d3346f1aff00bfd51e76.png)
一、实验预习之杨若古兰创作1、实验目标:★了解静态路由★把握静态路由配置2、实验道理:静态路由须要手工配置,信息可以通过路由表路径传输.3、实验设备及材料:★2台华为Quidway AR 2811路由器★1台PC(已安装Iris或收集仿真软件)★公用配置电缆2根,网线5根4、实验流程或安装示意图:二、实验内容1、方法步调及景象:第一步:首先确认实验设备准确连接;第二步:配置好PCA和PCB的IP地址;第三步:通过CONSOLE口连接上Quidway AR2811路由器Rt1;第四步:在Rt1配置接口,命令清单如下:<Quidway>sys[Quidway]sysname Rt1[Rt1]int e0/0[Rt1-Ethernet0/0]ip addr .1 24[Rt1-Ethernet0/0]int e0/1[Rt1-Ethernet0/1]ip addr .1 24第五步:检查路由器Rt1的路由表,命令清单及结果如下:[Rt1]display ip routing-tableRouting Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface.0/24 DIRECT 0 0 .1 Ethernet0/011.0/24 DIRECT 0 0 11.1 Ethernet0/1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack011.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0第六步:通过CONSOLE口连接上Quidway AR2811路由器Rt2;第七步:在Rt2配置接口,命令清单如下:<Quidway>sys[Quidway]sysname Rt2[Rt2]int e0/0[Rt2-Ethernet0/0]ip addr .2 24[Rt2-Ethernet0/0]int e0/1[Rt2-Ethernet0/1]ip addr .1 24第八步:检查路由器Rt2的路由表,命令清单及结果如下:[Rt2]display ip routing-tableRouting Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface.0/24 DIRECT 0 0 .2 Ethernet0/012.0/24 DIRECT 0 0 11.2 Ethernet0/1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack012.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0第九步:在PCA上ping路由器Rt2的E0/0端口(.2)及PCB (12.0.0.2),将结果记录;○1第十步:在路由器Rt1上配置静态路由,添加一条到.0/24的路由,命令清单及结果如下:[Rt1] ip route-static 12.0.0.0 255.255.255.0 10.0.0.2[Rt1]display ip routing-tableRouting Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface.0/24 DIRECT 0 0 .1 Ethernet0/011.0/24 DIRECT 0 0 11.1 Ethernet0/1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack011.1/32 DIRECT 0 0 127.0.0.1 InLoopBack012.0.0.0/24 STATIC 60 0 .2 Ethernet0/0第十一步:再次在PCA上ping路由器Rt2的E0/0端口(.2)及PCB(.2),将结果记录;○2第十二步:在路由器Rt2上配置静态路由,添加一条到.0/24的路由,命令清单及结果如下:[Rt2] ip route-static 11.0.0.0 255.255.255.0 10.0.0.1[Rt2]display ip routing-tableRouting Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface.0/24 DIRECT 0 0 .2 Ethernet0/012.0/24 DIRECT 0 0 11.2 Ethernet0/1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack012.2/32 DIRECT 0 0 127.0.0.1 InLoopBack011.0.0.0/24 STATIC 60 0 .1 Ethernet0/0第十三步:再次在PCA上ping路由器Rt2的E0/0端口(.2)及PCB(.2),将结果记录;○3第十四步:删除第十步在路由器Rt1上配置的静态路由,恢复缺省路由,命令清单如下:[Rt1]undo ip route-static 12.0.0.0 255.255.255.0 10.0.0.2[Rt1] ip route-static 0.0.0.0 0.0.0.0 10.0.0.2第十五步:记录此时的Rt1和Rt2的路由表;第十六步:再次在PCA上ping路由器Rt2的E0/0端口(.2)及PCB(.2),将结果记录;○4第十七步:综合上面的记录,填写下表:2、对实验景象、数据及观察结果的分析与讨论:(1)比较四次记录结果和路由表的变更,分析其缘由.答:第一次:PCA与RT2、PCB均不在同一网段,且RT1、RT2路由表均没有添加静态路由路径,ping欠亨;第二次:PCA与RT2、PCB均不在同一网段,且RT2路由表没有添加静态路由路径,只要RT1路由表添加了静态路由路径,ping欠亨;第三次:PCA与RT2、PCB均不在同一网段,但RT1、RT2路由表均有添加静态路由路径,能ping通;第四次:恢复默认路由,能ping通.(2)如果第十四步删除的是Rt2的静态路由并恢复缺省路由,那么,第十五、第十六步的结果回如何?答:ping的结果不变.三、实验小结:通过本实验,我们对静态路由有了必定的了解,也基本把握了静态路由的配置方法,熟悉了使用ping命令查询路由信息的方法,对各个收集的互联也有一个跟深刻的理解.四、次要参考文献:《计算机收集与因特网》。
实验五-静态路由配置
![实验五-静态路由配置](https://img.taocdn.com/s3/m/d186ae162e60ddccda38376baf1ffc4fff47e25c.png)
实验五-静态路由配置静态路由是网络管理员手动配置,并且不会自动学习的路由。
静态路由虽然配置起来比较麻烦,但是它的路由选择过程相比较动态路由来说更稳定,更可靠,更节省系统资源。
在本实验中,我们将演示如何在两个路由器之间使用静态路由配置实现互联。
实验拓扑如下:```+-----------+ +-----------+| Router R1 |------| Router R2 |+-----------+ +-----------+```路由器R1与路由器R2分别有两个接口。
在这个拓扑中,两个路由器使用互连的接口0/0和0/1进行相互连接。
接口0/0在路由器R1上配置为192.168.1.254,接口0/1在路由器R2上配置为192.168.1.253。
以下是本实验中路由器R1和路由器R2的静态路由配置:路由器R1的配置:```enableconfigure terminalinterface GigabitEthernet0/0ip address 192.168.1.254 255.255.255.0no shutdowninterface GigabitEthernet0/1ip address 10.0.0.1 255.255.255.0no shutdownexitip route 192.168.2.0 255.255.255.0 192.168.1.253 ```路由器R2的配置:```enableconfigure terminalinterface GigabitEthernet0/0ip address 192.168.1.253 255.255.255.0no shutdowninterface GigabitEthernet0/1ip address 10.0.0.2 255.255.255.0no shutdownexitip route 192.168.1.0 255.255.255.0 192.168.1.254```这里,我们在路由器R1中配置了一个静态路由,使其可以通过192.168.1.253接口到达192.168.2.0/24网络。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验报告八
班级:姓名:学号:
实验时间:机房:组号:机号:PC_B
一、实验题目
静态路由配置
二、实验设备
CISCO路由器,专用电缆,网线,CONSOLE线,PC机
三、实验内容
⏹了解路由的功能
⏹在CISCO路由器上配置和验证静态路由
⏹配置缺省路由
四、原理
静态路由是指由网络管理员手工配置的路由信息。
当网络的拓扑结构或链路的状态发生变化时,需要手工去修改路由表中相关的静态路由信息。
静态路由信息在缺省情况下是私有的,不会传递给其他的路由器。
静态路由一般适用于比较简单的网络环境,在这样的环境中,易于清楚地了解网络的拓扑结构,便于设置正确的路由信息。
五、实际步骤
1.设置PC_B的IP地址,连接路由器,打开超级终端。
2.路由器B的配置
User Access Verification
Password:
5_R2>en
Password:
5_R2#conf t
Enter configuration commands, one per line. End with CNTL/Z. 5_R2(config)#int s0/1/0
5_R2(config-if)#no shut
5_R2(config-if)#interface s0/1/0
5_R2(config-if)#ip addr
% Incomplete command.
3.配置routerB的s0/1/0端口的IP地址
5_R2(config-if)#ip address 172.17.200.6 255.255.255.252
5_R2(config-if)#^Z
4.配置路由器routerB的f0/1端口的IP地址
5_R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
5_R2(config)#int f0/1
5_R2(config-if)#ip address 10.5.2.1 255.255.255.0
5_R2(config-if)#^Z
5.配置路由器routerB的f0/0端口的IP地址
5_R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
5_R2(config)#int f0/0
5_R2(config-if)#ip addr 10.5.4.1 255.255.255.0
5_R2(config-if)#no shutdown
5_R2(config-if)#
6.PC_B能与PC2ping 通,不能ping PC1
7.在PC_B上配置缺省路由
5_R2(config)#ip route 10.5.1.0 255.255.255.0 172.17.200.5
5_R2(config)#exit
5_R2#show ip rout
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, + - replicated route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
S 10.5.1.0/24 [1/0] via 172.17.200.5
C 10.5.2.0/24 is directly connected, FastEthernet0/1
L 10.5.2.1/32 is directly connected, FastEthernet0/1
C 10.5.4.0/24 is directly connected, FastEthernet0/0
L 10.5.4.1/32 is directly connected, FastEthernet0/0
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.17.200.0/24 is directly connected, Serial0/1/0
L 172.17.200.6/32 is directly connected, Serial0/1/0
5_R2#ping 10.5.1.123 (PCA)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.5.1.123, timeout is 2 seconds: !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms 5_R2#
5_R2(config)#ip route 10.5.3.0 255.255.255.0 172.17.200.5
5_R2(config)#exit
5_R2#show ip rout
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, + - replicated route Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
S 10.5.1.0/24 [1/0] via 172.17.200.5
C 10.5.2.0/24 is directly connected, FastEthernet0/1
L 10.5.2.1/32 is directly connected, FastEthernet0/1
S 10.5.3.0/24 [1/0] via 172.17.200.5
C 10.5.4.0/24 is directly connected, FastEthernet0/0
L 10.5.4.1/32 is directly connected, FastEthernet0/0
172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.17.200.0/24 is directly connected, Serial0/1/0
L 172.17.200.6/32 is directly connected, Serial0/1/0
5_R2#
PCB ping PCA
PCB ping PC1
PCB ping PC2
六、成果与总结
本次实验顺利完成静态路由的分配。
在实验时要搞清楚路由端口。