Documente Academic
Documente Profesional
Documente Cultură
Open Shortest Path First (OSPF) is one of the most widely used IGP routing
protocols. Implementing OSPF may not be a big deal but it is always a big
deal to trouble-shoot OSPF. A network engineer has to take care of many
aspects of configuration in order to deal with OSPF troubleshooting. And I
know all of you are now very comfortable with OPSF implementation
(Thanks to previous articles published here about OSPF).
GNS3TroubleshootingOSPF.zip
In this article, we are going to learn how to trouble-shoot and resolve OSPF
routing. Before i I start, I want to tell you that I made a GNS3 topology for
you, which is configured with IP addresses and hostname so you can get
the GNS3 file from the download link posted here and start with described
configuration in this article.
In the real environment, our OSPF neighborship often goes down, and we
have to check some common possible causes for the breakdown. The most
common problems with OSPF neighborship are:
1. Reachability
2. Neighbors must be in same area
3. Neighbors must be using same primary subnet
4. Authentication must be properly implemented on both neighbors (if
configured)
5. Timers (hello and dead interval) must be same on neighbors
6. MTU (Maximum Transmission Unit) must be same
7. Router Id must be unique on neighbors
8. Area flags (stub, nssa NSSA, etc.) must be same on OSPF neighbors
<img
src="http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdna-cdn.com/wpcontent/uploads/050614_1830_GNS3LabTrou1.png" alt="" />
Fig.1 shows a scenario where OSPF is configured with Process_id 1 and
Area 1 between two routers, in New York and Washington.
I already configured IP addresses, so just start the devices in GNS3 and
enable OSPF routing with the following commands:
NewYork(config)#router ospf 1
NewYork(config-router)#network 12.1.1.1 0.0.0.0 area 1
NewYork(config-router)#network 1.1.1.1 0.0.0.0 area 1
Washington(config)#router ospf 1
Washington(config-router)#network 12.1.1.2 0.0.0.0 area 1
Washington(config-router)#network 2.2.2.2 0.0.0.0 area 1
After configuring the above commands, you will get following log message
for OSPF neighborship formation:
*Mar 1 00:03:44.511: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on
Serial0/0 from LOADING to FULL, Loading Done
Okay, for now your OSPF routing is configured, so its time to prove OSPF
neighborship conditions, which will make you more confident while
resolving OSPF issues in a real environment. So lets start with the first
one,
1. Reachability:: To check this condition, just shut down the
serial interface of any router.
NewYork(config)#int serial 0/0
NewYork(config-if)#shutdown
You will get this log message: *Mar 1 00:37:11.335: %OSPF-5-ADJCHG:
Process 1, Nbr 2.2.2.2 on Serial0/0 from FULL to DOWN, Neighbor Down:
Interface down or detached
To get your OSPF neighborship up again, bring up your interface:
NewYork(config)#int s0/0
NewYork(config-if)#no shutdown
show ip protocol
<im
g
src="http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdnacdn.com/wpcontent/uploads/050614_1830_GNS3LabTrou3.jpg" alt="" />
To configure OSPF timers:
NewYork(config)#int s0/0
NewYork(config-if)#ip ospf hello-interval <1-65535> Seconds
NewYork(config-if)#ip ospf dead-interval <1-65535> Seconds
Useful Tshoot Commands to show OSPF Timers ::
<i
mg src="http://1rtdn21e2k8w27koup1eiasxspe.wpengine.netdnacdn.com/wp-content/uploads/050614_1830_GNS3LabTrou5.jpg" alt="" />
Note: You will get a Log message for MTU mismatch like *Mar 1
01:02:40.955: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0 from
EXCHANGE to DOWN, Neighbor Down: Too many retransmissions
But it is always better to use ip opsf mtu-ignore for an interface which is
configured with least MTU.
1. Router-Id must be unique on neighbors: If the OSPF
router-id is the same on neighbors, then they will not form an
OSPF neighborship and you will get OSPF detected duplicate
router-id log message, as follows:
o http://www.cisco.com/c/en/us/support/docs/ip/open-shortestpath-first-ospf/12151-trouble-main.html