不同的ospf進程發布互聯網段可以互通


一直以為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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM