How to configure HDLC on Cisco IOS Router

There is not much to tell you about HDLC. It’s a point-to-point protocol and it’s the default for serial interfaces on Cisco routers. HDLC is a standard but running HDLC between routers from different vendors is not going to work. Keep this in mind. Every vendor has a proprietary field in their HDLC implementation which is what makes it incompatible between vendors. Let me show you how to configure it:

wan two routers serial link

I’m using two routers connected to each other with a serial link. First we will configure the clock rate on the router that has the DCE side of the cable:

R2(config)#interface serial 0/0
R2(config-if)#clock rate 64000

The clock rate will set the speed. For my example it doesn’t matter much what clock speed we use. We can use a command to verify that the DTE router has received the clock rate:

R1#show controllers serial 0/0
Hardware is PowerQUICC MPC860
DTE V.35 TX and RX clocks detected
Idb at 0x81081AC4, driver data structure at 0x 81084AC0

In the example above R1 is the DTE side and it has received a clock rate. Show controllers is a useful command when you don’t have physical access to your hardware so you don’t know which side of the cable is DTE or DCE.

Let’s configure the IP addresses:

R1(config)#interface serial 0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R2(config)#interface serial 0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.12.2 255.255.255.0

Nothing special so far, just two serial interfaces in the same subnet.

We can verify that it’s using HDLC:

R1#show interfaces serial 0/0
Serial0/0 is up, line protocol is up 
  Hardware is M4T
  Internet address is 192.168.12.1/24
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, crc 16, loopback not set
R2#show interfaces serial 0/0
Serial0/0 is up, line protocol is up 
  Hardware is M4T
  Internet address is 192.168.12.2/24
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, crc 16, loopback not set

Use the show interfaces command to check the encapsulation type. You can see it says HDLC on both sides. Let’s test connectivity with a quick ping:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 735 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)

512 Sign Ups in the last 30 days

satisfaction-guaranteed
100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Tags:


Forum Replies

  1. Hi Rene,

    Is HDLC encapsulation only for serial interfaces ? I have seen it on Ethernet interface as well

  2. Hello Aniket

    HDLC is an encapsulation method that provides layer 2 functionality almost exclusively for point to point connections. Point to multipoint connections are also possible but are rarely used. Ethernet on the other hand is a layer 2 technology based on a multiple access philosophy. These are two very different and incompatible technologies, both of which operate at layer 2, so HDLC cannot operate on an Ethernet interface.

    Do you have an example of what you have seen concerning HDLC and Ethernet? Maybe that will help to clarify the confusion. If y

    ... Continue reading in our forum

  3. Hi Lazaros,

    I found myself in the CCNA Routing & Switching ICND2 200-105 for what I am guessing is the old CCNA, but it was puzzling because it looks like it went into OSPFv3, EIGRP (in great depth) and also BGP. Are we supposed to also know that content for the new CCNA cert and if so why isn’t it in the new course for CCNA 201-300?

  4. Hello Daniel

    The content that is covered in the CCNA 201-300 can be found on the following course page:

    https://networklessons.com/cisco/ccna-200-301

    You may find that some of these lessons are also under the older ICND1 and ICND2 course pages and categories because the content was in those courses as well. However, the official topics are found in the course site I sent above.

    To see the official list of covered material, take a look at Cisco’s official list at the following link:
    https://learningnetwork.cisco.com/s/ccna-exam-topics
    You will see that this ali

    ... Continue reading in our forum

  5. Thank you Lazaros! I only asked because I have heard some people take the test and say there was some EIGRP or other periphery references so I just wanted to make sure

4 more replies! Ask a question or join the discussion by visiting our Community Forum