![](https://img-blog.csdnimg.cn/img_convert/4ab63c0c0081bd27f5b1c50cb2d4ac3a.png)
左边rip 右边ospf
先配置ip地址和环回
以r1为例
![](https://img-blog.csdnimg.cn/img_convert/d02932b7ce5e4f42b187874c37db0e27.png)
![](https://img-blog.csdnimg.cn/img_convert/11a07c0f9cf9e5bae9b43ed602d143c5.png)
左边r1r2r3跑rip协议以r1为例宣告
![](https://img-blog.csdnimg.cn/img_convert/dbf6248eb7850a6608281850c11c52e7.png)
![](https://img-blog.csdnimg.cn/img_convert/229f632f6b61471f65e9fc1b44910fda.png)
r2r3r4r5跑ospf以r2为例
![](https://img-blog.csdnimg.cn/img_convert/30c62fe3e7cc034d995a096dff705e11.png)
左右两边进行双点双向重发布
![](https://img-blog.csdnimg.cn/img_convert/45486a6a49a97195a7aed57d5fca618c.png)
![](https://img-blog.csdnimg.cn/img_convert/aa3a2c480363eee5800df62e0f7d58fd.png)
抓去acl
![](https://img-blog.csdnimg.cn/img_convert/5d2698fbc114ed24a17a59711e2b533b.png)
![](https://img-blog.csdnimg.cn/img_convert/436bbdf37973a5e62e696795c81b4b02.png)
左边使用前缀列表重发布以r2为例
![](https://img-blog.csdnimg.cn/img_convert/881a08090c1f842bb3f585851075a7df.png)
![](https://img-blog.csdnimg.cn/img_convert/e1057be54b655531942ce092fb7d9394.png)
![](https://img-blog.csdnimg.cn/img_convert/134187465c46bd992a38899263b902cd.png)
右半边在ospf中修改cost值
![](https://img-blog.csdnimg.cn/img_convert/a16fab3f5b9a3eb12c28531782b7dbe7.png)
![](https://img-blog.csdnimg.cn/img_convert/ef87b1e54ee3dbd0ae1a6ebf3e78585b.png)
![](https://img-blog.csdnimg.cn/img_convert/c539f7a51730c1f37e685886d387941c.png)
![](https://img-blog.csdnimg.cn/img_convert/640b3eaa55abf205f4e65ffeb7343e97.png)
![](https://img-blog.csdnimg.cn/img_convert/432090dd87580e9a392d24150e7873f8.png)
r3重发不调用指令
![](https://img-blog.csdnimg.cn/img_convert/adeada65c361540f0f3e16897b86eda1.png)
左边rip 右边ospf
先配置ip地址和环回
以r1为例
左边r1r2r3跑rip协议以r1为例宣告
r2r3r4r5跑ospf以r2为例
左右两边进行双点双向重发布
抓去acl
左边使用前缀列表重发布以r2为例
右半边在ospf中修改cost值
r3重发不调用指令