首页 > 数码 正文

静态路由协议·基本实验 静态路由协议实验报告

时间:2023-09-27 作者:佚名

静态路由协议特征:

实验拓扑:

实验拓扑图

实验目的:

配置静态路由协议

实验环境:

Cisco ios c7200

实验规划:

R1: s1/0:12.1.1.1/24 loopback0: 1.1.1.1/24

R2: s1/1:12.1.1.2/24 s1/0:23.1.1.2/24 loopback0: 2.2.2.2/24

R3: s1/1:23.1.1.3/24 s1/0: 34.1.1.3/24 loopback0: 3.3.3.3/24

R4:s1/1: 34.1.1.4/24 s1/0:45.1.1.4/24 loopback0: 4.4.4.4/24

R5: s1/1: 45.1.1.5/24 loopback0: 5.5.5.5/24

实验步骤:

1:基本环境搭建

2:配置静态路由协议

3:测试网络得出结论

步骤1:基本环境搭建

在R1为接口设置指定的IP地址

R1#config terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#interface serial 1/0 R1(config-if)#ip address 12.1.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config-if)#exit

查看R1所有接口的信息

R1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 12.1.1.1 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Loopback0 1.1.1.1 YES manual up up

在R2为接口设置指定的IP地址

R2#config terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#interface serial 1/1 R2(config-if)#ip address 12.1.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 1/0 R2(config-if)#ip address 23.1.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface loopback 0 R2(config-if)#ip address 2.2.2.2 255.255.255.0 R2(config-if)#exit

查看R2所有接口的信息

R2#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 23.1.1.2 YES manual up up Serial1/1 12.1.1.2 YES manual up up Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Loopback0 2.2.2.2 YES manual up up

在R3为接口设置指定的IP地址

R3#config terminal Enter configuration commands, one per line. End with CNTL/Z. R3(config)#interface serial 1/1 R3(config-if)#ip address 23.1.1.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 1/0 R3(config-if)#ip address 34.1.1.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface loopback 0 R3(config-if)#ip address 3.3.3.3 255.255.255.0 R3(config-if)#exit

查看R3所有接口的信息

R3#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 34.1.1.3 YES manual up up Serial1/1 23.1.1.3 YES manual up up Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Loopback0 3.3.3.3 YES manual up up

在R4为接口设置指定的IP地址

R4#config terminal Enter configuration commands, one per line. End with CNTL/Z. R4(config)#interface serial 1/1 R4(config-if)#ip address 34.1.1.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface serial 1/0 R4(config-if)#ip address 45.1.1.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface loopback 0 R4(config-if)#ip address 4.4.4.4 255.255.255.0 R4(config-if)#exit

查看R4所有接口信息

R4#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 45.1.1.4 YES manual up up Serial1/1 34.1.1.4 YES manual up up Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Loopback0 4.4.4.4 YES manual up up

在R5为接口设置指定的IP地址

R5#config terminal Enter configuration commands, one per line. End with CNTL/Z. R5(config)#interface serial 1/1 R5(config-if)#ip address 45.1.1.5 255.255.255.0 R5(config-if)#no shutdown R5(config-if)#exit R5(config)#interface loopback 0 R5(config-if)#ip address 5.5.5.5 255.255.255.0 R5(config-if)#exit

查看R5所有接口信息

R5#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 45.1.1.5 YES manual up up Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Loopback0 5.5.5.5 YES manual up up

步骤2:配置静态路由协议

静态路由协议实际上就是通过出接口或下一跳映射过来的远程网络。

在R1配置静态路由协议,通过R1本身的出接口或下一跳路由器将整个拓扑的网络分别映射到本地来,加入到数据库,,即路由表

R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2 R1(config)#ip route 2.2.2.2 255.255.255.255 s1/0 R1(config)#ip route 34.1.1.0 255.255.255.0 12.1.1.2 R1(config)#ip route 3.3.3.3 255.255.255.255 s1/0 R1(config)#ip route 45.1.1.0 255.255.255.0 12.1.1.2 R1(config)#ip route 4.4.4.4 255.255.255.0 s1/0 R1(config)#ip route 4.4.4.4 255.255.255.255 s1/0 R1(config)#ip route 5.5.5.5 255.255.255.255 s1/0

