11 debug ospf packet, 11 debug ospf packet - 49, At8402 utility commands – Kontron AT8402 CLI User Manual
Page 189

AT8402
Utility Commands
Page 4 - 49
AT8402 CLI Reference Manual
4.10.11
debug ospf packet
This command enables tracing of OSPF packets received and transmitted by the
switch.
Default
disabled
Format
debug ospf packet
Mode
Privileged EXEC
Sample outputs of the trace messages are shown below.
<15> JAN 02 11:03:31 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(297)
25430 % Pkt RX - Intf:2/0/48 Src
Ip:192.168.50.2 DestIp:224.0.0.5 AreaId:0.0.0.0 Type:HELLO
NetMask:255.255.255.0 D
esigRouter:0.0.0.0 Backup:0.0.0.0
<15> JAN 02 11:03:35 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(293)
25431 % Pkt TX - Intf:2/0/48 Src
Ip:10.50.50.1 DestIp:192.168.50.2 AreaId:0.0.0.0 Type:DB_DSCR Mtu:1500
Options:E
Flags: I/M/MS Seq:126166
<15> JAN 02 11:03:36 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(297)
25434 % Pkt RX - Intf:2/0/48 Src
Ip:192.168.50.2 DestIp:192.168.50.1 AreaId:0.0.0.0 Type:LS_REQ Length:
1500
<15> JAN 02 11:03:36 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(293)
25435 % Pkt TX - Intf:2/0/48 Src
Ip:10.50.50.1 DestIp:192.168.50.2 AreaId:0.0.0.0 Type:LS_UPD Length:
1500
The following parameters are displayed in the trace message:
TX/RX
TX refers to a packet transmitted by the device. RX refers to packets
received by the device.
Intf
The interface that the packet came in or went out on. Format used is
slot/port (internal interface number).
SrcIp
The source IP address in the IP header of the packet.
DestIp
The destination IP address in the IP header of the packet.
AreaId
The area ID in the OSPF header of the packet.
Type
Could be one of the following:
HELLO – Hello packet
DB_DSCR – Database descriptor
LS_REQ – LS Request
LS_UPD – LS Update
LS_ACK – LS Acknowledge
The remaining fields in the trace are specific to the type of OSPF Packet.
HELLO packet field definitions:
Netmask
The netmask in the hello packet.
DesignRouter Designated Router IP address.