Factors that affect OSPF neighbor relationships, OSPF neighbor issues: network and subnet mask

Factors that affect OSPF neighbor relationships, OSPF neighbor issues: network and subnet mask

1. OSPF troubleshooting: Multi-point access networks require consistent masks. Inconsistency causes OSPF neighbors to fail to establish

Ethernet also has multi-point access. Here we take SW1 and R3 as examples for demonstration:

  1. [SW1]display current-configuration interface Vlanif 30
  2.  
  3. IP address 10.1.30.10 255.255.255.0
  4.  
  5. ospf enable 1 area 0.0.0.34
  6.  
  7. [R3]display current-configuration interface g 0/0/0
  8.  
  9. ip address 10.1.35.3 255.255.255.0
  10.  
  11. ospf enable 1 area 0.0.0.35

R3 and SW1 establish OSPF neighbor relationship normally

At this time, we change the mask of VLAN30 interface of SW1 to 30

  1. [SW1]interface Vlanif 30
  2.  
  3. [SW1-Vlanif30]ip address 10.1.30.10 28

At this time, the direct connection between SW1 and R3 interfaces can still be pinged normally, but the OSPF neighbor establishment fails.

By looking at the ospf error you can see that the network masks do not match:

At this point we can restore the mask of SW1 to 24 to establish the OSPF neighbor relationship normally.

  1. [SW1]interface Vlanif 30
  2.  
  3. [SW1-Vlanif30]ip address 10.1.30.10 24

2. Inconsistency of point-to-point network masks does not affect the establishment of OSPF neighbor relationships

Next, we configure different masks for the PPP link between R3 and R4.

The mask is 24, and R3 and R4 establish an OSPF neighbor relationship normally.

At this time, we configure the mask of R3's S2/0/0 interface to 28

  1. [R3]interface Serial 2/0/0
  2.  
  3. [R3-Serial2/0/0]ip address 10.1.34.3 28

At this time, R3 and R4 can still establish OSPF neighbor relationship normally

<<:  Let's talk about 11 main neural network structures

>>:  Σco Time | The "new" foundation of digital economy, Huawei and Xinghai IoT create a sustainable growth smart park

Blog    

Recommend

Sending Messages - RocketMQ Knowledge System (II)

[[410032]] In the previous article, we got to kno...

Germany approves Huawei 5G, says it will remain open to competing technologies

After successively losing important markets such ...

What impact will satellite internet have on you when it really arrives?

Starlink, a satellite internet service that has b...

About remote procedure call gRPC

If you have been exposed to distributed systems, ...

GSMA: Global 5G deployment will slow down due to the epidemic

On November 16, the Global System for Mobile Comm...

Will 5G replace NB-IoT immediately after commercialization? Not really!

From May 21 to May 25, the international telecomm...

Analysis of API Gateway Selection of Several Major Cloud Vendors

1. What is an API Gateway? An API Gateway is a wa...

Improving time efficiency and accuracy: Carrier routing network mining

1. Introduction The fulfillment time is the lifel...

A complete guide to the development of TCP/IP

[[415786]] In the late 1950s, during the Cold War...