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

Recommend

Communication Protocol I2C Subsystem I2C Driver

Now let's write the I2C Driver part. The I2C ...

What harm will smog invading the computer room cause? How to protect against it

I believe that everyone is familiar with the conc...

IDC: Enterprise WLAN market grew strongly in the third quarter

The global consumer and enterprise wireless LAN (...

Why are there so many different communication protocols in industrial sites?

This is a big question, so I will briefly talk ab...

5G edge computing is here, it will make supercomputers ubiquitous

AT&T was the first to propose the concept of ...

The future of Internet streaming: Ultra-high-definition displays

As we stand on the precipice of a new era in digi...

5G private network is a big watermelon (Part 2): The mystery of the collision

In the first article of this series, we explained...

Three Misconceptions about Edge Computing

With millions of machines and objects connected t...