不同的ospf进程发布互联网段可以互通

时间:2019-11-28 15:43:22   收藏:0   阅读:105

一直以为OSPF多进程之间要互通的话需要重发布,但是在实际工作中发现两个不通的ospf进程,发布互联的网段,竟然可以互相学习到路由。如下:

技术分享图片

 

 

 配置如下:

R1:

interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex half
!
router ospf 2
network 1.1.1.0 0.0.0.255 area 0
network 12.12.12.0 0.0.0.255 area 0

R2:

interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
duplex half
!
interface GigabitEthernet1/0
ip address 23.23.23.1 255.255.255.0
negotiation auto
!
router ospf 1
network 2.2.2.0 0.0.0.255 area 0
network 12.12.12.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.255 area 0

R3:

interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
ip address 23.23.23.2 255.255.255.0
duplex half
!
router ospf 1
network 3.3.3.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.255 area 0

路由表如下:

R1

 技术分享图片

 

 

R2

技术分享图片

 

 

R3

技术分享图片

 

 R1可以ping通R3

技术分享图片

 

原文:https://www.cnblogs.com/wdp-home/p/11950377.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!