debugging ospf packet

Function

The debugging ospf packet command enables debugging of all types of sent and received OSPF packets.

The undo debugging ospf packet command disables debugging of sent and received OSPF packets.

By default, the debugging of sent and received OSPF packets is disabled.

Format

debugging ospf process-id packet [ ack | dd | hello | request | update ] [ interface { interfacename | interfacetype interfacenum } ] [ brief ] [ filter { { src | nbr } { nbrId | acl { acl-number | acl-name } } } ]

debugging ospf process-id packet grace

debugging ospf process-id packet filter { { src | nbr } nbrId }

undo debugging ospf [ process-id ] packet [ ack | dd | hello | request | update ] [ interface { interfacename | interfacetype interfacenum } ] [ brief ] [ filter { { src | nbr } { nbrId | acl { acl-number | acl-name } } } ]

undo debugging ospf [ process-id ] packet grace

undo debugging ospf process-id packet filter { { src | nbr } nbrId }

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPF process.

The value is an integer ranging from 1 to 4294967295.

ack

Displays debugging information about type-5 OSPF packets.

-

dd

Displays debugging information about type-2 OSPF packets.

-

hello

Displays debugging information about type-1 OSPF packets.

-

request

Displays debugging information about type-3 OSPF packets.

-

update

Displays debugging information about type-4 OSPF packets.

-

interface interfacetype interfacenum

Specifies the type and number of an interface.

-

brief

Displays the brief OSPF information.

-

filter

Set filter policy.

-

src

Set filter policy of Self device.

-

nbr

Set filter policy of Neighbor device.

-

nbrId

Specifies the IP address.

The value is in dotted decimal notation.

acl acl-number

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

acl acl-name

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

grace

Displays debugging information about Grace LSA in update packet.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ospf debug

Usage Guidelines

Usage Scenario

The debugging ospf packet command enables debugging of all types of sent and received OSPF packets. Generally, this command can be used to check the creation of neighbors and locate problems in the process. If a problem occurs, enable debugging of the related type of packet. If the OSPF process ID is not specified, the packets of all OSPF processes are displayed. OSPF packets are ack, dd, hello, request, and update packets. This command displays the information about all types of packets. Debugging affects the system performance. After debugging is complete, run the undo debugging ospf packet command in time to disable debugging of OSPF packets.

Example

# Enable the OPSF Hello packet debugging after OSPF SR is enabled.
<HUAWEI> debugging ospf packet hello
Sep 14 2017 12:48:48.609 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80820443;
LSA Type 0xa (Area opaque LSA)
 LS ID: 10.0.0.0
 Adv Rtr: 10.1.72.64
 LSA Age: 1
 Options: DN:0 O:0 DC:0 EA:0 N/P:0 MC:0 E:1
 Length: 32, Seq# 80000003
 CheckSum: eca6
 # Tlv's: 1
 Type: 7 (Hostname)
 Length: 6
 Hostname: HUAWEI
Sep 14 2017 12:59:42.202 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80820443;
LSA Type 0xa (Area opaque LSA)
 LS ID: 10.0.0.2
 Adv Rtr: 10.2.2.2
 LSA Age: 1
 Options: DN:0 O:0 DC:0 EA:0 N/P:0 MC:0 E:1
 Length: 44, Seq# 80000002
 CheckSum: 7a5f
 Type: 1 (Extended Prefix TLV)
 Route Type: 1 (Intra-Area)
 Prefix Length: 32
 AF: IPv4-Unicast
 Flags: 0x40
 Prefix: 10.4.4.4
 Type: 2 (Prefix SID Sub-TLV)
 Flags: 0x0
 MT ID: 0
 Algorithm: SPF
 Index: 201
Sep 14 2017 13:00:03.096 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80820443;
LSA Type 0xa (Area opaque LSA)
 LS ID: 10.10.0.0
 Adv Rtr: 10.2.2.2
 LSA Age: 1
 Options: DN:0 O:0 DC:0 EA:0 N/P:0 MC:0 E:1
 Length: 48, Seq# 80000004
 CheckSum: 5f70
 Type: 1 (Extended Link TLV)
 Link Type: 2 (TransNet)
 Link ID: 10.1.1.1
 Link Data: 10.1.1.2
 Type: 2 (Adj-SID Sub-TLV)
 Flags: 0x60
 MT ID: 0
 Weight: 0
 Label: 32849
# Enable debugging of OSPF hello packets.
<HUAWEI> debugging ospf packet hello
2010-10-21 23:56:22 VRPV8 %%01OSPFV2COMM/6/OSPF_DEBUG(d):CID=2156013447;
FileID: 0x13 Line: 832 Level: 0x5
  OSPFv2 1 SEND Packet, Interface: 
  Source Address: 10.1.1.2
  Destination Address: 10.0.0.5
  Ver# 2, Type: 1 (Hello)
  Length: 44, Router: 10.1.1.2
  Area: 0.0.0.1, Chksum: d375
  AuType: 1
  Key(ascii): * * * * * * * *
  Net Mask: 255.255.255.0
  Hello Int: 10, Option: _E_
  Rtr Priority: 1, Dead Int: 40
  DR: 10.1.1.2
  BDR: 0.0.0.0
  # Attached Neighbors: 0
Table 1 Description of the debugging ospf packet command output
Item Description
Type

OSPF packet type.

  • 1: hello packet.
  • 2: database description packet.
  • 3: connection status request packet.
  • 4: connection status update packet.
  • 5: connection status acknowledgment packet.
Source Address

Source address of packets.

Destination Address

Destination address of packets.

Net Mask

Mask of the related interface.

Hello Int

Interval of sending hello packets.

Rtr Priority

Priority of the source device.

Dead Int

Interval of neighbor disconnection.

Interface

Interface index.

Ver

OSPF version.

Length

Length of an OSPF protocol packet.

Router

ID of the source device.

Area

Area ID of a packet.

Chksum

Standard IP checksum of packet content.

AuType

Authentication type used for a packet.

Option

Option of the source device.

DR

Specified router in the network segment of the interface.

BDR

Specified backup router in the network segment of the interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >