OSPF routing protocol configuration experiment

Purpose:

  1. Understand OSPF;
  2. Master the configuration method of OSPF;
  3. Master and check the related information of OSPF protocol.

experiment equipment:

Router and PC, twisted pair.

Experiment content:

This experiment configures the OSPF protocol on the router to make the network unblocked, and further understands the basic principles of the OSPF protocol by viewing various OSPF protocol information.

Experimental steps:

     Single-area OSPF routing experiment configuration

  1. layout topology

     Configure gateway, IP address

Configure the R2 router

Configure the R0 router

   Configure the R1 router

  

   Configure the R3 router

  1. Configure router OSPF routing, configure all router interfaces area0

The OSPF routing configuration in R0 is as follows

The OSPF routing configuration in R1 is as follows

The OSPF routing configuration in R2 is as follows

The OSPF routing configuration in R3 is as follows

  1. Verify connectivity, ping pc1 from pc0

4) Check the route of the router

R0 routing

   R1 routing

  R2 routing

  R3 routing

  1. 查看路由协议配置与统计信息,以R0为例

       

  1. 查看OSPF进程及区域细节的数据,以R0为例。

  1. 查看路由器OSPF数据库信息,以R1为例。

      8)查看接口OSPF信息,以R1为例

9)查看OSPF邻居信息,以R1为例

实验结果(附数据和图表):

查看OSPF邻居信息,以R1为例

联通性,由pc0 ping pc1,已经联通

实验结果分析及结论:

1 RIP路由协议中用于表示目的网络远近的参数为跳(HOP),也即到达目的网络所要经过的路由器个数。在RIP路由协议中,该参数被限制为最大15,对于OSPF路由协议,路由表中表示目Cost,该参数为一虚拟值,与网络中链路的带宽等相关,也就是说OSPF因此,OSPF适合应用于大型网络中,支持几百台的路由器,1000台以上的路由器也是没有问题的

2RIP协议中,网络是一个平面的概念,并无区域及边界等的定义。在OSPF路由协议中,一个网络,或者说是一个路由域可以划分为很多个区域area,每一个区域通过OSPF边界路由器相连,区域间可以通过路由总结(Summary)来减少路由信息,减小路由表,提高路由器的运算速度。

3 OSPF路由协议对负载分担的支持性能较好。 OSPF路由协议支持多条Cost相同的链路上的负载分担,如果到同一个目的地址有多条路径,而且花费都是相等,那么可以将这多条路有显示在路由表中。目前一些厂家的路由器支持6条链路的负载分担。

实验心得体会和建议:

OSPF的全称叫Open Shortest Path First,开放最短路径优先。Open的意思就是这个是公开性的,OSPF是由IETF标准组织制定的一种基于链路状态内部网关协议。Shortest Path First最短路径优先指的是路由选择过程中的一个算法,如果学过动态路由协基础,就会知道OSPF是一种典型的IGP,是描述路由信息运行在同一个自制系统内部OSPF路由协议是一种典型的链路状态(Link-state)的路由协议,一般在这里,路由域是指一个自治系统(Autonomous System),即AS,在这个AS中,所有OSPF路由器都维护一个相同的描述这个AS结构的数据库,该数据库中存放的是路由OSPF路由器正是通过这个数据库计算出其OSPF路由表的。

                                     

Guess you like

Origin blog.csdn.net/Zheng_Emperor/article/details/128328958