查看R1的路由表,查看结果R1已经将整个网络拓扑的网络分别映射到本地路由表中

R1#show ip route Codes: 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 Gateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnets S 34.1.1.0 [1/0] via 12.1.1.2 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets S 2.2.2.2 is directly connected, Serial1/0 3.0.0.0/32 is subnetted, 1 subnets S 3.3.3.3 is directly connected, Serial1/0 4.0.0.0/32 is subnetted, 1 subnets S 4.4.4.4 is directly connected, Serial1/0 5.0.0.0/32 is subnetted, 1 subnets S 5.5.5.5 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnets S 23.1.1.0 [1/0] via 12.1.1.2 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial1/0 45.0.0.0/24 is subnetted, 1 subnets S 45.1.1.0 [1/0] via 12.1.1.2

在R2配置静态路由协议,通过R2本身的出接口或下一跳路由器将整个拓扑的网络分别映射到本地来

R2(config)#ip route 1.1.1.1 255.255.255.255 s1/1 R2(config)#ip route 3.3.3.3 255.255.255.255 s1/0 R2(config)#ip route 34.1.1.0 255.255.255.0 23.1.1.3 R2(config)#ip route 4.4.4.4 255.255.255.255 s1/0 R2(config)#ip route 45.1.1.0 255.255.255.0 23.1.1.3 R2(config)#ip route 5.5.5.5 255.255.255.255 s1/0

查看R2的路由表,查看结果显示已经将整个网络拓扑的网络映射到本地路由表中

R2#show ip route Codes: 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 Gateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnets S 34.1.1.0 [1/0] via 23.1.1.3 1.0.0.0/32 is subnetted, 1 subnets S 1.1.1.1 is directly connected, Serial1/1 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Loopback0 3.0.0.0/32 is subnetted, 1 subnets S 3.3.3.3 is directly connected, Serial1/0 4.0.0.0/32 is subnetted, 1 subnets S 4.4.4.4 is directly connected, Serial1/0 5.0.0.0/32 is subnetted, 1 subnets S 5.5.5.5 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnets C 23.1.1.0 is directly connected, Serial1/0 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial1/1 45.0.0.0/24 is subnetted, 1 subnets S 45.1.1.0 [1/0] via 23.1.1.3

在R3配置静态路由协议,通过R3本身的出接口或下一跳路由器将整个拓扑的网络分别映射到本地来

R3(config)#ip route 1.1.1.1 255.255.255.255 s1/1 R3(config)#ip route 12.1.1.0 255.255.255.0 23.1.1.2 R3(config)#ip route 2.2.2.2 255.255.255.255 s1/1 R3(config)#ip route 4.4.4.4 255.255.255.255 s1/0 R3(config)#ip route 45.1.1.0 255.255.255.0 34.1.1.4 R3(config)#ip route 5.5.5.5 255.255.255.255 s1/0

查看R3的路由表,已经将整个拓扑的网络映射到本地中来

R3#show ip route Codes: 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 Gateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnets C 34.1.1.0 is directly connected, Serial1/0 1.0.0.0/32 is subnetted, 1 subnets S 1.1.1.1 is directly connected, Serial1/1 2.0.0.0/32 is subnetted, 1 subnets S 2.2.2.2 is directly connected, Serial1/1 3.0.0.0/24 is subnetted, 1 subnets C 3.3.3.0 is directly connected, Loopback0 4.0.0.0/32 is subnetted, 1 subnets S 4.4.4.4 is directly connected, Serial1/0 5.0.0.0/32 is subnetted, 1 subnets S 5.5.5.5 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnets C 23.1.1.0 is directly connected, Serial1/1 12.0.0.0/24 is subnetted, 1 subnets S 12.1.1.0 [1/0] via 23.1.1.2 45.0.0.0/24 is subnetted, 1 subnets S 45.1.1.0 [1/0] via 34.1.1.4

