计算机网络实验报告 静态路由配置
静态路由配置实验报告

静态路由配置实验报告篇一:计算机网络实验报告静态路由配置实验报告八班级:姓名:学号:实验时间:机房:组号:机号: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、报告内的项目或内容设置,可根据实际情况加以调整和补充。
静态路由配置实验报告

静态路由配置实验报告
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 命令来检查各端口是否配错.。
《计算机网络》实验六 静态路由配置 实验报告

实验报告六班级: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端口的地址。
实验四:路由器静态路由的配置

实验四:路由器静态路由的配置实验学时: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查验全网路由。
静态路由配置实验报告

静态路由配置实验报告 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前打上勾,结果如图,关闭窗口。
静态路由的配置实验报告

静态路由的配置实验报告实验名称:静态路由的配置实验目的:实现网络之间的全网互通实验环境: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实验拓扑图:。
静态路由配置的实验报告

静态路由配置的实验报告
静态路由配置实验报告
摘要:本实验旨在探究静态路由配置对网络通信的影响。
通过实验,我们了解了静态路由配置的基本原理和操作步骤,并通过实际操作验证了其在网络通信中的作用和效果。
引言:在网络通信中,路由器扮演着至关重要的角色,它负责将数据包从源主机传输到目标主机。
静态路由配置是一种简单而有效的路由器配置方式,通过手动设置路由表来指定数据包的传输路径。
本实验将通过配置静态路由来探究其对网络通信的影响。
实验目的:1. 了解静态路由配置的基本原理和操作步骤;2. 验证静态路由配置对网络通信的作用和效果。
实验步骤:1. 搭建实验环境,包括两台路由器和多台主机;2. 配置路由器的静态路由表,指定数据包的传输路径;3. 进行网络通信测试,观察数据包的传输情况。
实验结果:经过实验操作和测试,我们发现静态路由配置可以有效地指定数据包的传输路径,提高网络通信的效率和稳定性。
通过手动设置路由表,我们可以灵活地控制数据包的传输,避免网络拥堵和数据丢失的问题。
结论:静态路由配置是一种简单而有效的路由器配置方式,通过手动设置路由表来指定数据包的传输路径。
本实验通过实际操作验证了静态路由配置对网络通信的作用和效果,为我们深入理解网络通信和路由器配置提供了重要的实践基础。
展望:未来,我们将进一步探究动态路由配置和其他高级路由技术,深入研究
网络通信的原理和方法,为网络技术的发展和应用做出更大的贡献。
通过本次实验,我们对静态路由配置有了更深入的理解,相信在今后的学习和工作中能够更好地运用和实践这一技术。
《计算机网络》静态、动态路由实验报告

静态、动态路由实验报告实验过程和步骤: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配置完成。
- 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
六、成果与总结
本次实验顺利完成静态路由的分配。
在实验时要搞清楚路由端口。