debugging ip packet

Function

The debugging ip packet command enables the debugging of IP packets.

The undo debugging ip packet command disables the debugging of IP packets.

By default, the debugging of IP packets is disabled.

Format

debugging ip packet [ error ] [ min-length min-length-value ] [ max-length max-length-value ] [ source src-address ] [ destination dest-address ] [ interface { interface-name | interface-type interface-num } ] [ verbose [ verbose-length ] ] [ number packet-number ]

undo debugging ip packet

Parameters

Parameter Description Value
error

Displays information about IP error packets.

-

min-length min-length-value

Specifies the minimum length of IP packets.

The value is an integer ranging from 1 to 65535.

max-length max-length-value

Specifies the maximum length of IP packets.

The value is an integer ranging from 1 to 65535.

source src-address

Specifies the source IP address of a specified IP packet.

The value is in dotted decimal notation.

destination dest-address

Specifies the destination address of a specified IP packet.

The value is in dotted decimal notation.

interface interface-type interface-num

Specifies the type and number of an interface.

-

verbose verbose-length

Displays the length of detailed information about IP packets.

If the actual packet length is greater than the specified length, the specified length is displayed. If the actual packet length is smaller than the specified length, the actual packet length is displayed.

The value is an integer ranging from 1 to 64, in bytes. The default value is 20.

number packet-number

Specifies the number of debugged IP packets.

The value is an integer ranging from 1 to 65535. The default value is 10.

packet

Indicates IP packets.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ip-stack debug

Usage Guidelines

Usage Scenario

To locate problems that occur during IP packet processing, you can run the debugging ip packet command to query debugging information about IP packets.

Example

# Enable the debugging of IP packets, and the following debugging information is displayed.
<HUAWEI> debugging ip packet
2011-08-12 07:16:41 HUAWEI %%01PP4/7/ip_packet(d):CID=6694683;Receiving, ifIndex = 4, vrf = 0, eventId = 0, flag = 0x200, version = 4, headlen = 5, tos = 0, pktlen = 0x4e, pktid = 0xe1b7, offset = 0x0, ttl = 128, protocol = 17, checksum = 0xca, s = 172.16.255.254, d = 172.16.255.255
2011-08-12 07:16:41 HUAWEI %%01PP4/7/ip_packet(d):CID=6694683;Discarding, Reason = Drop packet for ICMP security(1073), ifIndex = 4, vrf = 0, eventId = 0, flag = 0x100200, version = 4, headlen = 5, tos = 0, pktlen = 0x4e00, pktid = 0xe1b7, offset = 0x0, ttl = 128, protocol = 17, checksum = 0xca, s = 172.16.255.254, d = 172.16.255.255
2011-08-12 07:16:42 HUAWEI %%01PP4/7/ip_packet(d):CID=6694683;Receiving, ifIndex = 4, vrf = 0, eventId = 0, flag = 0x200, version = 4, headlen = 5, tos = 0, pktlen = 0x4e, pktid = 0xe1b8, offset = 0x0, ttl = 128, protocol = 17, checksum = 0xc9, s = 172.16.255.254, d = 172.16.255.255
Table 1 Description of the debugging ip packet command output
Item Description
ifIndex

Interface index.

vrf

VPN ID.

eventId

Event ID.

flag

Flag.

version

Version number.

headlen

Packet header length.

tos

Type of Service (ToS).

pktlen

Packet length.

pktid

Packet identification.

offset

Fragment offset value.

ttl

Time To Live (TTL).

protocol

Protocol number.

checksum

Checksum.

s

Source IP address.

d

Destination IP address.

ip_packet(d)

IP packets.

CID

CID of the current output information.

Receiving

Received packets.

Discarding

Discarded packets.

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