在R4配置静态路由协议,通过R4本身的出接口或下一跳路由器将整个拓扑的网络分别映射到本地来

R4(config)#ip route 1.1.1.1 255.255.255.255 s1/1 R4(config)#ip route 12.1.1.0 255.255.255.0 34.1.1.3 R4(config)#ip route 2.2.2.2 255.255.255.255 s1/1 R4(config)#ip route 23.1.1.0 255.255.255.0 34.1.1.3 R4(config)#ip route 3.3.3.3 255.255.255.255 s1/1 R4(config)#ip route 5.5.5.5 255.255.255.255 s1/0

查看路由表,已经将整个拓扑的网络映射到本地路由表中

R4#show ip route Codes: 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 Gateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnets C 34.1.1.0 is directly connected, Serial1/1 1.0.0.0/32 is subnetted, 1 subnets S 1.1.1.1 is directly connected, Serial1/1 2.0.0.0/32 is subnetted, 1 subnets S 2.2.2.2 is directly connected, Serial1/1 3.0.0.0/32 is subnetted, 1 subnets S 3.3.3.3 is directly connected, Serial1/1 4.0.0.0/24 is subnetted, 1 subnets C 4.4.4.0 is directly connected, Loopback0 5.0.0.0/32 is subnetted, 1 subnets S 5.5.5.5 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnets S 23.1.1.0 [1/0] via 34.1.1.3 12.0.0.0/24 is subnetted, 1 subnets S 12.1.1.0 [1/0] via 34.1.1.3 45.0.0.0/24 is subnetted, 1 subnets C 45.1.1.0 is directly connected, Serial1/0

在R5配置静态路由协议,通过R5本身的出接口或下一跳路由器将整个拓扑的网络分别映射到本地来

R5(config)#ip route 4.4.4.4 255.255.255.255 s1/1 R5(config)#ip route 34.1.1.0 255.255.255.0 45.1.1.4 R5(config)#ip route 3.3.3.3 255.255.255.255 s1/1 R5(config)#ip route 23.1.1.0 255.255.255.0 45.1.1.4 R5(config)#ip route 2.2.2.2 255.255.255.255 s1/1 R5(config)#ip route 12.1.1.0 255.255.255.0 45.1.1.4 R5(config)#ip route 1.1.1.1 255.255.255.255 s1/1

查看R5的路由表,已经将整个拓扑的网络映射到路由表中

R5#show ip route Codes: 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 Gateway of last resort is not set 34.0.0.0/24 is subnetted, 1 subnets S 34.1.1.0 [1/0] via 45.1.1.4 1.0.0.0/32 is subnetted, 1 subnets S 1.1.1.1 is directly connected, Serial1/1 2.0.0.0/32 is subnetted, 1 subnets S 2.2.2.2 is directly connected, Serial1/1 3.0.0.0/32 is subnetted, 1 subnets S 3.3.3.3 is directly connected, Serial1/1 4.0.0.0/32 is subnetted, 1 subnets S 4.4.4.4 is directly connected, Serial1/1 5.0.0.0/24 is subnetted, 1 subnets C 5.5.5.0 is directly connected, Loopback0 23.0.0.0/24 is subnetted, 1 subnets S 23.1.1.0 [1/0] via 45.1.1.4 12.0.0.0/24 is subnetted, 1 subnets S 12.1.1.0 [1/0] via 45.1.1.4 45.0.0.0/24 is subnetted, 1 subnets C 45.1.1.0 is directly connected, Serial1/1

步骤3:测试网络得出结论

整个网络节点分别配置了静态路由协议,接下来验证整个网络是否互通。

使用ping命令来检测网络通信是否连通

R1的回环接口1.1.1.1 ping R5的45.1.1.5地址,检测结果为!,证明可以通信

R1#ping 45.1.1.5 source 1.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 45.1.1.5, timeout is 2 seconds: Packet sent with a source address of 1.1.1.1 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 156/206/252 ms

使用traceroute命令检测当前节点到目的地址的路径信息

R1 traceroute R5,显示结果为,R1到达R5,共经过4跳,分别如下

