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 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 220.127.116.11 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 18.104.22.168 *Mar 1 02:10:00.755: OSPF: Elect DR 22.214.171.124 *Mar 1 02:10:00.755: OSPF: Elect BDR 0.0.0.0 *Mar 1 02:10:00.759: OSPF: Elect DR 126.96.36.199 *Mar 1 02:10:00.759: DR: 188.8.131.52 (Id) BDR: none *Mar 1 02:10:00.763: OSPF: Remember old DR 184.108.40.206 (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 220.127.116.11, 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