HDLC configuration command directory
Show the
packet sending and receiving process of HDLCprotocol. Use command “no debug
hdlc” to stop showing information.
[no]
debug hdlc [packet | error]
interface |
To show the interface of HDLC
debug information |
packet |
Enable the debug switch of HDLC
sending/receiving packet |
error |
Enable the debug switch of HDLC
error information |
supervisor
mode
After
turning on HDLC debug information switch, outputs HDLC receiving/sending packet
and error information, helps the user in HDLC trouble diagnosis.
The
following example describes the situation when debugging HDLC receiving/sending
packet:
Router#debug hdlc packet
s1/2
Router#
Serial1/2 HDLC RX <-
packet, len=64
0F 00 08 00 45 00 00 3C BE
4A 00 00 7F 01 B2 BD
....E..<.J......
C0 A8 00 10 0A 00 00 01 08
00 19 5C 02 00 32 00
...........\..2.
61 62 63 64 65 66 67 68 69
6A 6B 6C 6D 6E 6F 70
abcdefghijklmnop
71 72 73 74 75 76 77 61 62
63 64 65 66 67 68 69
qrstuvwabcdefghi
8F 00 80 35 00 00 00 02 00
00 00 33 00 00 00 C7
...5.......3....
FF FF 00 00 0B DE
......
|
Description |
HDLC |
HDLCprotocol is currently debugged |
Serial0/2 |
Current debug interface |
RX <- packet |
IP packet HDLC received |
len=64 |
Length of packet received |
0F 00 08 00 45 00 00 3C BE 4A 00
00 7F 01 B2 BD C0 A8 00 10 0A 00 00 01 08 00 19
5C 02 00 32 00 61 62 63 64 65 66 67 68 69 6A 6B
6C 6D 6E 6F 70 71 72 73 74 75 76 77 61 62 63 64
65 66 67 68 69 |
The first 4 bytes are HDLC frame
head, the rest are data |
....E..<.J...... ...........\..2. abcdefghijklmnop qrstuvwabcdefghi |
ASCII code
denotation of sent packet. Those out of the denotation range
of ASCII code are shown in “.” |
RX <- link check frame |
HDLC receives link check frame |
len=22 |
Length of link check frame |
8F 00 80 35 00 00 00 02 00 00 00
33 00 00 00 C7 FF FF 00 00 0B DE |
Hex system denotation of link
check frame |
...5.......3.... ...... |
ASCII code
denotation of link check frame. Those out of the denotation range
of ASCII code are shown in “.” |
HDLC Serial0/2: TX ->
packet, len=88
0F 00 08 00 45 00 00 54 00
07 00 00 FF 01 A7 9F
....E..T........
0A 00 00 01 0A 00 00 02 08
00 00 03 00 0A 00 00
................
00 01 02 E3 04 05 06 07 08
09 0A 0B 0C 0D 0E 0F
................
10 11 12 13 14 15 16 17 18
19 1A 1B 1C 1D 1E 1F ................
8F 00 80 35 00 00 00 02 00
00 01 15 00 00 00 42
...5...........B
FF FF 30 2E 33 B9 53
01
..0.3.S.
|
Description |
HDLC |
HDLCprotocl is currently debugged |
Serial1/2 |
Current debug interface |
TX -> packet |
HDLC is sending IP packet |
len=88 |
Length of sent packet |
0F 00 08 00 45 00 00 54 00 07 00
00 FF 01 A7 9F 0A 00 00 01 0A 00 00 02 08 00 00
03 00 0A 00 00 00 01 02 E3 04 05 06 07 08 09 0A
0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A
1B 1C 1D 1E 1F |
First 4 bytes are HDLC frame head,
rest are data |
....E..T....... ................ ................ ................ |
ASCII code
denotation of sent packet. Those out of the denotation range
of ASCII code are shown in “.” |
TX -> link check frame |
HDLC is sending link check frame |
len=24 |
Length of the link check frame |
8F 00 80 35 00 00 00 02 00 00 01
15 00 00 00 42 FF FF 30 2E 33 B9 53 01 |
Hex system denotation of link
check frame |
...5...........B ..0.3.S. |
ASCII code
denotation of link check frame. Those out of the denotation range
of ASCII code are shown in “.” |
Encapsulate
HDLC on the interface. No to cancel the encapsulation.
encapsulation
hdlc
no
encapsulation hdlc
none
none
Interface
configuration mode
Use “no” to
cancel the encapsulation, yet return to the encapsulated HDLC mode.
The
following example configures HDLC encapsulation mode on serial s1/1:
interface
s1/1
encapsulation
hdlc