debug ip ospf events
To display information on OSPF-related events, such as adjacencies, flooding information, designated router selection, and shortest path first (SPF) calculation, use the debug ip ospf events command in privileged EXEC mode.
The following is sample output from the debug ip ospf events command:
Router# debug ip ospf eventsPay attention to the "received" and "configured" parameters, they must be accurately match with each others. "Received" means the parameter that you are receiving from your neighbor, and "Configured" means the parameter that you are configuring on your router (the debugging router). It's a useful command for you to find out the OSPF neighborship establishing problems by comparing if the parameters between "received" and "configured" are matched. If not, a neighborship will never up between these routers
OSPF:hello with invalid timers on interface Ethernet0
hello interval received 10 configured 10
net mask received 255.255.255.0 configured 255.255.255.0
dead interval received 40 configured 30
The debug ip ospf events output shown might appear if any of the following situations occurs:
- The IP subnet masks for routers on the same network do not match.
- The OSPF hello interval for the router does not match that configured for a neighbor.
- The OSPF dead interval for the router does not match that configured for a neighbor.
- Make sure that both routers have been configured with the same IP mask, OSPF hello interval, and OSPF dead interval.
- Make sure that both neighbors are part of the same area type.
OSPF: hello packet with mismatched E bit