Requirement:
This article discusses how to configure OSPF packet debugging.
Solution:In the following example, OSPF packet debugging is enabled.
Configuration:Rack2sw1# debug destination session
Rack2sw1# debug ip ospf packet
Rack2sw1# show debug
Debug Logging
Source IP Selection: Outgoing Interface
Origin identifier: Outgoing Interface IP
Destination:
Session
Time-stamp: System-Uptime
Enabled debug types:
ip ospf packet
ip ospf packet hello-packet
ip ospf packet dd-packet
ip ospf packet lsr-packet
ip ospf packet lsu-packet
ip ospf packet lsa-packet
VerificationOSPF hello messages are transmitted and received.
0000:00:53:10.55 OSPF eRouteCtrl:OSPF SEND: 192.168.1.1 -> 224.0.0.5: Version 2,
Type Hello (1), Length 48 ret 68
0000:00:53:10.70 OSPF eRouteCtrl: Router ID 1.1.1.1, Area 0.0.0.0,
Authentication <None> (0)
0000:00:53:10.83 OSPF eRouteCtrl: Authentication data: 00000000 00000000
0000:00:53:10.93 OSPF eRouteCtrl: Mask 255.255.255.0, Options <E> (2), Priority
1, Neighbors 1
0000:00:53:11.05 OSPF eRouteCtrl: Intervals: Hello 10s, Dead Router 40s,
Designated Router 192.168.1.2, Backup 192.168.1.1
0000:00:53:11.19 OSPF eRouteCtrl: Neighbors: 2.2.2.2
0000:00:53:13.24 OSPF eRouteCtrl:OSPF RECV: 192.168.1.2 -> 224.0.0.5: Version 2,
Type Hello (1), Length 48 ret 0
0000:00:53:13.36 OSPF eRouteCtrl: Router ID 2.2.2.2, Area 0.0.0.0,
Authentication <None> (0)
0000:00:53:13.47 OSPF eRouteCtrl: Authentication data: 00000000 00000000
0000:00:53:13.55 OSPF eRouteCtrl: Mask 255.255.255.0, Options <E> (2), Priority
1, Neighbors 1
0000:00:53:13.66 OSPF eRouteCtrl: Intervals: Hello 10s, Dead Router 40s,
Designated Router 192.168.1.2, Backup 192.168.1.1
0000:00:53:13.79 OSPF eRouteCtrl: Neighbors: 1.1.1.1