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.
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. |
- |
<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
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. |