Fourth experiment: feelings and understanding of the RIP routing protocol

Name: Chen Ke You

Student ID: 201821121016

Class: calculated 1811

1 Purpose

  • Understanding and establish RIP routing table updates
  • RIP feeling bad news travels slow

2 Experimental content

Use Packet Tracer, properly configure network parameters, use the command to view and analyze RIP routing information.

  • Establish a network topology
  • Configuration parameters
  • Analysis of RIP routing information

3 test report

   3.1  to establish a network topology

   

            It introduces two clients (the PC0 and PC1) and two routers (Router1 and Router2), the formation of a proper connection topology.

3.2 Configuration Parameters

(1) Client PC Configuration

IP address of the client PC0 is 192.168.1.16, PC1 client ip address is 192.168.3.16.

 

 

 

(2) and routers Router1 Router2 configuration (an example is given Router1 configuration)

Click on Router1 CLI Options, and then enter the following command:

Router>enable

Router#config t

Router(config)#interface G0/0

Router(config-if)#ip address 192.168.1.99 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#interface G0/1

Router(config-if)#ip address 192.168.2.99 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#version 2

Router(congif-router)#network 192.168.1.99

Router(config-router)#network 192.168.2.99

After the input shown below

 

 Next you need to check the configuration is the problem, follow these steps:

<1> to enter command Exit Configuration Mode Exit:

Router(config-router)#exit

Router(config)#exit

结果如下图:

 

 <2>检查端口配置是否正确

在之前步骤的基础上输入如下指令:

Router#show ip interface brief

结果如下图:

 

 可看到两个端口配置正确。

<3>检查路由路线是否正确

在之前的步骤基础上输入如下指令:

Router#show ip route

结果如下图所示:

 

 

Router2配置的过程和Router1过程一致,需要注意的是,在配置路由器端口地址时,同一网络段的端口的IP在经过与子网掩码相与后需相同(子网掩码如:255.255.255.0),这样最后才ping得通。如PC0的IP为192.168.1.16,Router1的G0/1端口ip为192.168.1.99,它们的子网掩码均为255.255.255.0,各自ip与子网掩码相与后的结果均为192.168.1.0。(因为我在这边犯过错误,所以把自己的错误解决方法列举出来)

3.3 测试网络连通性

通过在PC0去ping PC1,测得整条链路连通性如下图:

 

 由图可看到PC0和PC1已经连通,第一次 ping过程中出现了丢包,第二次ping过程中则没有丢包,是因为第一次在寻找路由路线需要一定时间,所以出现了丢包,第二次由于在第一次的基础上已经找到路线,所以没有出现丢包现象。

3.4 理解RIP路由表建立和更新(这里以Router1为例)

<1>查看路由过程的信息

输入如下指令:

Router#show ip protocols

结果如下:

 

 这里显示路由协议为“rip”协议,协议周期为30秒,G0/0端口和G0/1端口在一个周期里收到和发送的报文个数均为两个,两个端口对应的两个网络段分别为192.168.1.0和192.168.2.0,以及路由报文信息来源192.168.2.98端口。

<2>查看路由表

输入指令:

Router#show ip route

结果如下:

这里可以看到每个网络段连接均显示连接正确,在最后一行中显示各个网络段均可相互连接。

<3>查看RIP发送和接收报文

输入指令:

Router#debug ip rip

结果如下:

 

 这里显示了在各个网络段传输的报文均能正确发送和接收。

4 理解RIP消息传得慢

通过指令关闭Router1的端口G0/0,在Router1查看RIP路由更新信息,观察Router1路由表的敛散情况。通过”shutdown“指令关闭端口G0/0,通过”debug ip rip“查看RIP路由表变化情况。

结果如下所示:

 

从这里可以看出当我关闭Router1的G0/0端口后,路由器接收到的路由信息报文只有来自网络段192.168.2.0和网络段192.168.3.0,网络段192.168.1.0的信息报文不再收到,并且在指令里出现路由信息最后反馈结果的时间较长,即这个网络中用了一定的时间才检测出Router1的G0/0端口关闭,所以,RIP报文信息传的慢,关闭端口G0/0后路由表收敛。

 

5 拓展

1,实验中的疑问

出现了如下情况:

 

 PC端在接收到来自路由器的RIP报文时无法分析出现报错,经检查线路连接和配置均无问题,对于PC端无法分析RIP报文的原因存在疑惑。

Guess you like

Origin www.cnblogs.com/chensilu/p/11780324.html