Debug IP OSPF Adj Command on CISCO Router/Switch


Debug IP OSPF Adj


Turns on OSPF adjacency events debugging on the router.


Router#do debug ip ospf adj


This example demonstrates what occurs when enabling adjacency debugging on R2.

R2(config-router)#do debug ip ospf adj
OSPF adjacency events debugging is on

Shortly afterwards, int fa0/0 is disabled on R3.

R3(config-router)#int fa0/0

This even triggers debug information to be displayed on R2. Here’s some of the output.

*Mar 1 02:10:00.743: OSPF: Cannot see ourself in hello from on FastEthernet1/0, state INIT
*Mar 1 02:10:00.747: OSPF: Neighbor change Event on interface FastEthernet1/0
*Mar 1 02:10:00.751: OSPF: DR/BDR election on FastEthernet1/0
*Mar 1 02:10:00.751: OSPF: Elect BDR
*Mar 1 02:10:00.755: OSPF: Elect DR
*Mar 1 02:10:00.755: OSPF: Elect BDR
*Mar 1 02:10:00.759: OSPF: Elect DR
*Mar 1 02:10:00.759: DR: (Id) BDR: none
*Mar 1 02:10:00.763: OSPF: Remember old DR (id)
*Mar 1 02:10:01.247: OSPF: Reset old DR on FastEthernet1/0
*Mar 1 02:10:01.251: OSPF: Build router LSA for area 0, router ID, seq 0x8000000B
*Mar 1 02:10:01.263: OSPF: No full nbrs to build Net Lsa for interface FastEthernet1/0
*Mar 1 02:10:02.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor (FastEthernet1/0) is down: peer restarted
*Mar 1 02:10:02.095: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor (FastEthernet1/0) is up: new adjacency

To clear debugging, the following command is issued.

R2(config-router)#do un all
All possible debugging has been turned off


Inline Feedbacks
View all comments
Would love your thoughts, please comment.x