top of page

ospf scenario based questions

Updated: Jan 20



Scenario 1 - OSPF Full Neighborhip is Not Coming Up Between Routers

Possible Causes:

  1. Hello and Dead timer or Area ID, Authentication password/type/key, or Area type are mismatched between routers.

  2. Trying to build OSPF neighborship on secondary address.

  3. OSPF not enabled on the correct interface, or network command is wrong.

  4. Network type is NBMA and no neighbor map is configured with the broadcast option.

  5. High CPU or OSPF packet is dropped by the interface due to queuing, high rate, or hardware issue from interface to CPU path.

  6. Mismatch in Subnet mask configuration.

  7. "Passive interface <>" is configured under "router ospf" for the interface.

  8. Mismatch in Network type configuration.

  9. Router is configured with ip ospf priority 0 on the router.

  10. Neighborship is getting built over a virtual link on a stub area.

Solution:

  1. Make sure the hello-dead timers, area ID, area type, and authentication type/password are correct and the same on both routers.

  2. Ensure MTU is the same on both routers.

  3. Ensure the neighbor command is configured on the remote router with the broadcast option.

  4. Make sure OSPF neighborship is built on the primary address.

  5. Ensure access-list/control plane is not dropping the OSPF packets and is allowing OSPF multicast and interface IP address communication.

  6. Ensure the subnet mask is the same on both routers.

  7. Verify that no corrupted OSPF packets are received.

  8. Ensure passive interface is not configured under "router ospf".

  9. Verify that a virtual link is not configured over a stub area.

Scenario 2 - Route is Flapping Across the Network in OSPF

Possible Causes:

  • Link flapping on the router.

Solution:

  1. Use summarization on the router to reduce the impact of the flapping route.

  2. Use ip event dampening on the interface.

Scenario 3 - OSPF Route is Not Learnt in OSPF Database

Possible Causes:

  1. Originating router not generating LSA.

  2. Routes are redistributed in stub areas.

  3. LSA filter-list is configured on the ABR.

Solution:

  1. Make sure the OSPF adjacency is up.

  2. Ensure redistribution is used with the subnet keyword.

  3. Do not redistribute external routes in a stub area.

  4. Make sure LSA filters are not configured.

Scenario 4 - OSPF Route is Not Installed in the Routing Table

Possible Causes:

  1. Distribute list is configured.

  2. Network type mismatch between routers.

  3. Adv-router not reachable message.

  4. One side is numbered and the other unnumbered (O, O IA, O E1, O E2).

  5. IP addresses are flipped, dual serial (O, O IA, O E1, O E2).

  6. Forwarding address is not known or is known via external/static (O E1, O E2) — routes summed and redistributed.

  7. Backbone area became discontiguous (O, OIA, OE1, OE2).

  8. OSPF is enabled on the secondary but not on the primary.

Solution:

  1. Ensure the distribute-list is configured correctly.

  2. Make sure the forwarding address is reachable for external routes.

  3. Ensure the forwarding address is both reachable and learned via inter-area and intra-area routes.

  4. Ensure network type is the same on both sides.

  5. Ensure there is no backbone partition.

Scenario 5 - OSPF Neighbor is Flapping Between Routers

Possible Causes:

  1. Output and input queue drops/errors/CRC on the interface.

  2. Interface is flapping.

  3. High CPU on the router.

  4. OSPF hello packet is being dropped on the platform between interface and CPU.

Solution:

  1. Ensure no high CPU usage.

  2. Ensure the interface is stable and no packet drops due to errors/CRC/input errors/input queue/output drops.

  3. Ensure no packet drops on the line card and platform.

OSPF Troubleshooting Commands:

  • show ip ospf neighbor

  • show ip ospf neighbor detail

  • show ip ospf

  • show ip ospf database

  • show ip ospf interface

  • show ip ospf database database-summary

  • show ip ospf virtual-link

  • show ip ospf database self-originate

  • show ip ospf database adv-router

  • show ip ospf statistics

  • show ip ospf request-list

  • show ip ospf bad

  • debug ip ospf adj

  • debug ip ospf monitor

11 views0 comments

Recent Posts

See All

VLAN interview questions and answers

What is VLAN and how does it function? A VLAN  (Virtual Local Area Network) is a way to segment a physical network into logical...

TAgs

Categorys

bottom of page