Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks. It uses a link-state routing (LSR) algorithm and falls into the group of interior gateway protocols (IGPs), operating within a single autonomous system (AS). It is defined as OSPF Version 2 in RFC 2328 (1998) for IPv4.
Troubleshooting Guide
1. Wrong Subnets •Point to point interface link must be in the same subnets. •best practice to configure “ip ospf network point to point” command. •Note that by default OSPF uses broadcast messages in Fast Ethernet ports. 2. Mismatch Area Type of point to point interface 3. Mismatch Area Number of point to point link interface 4. Mismatch Hello and Dead interval 5. Mismatch authentication 6. Mismatch MTU 7. Router-ID must unique 8. Interface is in passive mode 9. Filtered route (ACL, Distribution-list)
Metric and Path Selection
Lowest Cost is the best path.
Cost = Reference bandwidth / Interface bandwidth By default reference bandwidth is 100Mbps (Fast Ethernet)
Best Practice, Set the reference bandwidth to 1Tbps to distinguish higher interfaces such as Gig Link.
We can also manually change the OSPF interface cost. configuration; Router(config)#int e0/0 Router(config-if)#ip os cost 3 or Router(config-if)#bandwidth 10000 (in kilobit)
OSPF Route Summary
Reduce the size of the routing table. Consolidate networks with common subnets into 1 advertisement.
Two ways to Summary Routes
1.)On ASBR
Example: R4 network needs to advertise as one summarized network.
Good reference! Nice one!
Thanks for your blog, nice to read. Do not stop.