🔍 OSPF Neighbor Adjacency Deep Dive on Palo Alto Networks

1. Establishing Neighborship: The Requirements

Before OSPF routers can become fully adjacent and exchange routing information, they must first become neighbors. This requires several parameters, advertised in OSPF Hello packets, to match exactly between the interfaces on the same network segment:

Gotcha: Basic Layer 1/2/3 connectivity must exist first! Ensure interfaces are up, IP addresses are configured correctly on the same subnet, and firewalls/ACLs aren't blocking OSPF traffic (IP protocol 89, multicast addresses 224.0.0.5/224.0.0.6).

2. OSPF Neighbor States Explained (with Gotchas)

OSPF neighbors progress through distinct states. Understanding these states is key to troubleshooting.

OSPF Neighbor State Machine with Troubleshooting Hints.

3. Designated Router (DR) and Backup Designated Router (BDR) Deep Dive

On multi-access segments (like Ethernet, default for Palo Alto interfaces), OSPF elects a DR and BDR to optimize LSA flooding. Instead of every router forming full adjacencies with every other router (N*(N-1)/2 adjacencies), all routers (DROthers) form full adjacencies only with the DR and BDR.

DR/BDR Adjacency Relationship on Multi-Access Networks.

4. Troubleshooting OSPF Adjacency on Palo Alto Networks

When OSPF adjacency fails or gets stuck, systematically check the potential causes based on the state:

  1. Check Basic Connectivity: Can the firewall ping the neighbor's OSPF interface IP? Is the interface physically up and configured correctly ( Network > Interfaces )?
  2. Check Firewall Policy/ACLs: Is there a Security Policy unintentionally blocking IP protocol 89? (Less common if traffic originates from the firewall itself, but possible). Check external devices for ACLs.
  3. Verify OSPF Configuration on PAN-OS:
    • Is OSPF enabled on the Virtual Router ( Network > Virtual Routers > [VR Name] > OSPF > Enable )?
    • Is the correct interface added to the correct OSPF Area with the correct type ( Network > Virtual Routers > [VR Name] > OSPF > Area > Interface )?
    • Is the interface accidentally set to Passive ( ... > OSPF > Area > Interface > Passive )?
    • Do the parameters (Hello/Dead Interval, Priority, Auth Profile) match the neighbor exactly ( ... > OSPF > Area > Interface )?
    • Is the MTU setting correct ( Network > Interfaces > [Interface Name] > Advanced > MTU )?
  4. Use CLI Verification Commands:
    • show routing protocol ospf neighbor : Check the current state. Look for neighbors stuck in Init, ExStart, Exchange etc.
    • show routing protocol ospf interface : Verify configured timers, cost, priority, type, state, and detected DR/BDR on the segment.
    • show routing protocol ospf summary : Verify the Router ID and basic OSPF process status.
    • show counter global filter delta yes packet-filter yes | match ospf : Check if OSPF packets are being processed or dropped by hardware/software.
  5. Check Logs and Debugs (Use cautiously):
    • less mp-log routed.log : Look for specific error messages related to neighbor state transitions or parameter mismatches.
    • debug routing ospf component event level dump : See real-time neighbor state changes and potential reasons.
    • debug routing ospf component packet level dump : See Hello/DBD packet details (can reveal parameter mismatches).
    • Remember to turn off debugs: debug routing ospf off
  6. Check Runtime Stats in WebUI: Network > Virtual Routers > [VR Name] > More Runtime Stats provides a GUI overview of neighbors, interface states etc.
Key Troubleshooting Tip: The neighbor state often points directly to the likely problem area.

5. PCNSE Exam Focus & Quiz

For the PCNSE exam, expect questions related to:

OSPF Neighborship Quiz (PCNSE Style)

1. Two Palo Alto Networks firewalls are connected via Ethernet and configured for OSPF Area 0. The neighbor state is stuck in INIT. Which parameter mismatch is LEAST likely to be the direct cause of the INIT state?

2. An administrator uses the command `show routing protocol ospf neighbor` and sees a neighbor state of "2-Way". On which OSPF network type is this potentially a final, stable state for some neighbor relationships?

3. OSPF adjacency is stuck in the ExStart state between two routers. Which configuration mismatch is the MOST likely cause?

4. On a multi-access network segment, how do two DROTHER routers (neither is DR or BDR) interact regarding OSPF adjacency?

5. Which OSPF parameter is NOT checked via the Hello packet but is critical for reaching the FULL adjacency state?

6. A Palo Alto Networks firewall has an OSPF interface priority set to 0. What role can this firewall play on that multi-access segment?

7. Which CLI command on a Palo Alto Networks firewall is most useful for quickly checking the current OSPF neighbor states?

8. If two routers on a broadcast segment have the same OSPF priority for DR/BDR election, what is used as the tie-breaker?

9. An OSPF neighbor relationship is flapping between Down and Init states. What should be investigated first?

10. Where in the Palo Alto Networks WebUI would you primarily configure OSPF interface parameters like Hello/Dead intervals and Authentication Profile?

11. What does the "FULL/BDR" state indicate in the output of `show routing protocol ospf neighbor`?

12. Which OSPF state involves the exchange of Database Descriptor (DBD) packets?

13. If OSPF authentication is configured using an Authentication Profile on a Palo Alto Networks firewall, what must match on the neighboring router?

14. What is the default OSPF interface priority on a Palo Alto Networks firewall?

15. A network segment uses OSPF. Router A is the DR, Router B is the BDR, and Router C is a DROTHER. Router C needs to send an LSA update. To which address does Router C initially send the LSU packet?

16. The `less mp-log routed.log` command is useful for viewing what type of OSPF information?

17. What is the primary purpose of electing a DR and BDR in OSPF?

18. An OSPF neighbor relationship fails to establish. You suspect a Hello/Dead timer mismatch. Where would you verify the configured timers on the Palo Alto Networks firewall?

19. Which two neighbor states indicate that bidirectional communication using Hello packets has been established?

20. A duplicate Router ID is configured within an OSPF domain. What is a likely symptom regarding neighbor adjacencies?