Debug IP OSPF Adj Command on CISCO Router/Switch

Command

Debug IP OSPF Adj

Use

Turns on OSPF adjacency events debugging on the router.

Syntax

Router#do debug ip ospf adj

Example

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
R3(config-if)#shut

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 133.133.133.133 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 2.2.2.2
*Mar 1 02:10:00.755: OSPF: Elect DR 2.2.2.2
*Mar 1 02:10:00.755: OSPF: Elect BDR 0.0.0.0
*Mar 1 02:10:00.759: OSPF: Elect DR 2.2.2.2
*Mar 1 02:10:00.759: DR: 2.2.2.2 (Id) BDR: none
*Mar 1 02:10:00.763: OSPF: Remember old DR 133.133.133.133 (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 2.2.2.2, seq 0x8000000B
*Mar 1 02:10:01.263: OSPF: No full nbrs to build Net Lsa for interface FastEthernet1/0
R2(config-router)#
*Mar 1 02:10:02.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.2.2.3 (FastEthernet1/0) is down: peer restarted
*Mar 1 02:10:02.095: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.2.2.3 (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

Related Articles

Leave a Reply

avatar