OSPF高级配置实验
一.实验环境
实验环境:gns3,c2691路由器
二.实验拓扑图<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/114737420.png" alt="mark" style="zoom:75%;" />
三.实验步骤
因为路由器比较多,我们一个个来。R1配置<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/115303967.png" alt="mark" style="zoom:75%;" />
接下来配置R2<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/120005324.png" alt="mark" style="zoom:75%;" />
由于R2下面还有两个网段。所以我们还得做一个静态路由。<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/120226097.png" alt="mark" style="zoom:75%;" />
我们还得将R2下面的两个网段宣告一下,一个直连一个非直连。<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/120420106.png" alt="mark" style="zoom:75%;" />
接下来配置R3ip地址<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/120807058.png" alt="mark" style="zoom:75%;" />
<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/120916909.png" alt="mark" style="zoom:75%;" />
然后我们先把默认路由配置好<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/121005976.png" alt="mark" style="zoom:75%;" />
然后我们把网段分配area<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/121400972.png" alt="mark" style="zoom:75%;" />
注意这里还有一个70段的网段,为了方便我们将其放入area 0<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/121530068.png" alt="mark" style="zoom:75%;" />
我们还得将外部的默认路由宣告进来<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/122100013.png" alt="mark" style="zoom:75%;" />
接下来我们配置R4的ip<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/122238050.png" alt="mark" style="zoom:75%;" />
然后将rip协议配置好<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/122354494.png" alt="mark" style="zoom:75%;" />
然后将ospf协议注入rip<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/122813418.png" alt="mark" style="zoom:75%;" />
然后还得再将40网段分配下给area0<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/190937482.png" alt="mark" style="zoom:75%;" />
然后还得再次将rip协议注入ospf协议<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/191054401.png" alt="mark" style="zoom:75%;" />
接着对R5配置接口ip<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/191248748.png" alt="mark" style="zoom:75%;" />
然后配置好rip协议
<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/191422956.png" alt="mark" style="zoom:75%;" />
然后配置R6接口ip地址<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/191610661.png" alt="mark" style="zoom:75%;" />
然后配置下静态路由
<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191024/191708501.png" alt="mark" style="zoom:75%;" />
至此,完成实验。可以去ping下pc。没问题应该是全网互通。