OSPF高级配置实验
一.实验环境
实验环境:gns3,c2691路由器
二.实验拓扑图<img src="https://cache.tdyun.com/upload/information/20200309/33/53147.jpg" alt="mark" style="zoom:75%;" />
三.实验步骤
因为路由器比较多,我们一个个来。R1配置<img src="https://cache.tdyun.com/upload/information/20200309/33/53148.jpg" alt="mark" style="zoom:75%;" />
接下来配置R2<img src="https://cache.tdyun.com/upload/information/20200309/33/53149.jpg" alt="mark" style="zoom:75%;" />
由于R2下面还有两个网段。所以我们还得做一个静态路由。<img src="https://cache.tdyun.com/upload/information/20200309/33/53150.jpg" alt="mark" style="zoom:75%;" />
我们还得将R2下面的两个网段宣告一下,一个直连一个非直连。<img src="https://cache.tdyun.com/upload/information/20200309/33/53151.jpg" alt="mark" style="zoom:75%;" />
接下来配置R3ip地址<img src="https://cache.tdyun.com/upload/information/20200309/33/53152.jpg" alt="mark" style="zoom:75%;" />
<img src="https://cache.tdyun.com/upload/information/20200309/33/53153.jpg" alt="mark" style="zoom:75%;" />
然后我们先把默认路由配置好<img src="https://cache.tdyun.com/upload/information/20200309/33/53154.jpg" alt="mark" style="zoom:75%;" />
然后我们把网段分配area<img src="https://cache.tdyun.com/upload/information/20200309/33/53155.jpg" alt="mark" style="zoom:75%;" />
注意这里还有一个70段的网段,为了方便我们将其放入area 0<img src="https://cache.tdyun.com/upload/information/20200309/33/53156.jpg" alt="mark" style="zoom:75%;" />
我们还得将外部的默认路由宣告进来<img src="https://cache.tdyun.com/upload/information/20200309/33/53157.jpg" alt="mark" style="zoom:75%;" />
接下来我们配置R4的ip<img src="https://cache.tdyun.com/upload/information/20200309/33/53158.jpg" alt="mark" style="zoom:75%;" />
然后将rip协议配置好<img src="https://cache.tdyun.com/upload/information/20200309/33/53159.jpg" alt="mark" style="zoom:75%;" />
然后将ospf协议注入rip<img src="https://cache.tdyun.com/upload/information/20200309/33/53160.jpg" alt="mark" style="zoom:75%;" />
然后还得再将40网段分配下给area0<img src="https://cache.tdyun.com/upload/information/20200309/33/53161.jpg" alt="mark" style="zoom:75%;" />
然后还得再次将rip协议注入ospf协议<img src="https://cache.tdyun.com/upload/information/20200309/33/53162.jpg" alt="mark" style="zoom:75%;" />
接着对R5配置接口ip<img src="https://cache.tdyun.com/upload/information/20200309/33/53163.jpg" alt="mark" style="zoom:75%;" />
然后配置好rip协议
<img src="https://cache.tdyun.com/upload/information/20200309/33/53164.jpg" alt="mark" style="zoom:75%;" />
然后配置R6接口ip地址<img src="https://cache.tdyun.com/upload/information/20200309/33/53165.jpg" alt="mark" style="zoom:75%;" />
然后配置下静态路由
<img src="https://cache.tdyun.com/upload/information/20200309/33/53166.jpg" alt="mark" style="zoom:75%;" />
至此,完成实验。可以去ping下pc。没问题应该是全网互通。