Learn all the troubleshooting commands for OSPF routing protocol


This article is all about how to troubleshoot your OSPF routing and verify routing on the routers. In the previous article, we easily learn that how to configure OSPF routing protocol on the cisco routers. Now in this tutorial, we learn about how to verify and check OSPF routing protocol using troubleshooting commands on routers. Now to understand these troubleshooting commands with ease we again take the previous lab which is used to understand OSPF configuration on the routers. So, let’s start here how to check and verify your OSPF routing protocol using troubleshooting commands. If you don’t know about how to configure OSPF routing protocol on the routers then read my previous article by clicking on the above given link.

how to configure OSPF on routers

Now use given below commands on any of the routers and verify your routing. Like here I run troubleshooting commands on router R1

To display complete routing table use given below command

R1#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

    • candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

C 1.0.0.0/8 is directly connected, FastEthernet0/0

C 2.0.0.0/8 is directly connected, Serial0/0/0

O 3.0.0.0/8 [110/65] via 2.0.0.2, 00:02:04, Serial0/0/0

O 4.0.0.0/8 [110/128] via 2.0.0.2, 00:02:04, Serial0/0/0

O 5.0.0.0/8 [110/129] via 2.0.0.2, 00:02:04, Serial0/0/0

 

To display parameters of all the running protocols of the router use given below command

R1#show ip protocols

Routing Protocol is “ospf 1”

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Router ID 2.0.0.1

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

1.0.0.0 0.255.255.255 area 0

2.0.0.0 0.255.255.255 area 0

Routing Information Sources:

Gateway Distance Last Update

2.0.0.1 110 00:05:21

4.0.0.1 110 00:05:21

5.0.0.1 110 00:05:21

Distance: (default is 110)

 

To display OSPF routing process basic information use given below command

R1#show ip ospf

Routing Process “ospf 1” with ID 2.0.0.1

Supports only single TOS(TOS0) routes

Supports opaque LSA

SPF schedule delay 5 secs, Hold time between two SPFs 10 secs

Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs

Number of external LSA 0. Checksum Sum 0x000000

Number of opaque AS LSA 0. Checksum Sum 0x000000

Number of DCbitless external and opaque AS LSA 0

Number of DoNotAge external and opaque AS LSA 0

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

External flood list length 0

Area BACKBONE(0)

Number of interfaces in this area is 2

Area has no authentication

SPF algorithm executed 2 times

Area ranges are

Number of LSA 3. Checksum Sum 0x0253cb

Number of opaque link LSA 0. Checksum Sum 0x000000

Number of DCbitless LSA 0

Number of indication LSA 0

Number of DoNotAge LSA 0

Flood list length 0

 

To display all the OSPF neighbors of the router R1 in detail use given below command

R1#show ip ospf neighbor detail

Neighbor 4.0.0.1, interface address 2.0.0.2

In the area 0 via interface Serial0/0/0

Neighbor priority is 0, State is FULL, 5 state changes

DR is 0.0.0.0 BDR is 0.0.0.0

Options is 0x00

Dead timer due in 00:00:35

Neighbor is up for 00:11:55

Index 1/1, retransmission queue length 0, number of retransmission 0

First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)

Last retransmission scan length is 0, maximum is 0

Last retransmission scan time is 0 msec, maximum is 0 msec

 

To display a brief list of OSPF neighbors use given below command

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

4.0.0.1 0 FULL/ – 00:00:31 2.0.0.2 Serial0/0/0

 

To display the detailed OSPF information on all the interfaces of router use given below command

R1#show ip ospf interface

FastEthernet0/0 is up, line protocol is up

Internet address is 1.0.0.1/8, Area 0

Process ID 1, Router ID 2.0.0.1, Network Type BROADCAST, Cost: 1

Transmit Delay is 1 sec, State DR, Priority 1

Designated Router (ID) 2.0.0.1, Interface address 1.0.0.1

No backup designated router on this network

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Hello due in 00:00:07

Index 1/1, flood queue length 0

Next 0x0(0)/0x0(0)

Last flood scan length is 1, maximum is 1

Last flood scan time is 0 msec, maximum is 0 msec

Neighbor Count is 0, Adjacent neighbor count is 0

Suppress hello for 0 neighbor(s)

Serial0/0/0 is up, line protocol is up

Internet address is 2.0.0.1/8, Area 0

Process ID 1, Router ID 2.0.0.1, Network Type POINT-TO-POINT, Cost: 64

Transmit Delay is 1 sec, State POINT-TO-POINT, Priority 0

No designated router on this network

No backup designated router on this network

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Hello due in 00:00:07

Index 2/2, flood queue length 0

Next 0x0(0)/0x0(0)

Last flood scan length is 1, maximum is 1

Last flood scan time is 0 msec, maximum is 0 msec

Neighbor Count is 1 , Adjacent neighbor count is 1

Adjacent with neighbor 4.0.0.1

Suppress hello for 0 neighbor(s)

 

To display information about border and boundary routers use given below command

R1#show ip ospf border-routers

OSPF Process 1 internal Routing Table

Codes: i – Intra-area route, I – Inter-area route

 

To display all the ospf events on the router use given below command
R1#debug ip ospf events
OSPF events debugging is on
R1#
00:19:58: OSPF: Rcv hello from 4.0.0.1 area 0 from Serial0/0/0 2.0.0.2

00:19:58: OSPF: End of hello processing

00:20:08: OSPF: Rcv hello from 4.0.0.1 area 0 from Serial0/0/0 2.0.0.2

00:20:08: OSPF: End of hello processing

00:20:18: OSPF: Rcv hello from 4.0.0.1 area 0 from Serial0/0/0 2.0.0.2

00:20:18: OSPF: End of hello processing

00:20:28: OSPF: Rcv hello from 4.0.0.1 area 0 from Serial0/0/0 2.0.0.2

00:20:28: OSPF: End of hello processing

00:20:38: OSPF: Rcv hello from 4.0.0.1 area 0 from Serial0/0/0 2.0.0.2

00:20:38: OSPF: End of hello processing

 THAT’S IT

These are the troubleshooting commands by which we can easily verify our OSPF routing protocols on the router. If you have any queries regarding this then simply solved out through the comment section and also provide feedback to us. Because your feedback is valuable for us.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s