拓撲如下:
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信息