HP Comware 5 Debug Manual Vol 2

GRE debugging commands
debugging gre
Use debugging gre to enable GRE debugging.
Use undo debugging gre to disable GRE debugging.
Syntax
debugging gre { all | error | packet }
undo debugging gre { all | error | packet }
Default
GRE debugging is disabled.
Views
User view
Default command level
1: Monitor level
Parameters
all: All types of GRE debugging.
error: GRE error debugging.
error: GRE packet debugging.
Examples
On single-core devices:
# On two devices, enable IPv6 globally, create a GRE tunnel between the two devices, and
configure parameters to make the tunnel go up. Enable debugging for GRE packets on the local
device. Ping the tunnel destination address.
<Sysname> debugging gre packet
<Sysname> ping ipv6 -c 1 111::2
PING 111::2 : 56 data bytes, press CTRL_C to break
*May 15 15:29:06:194 2007 Sysname GRE/7/debug:
Tunnel0 packet: Before encapsulation,
Incoming packet header 0111::0001->0111::0002(length = 104)
// Before a packet is encapsulated on the interface Tunnel0, the source and destination addresses
of the packet are 0111::0001 and 0111::0002 respectively, and the packet length is 104.
*May 15 15:29:06:194 2007 Sysname GRE/7/debug:
Tunnel0 packet:After encapsulation,
Outgoing packet header 1.1.1.1->1.1.1.2(length = 128)
// After encapsulation, the source and destination addresses of a packet are 1.1.1.1 and 1.1.1.2
respectively, and the packet length is 128.
*May 15 15:29:06:194 2007 Sysname GRE/7/debug:
Tunnel0 packet: GRE physical transmit a packet(len = 128, protocol = 0x86dd).
86