rip和ospf路由双向引用

AR1配置

复制代码
interface GigabitEthernet0/0/0
 ip address 172.16.2.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.2.1 255.255.255.0 

ospf 1 router-id 1.1.1.1 
 import-route rip 1    #在OSPF进程中使用import-route rip 1引入RIP路由。
 area 0.0.0.0 
  network 192.168.2.0 0.0.0.255 
#
rip 1
 undo summary
 version 2
 network 172.16.0.0
 import-route ospf 1 cost 3    #在RIP进程中使用import-route ospf 1 cost 3引入OSPF路由,并修改开销值为3

复制代码

AR2配置

复制代码
interface GigabitEthernet0/0/0
 ip address 172.16.2.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 172.16.1.254 255.255.255.0 

rip 1
 undo summary
 version 2
 network 172.16.0.0
复制代码

AR3配置

复制代码
interface GigabitEthernet0/0/0
 ip address 192.168.1.254 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.2.3 255.255.255.0 
ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 192.168.1.0 0.0.0.255 
  network 192.168.2.0 0.0.0.255 
复制代码

测试

 

posted @   星火撩原  阅读(990)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示