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 @ 2020-05-28 17:22  星火撩原  阅读(975)  评论(0编辑  收藏  举报