OSPF不同掩碼與不同網絡類型之間建立鄰居


拓撲如下:

 

 

R1:
interface FastEthernet0/0
 ip address 12.1.1.1 255.255.255. 0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 
R2:
interface FastEthernet0/0
 ip address 12.1.1.60 255.255.255. 128
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip ospf 1 area 0
!
router ospf 1

 

 

 

 結論:

R1與R2 的掩碼不同,但OSPF的網絡類型為P-to-P或者P-to-MP的話可以正常建立鄰居也可以正常

如果網絡類型為Broadcast即要選舉DR的話就不能建立鄰居,因為會產生2類LSA,而2類LSA的內容就是描述掩碼的,不一致的話不能建立鄰居

拓撲不變
R1:
interface FastEthernet0/0
 ip address 12.1.1.1 255.255.255.0
 ip ospf network  broadcast
 ip ospf 1 area 0
 
R2:
interface FastEthernet0/0
 ip address 12.1.1.60 255.255.255.0
 ip ospf network  point-to-point
 ip ospf 1 area 0
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip ospf 1 area 0
!

 

 結論:

如果兩邊的網絡類型不一致,可以建立鄰居但不會傳遞LSA信息

 
 


免責聲明!

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



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