R1#traceroute 45.1.1.5 Type escape sequence to abort. Tracing the route to 45.1.1.5 1 12.1.1.2 72 msec 40 msec 32 msec 2 23.1.1.3 64 msec 60 msec 64 msec 3 34.1.1.4 140 msec 136 msec 124 msec 4 45.1.1.5 136 msec 140 msec 168 msec

同理,R5也使用ping命令检测是否可以和R1通信,检测结果显示,可以通信

R5#ping 12.1.1.1 source 5.5.5.5 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds: Packet sent with a source address of 5.5.5.5 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 108/147/176 ms

R5也使用traceroute命令检测当前节点到达目的地址的路径信息

R5#traceroute 12.1.1.1 Type escape sequence to abort. Tracing the route to 12.1.1.1 1 45.1.1.4 64 msec 32 msec 32 msec 2 34.1.1.3 76 msec 112 msec 56 msec 3 23.1.1.2 48 msec 172 msec 76 msec 4 12.1.1.1 124 msec 112 msec 172 msec

点点关注·持续更新

本文信息为网友自行发布旨在分享与大家阅读学习,文中的观点和立场与本站无关,如对文中内容有异议请联系处理。

本文链接:https://www.paituo.cc/tech/1044210.html

  • 小编推荐

    mpg播放器能够在哪些设备上使用 MPG格式用什么播放器

    mpg播放器能够在哪些设备上使用,简介如下MPG播放器是人们在生活中常常使用的一种播放器,它是一种主流的数字媒体播放器,能够解码MPEG-1、MPEG-2、MPEG-4和AVC等格式的影片和音乐等多媒体...

    网易云游戏为什么要排队,网易云游戏排队详情介绍

    本文讲述网易云游戏为什么要排队,网易云游戏排队详情介绍,简介如下 不少的小伙伴在网易云游戏中玩游戏的时候每次都需要排队而很是疑惑,那么为什么要排队呢?今天就给你们带来了网易云游戏排队详情介绍,快来看看吧。 网易云游戏为什么要...

    网易云游戏账号怎么找回来,网易云游戏账号找回方法

    本文讲述网易云游戏账号怎么找回来,网易云游戏账号找回方法,简介如下 在网易云游戏玩游戏的用户有不少都会长时间不玩忘记了密码这时候就需要找回但是不知道该怎么去操作,今天就就给你们带来了网易云游戏账号找回方法,快来看看吧。 网易云...

    华为路由Q1怎么查看运行周报

    本文讲述华为路由Q1怎么查看运行周报,简介如下 华为路由Q1在绑定了华为智能家居APP之后可以在手机上查看当前一个星期内路由器当周接入的总设备数、各设备接入时长、接入设备产生的流量排行以及上网安全防护信息等...

    dhcp端口号是多少

    本文讲述dhcp端口号是多少,简介如下 dhcp端口号是68。dhcp是一个局域网的网络协议,它通常被应用在大型的局域网络环境中,主要作用是集中的管理、分配IP地址,提升地址的使用率。本文操作环境:...

    如何查看已连接的Wi以及Fi密码,给你的好友

    本文讲述如何查看已连接的Wi以及Fi密码,给你的好友,简介如下 当你的亲朋好友来访时,问你Wi-Fi密码,你是否一时想不起来,不急,今天告诉你,在电脑端如何查看已连接的Wi-Fi密码。 首先,右击“网络&rdq...

    电脑分屏怎么操作方法介绍

    本文讲述电脑分屏怎么操作方法介绍,简介如下 有不少用户在使用电脑时候想要一边看视频一边查找资料,着需要用到电脑的分屏功能。但是用户不知道该怎么样操作才可以让电脑分屏,小编详细收拾了一些电脑分屏的操作方法...

    2022适合学生的笔记本电脑推荐

    本文讲述2022适合学生的笔记本电脑推荐,简介如下 如今选购一本笔记本,要考虑的因素是越来越多的。除了要满足自己的个性化,还要结合自己的实际用途需求,另外还要考虑价格性价比因素等。那适合学生群体的电脑有哪些呢?...