Cisco

Cisco systems are the leading supplier of networking equipment and network management for the internet. This category contains articles relating to ICND1 & ICND2 and CCNA qualifications and includes common IOS commands.

Bentley

This category contains articles relating to Microstation V8i. Bentley MicroStation V8i helps engineers, architects, GIS professionals, constructors, and owner-operators by promoting collaborative, streamlined workflows among multiple disciplines and across project teams.

Microsoft

The articles in this category cover Microsoft Windows Server, Exchange, and Windows 7 operating system platforms and products. The articles cover some of the topics on the MCSE, MCSA, MCITP and MCTS qualifications and discuss some of the new features in Windows Server 2008.

Autodesk

Autodesk are one of the market leaders for design software. This category contains articles relating to AutoCAD & Revit design software. AutoCAD is one of the world’s leading 2D and 3D CAD tools and is used extensively throughout a range of industries.

VMWare

VMware is the leading business virtualization infrastructure provider, offering the most trusted and reliable platform for building private clouds and federating to public clouds. This category includes articles relating to products such as VMWare Workstation, Server, ACE, ThinApp & ESXi.

Home » Cisco

WAN Link Encapsulation Types

Submitted by James Gray on September 27, 2009 – 1:54 pmNo Comment

When configuring a point to point WAN link you have two types of encapsulation that can be configured. The first is HDLC the second is PPP these encapsulations do not run on LAN’s so you wont be configuring them on Ethernet interfaces.

PPP Authenticaion CHAP

The default encapsulation type on Serial interfaces is HDLC, PPP generally provides you with more options which will be discussed below. The Packet Tracer save file is also available at the bottom of this post.

You can see the encapsulation type set on a interface by running the following.

R1#show interfaces serial 0/0
Serial0/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 172.16.1.1/24
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)

 This version of HDLC is Cisco proprietary and only Cisco routers run this encapsulation, the encapsulation type must match on each end of the point to point link. To set encapsulation on an interface go to interface configuration mode and run the following command.

R1(config-if)#encapsulation hdlc

Other vendors routers tend to run PPP and this is the more generally configured encapsulation type. PPP also offers more features than HDLC such as:

  • Authentication through CHAP, PAP & MS-CHAP
  • Compression
  • PPP Multilink (allows you to combine multiple physical channels into a single channel)
  • Support for error detection and error recovery features
  • Encapsulation for multiple protocols including IP, IPX and Appletalk
  • PPP Callback (allows dial-in users to call the router and then be called back)

To configure PPP on a serial interface set the encapsulation type to PPP by using the following command in interface configuration mode on each router.

R1(config-if)#encapsulation ppp
R2(config-if)#encapsulation ppp

To configure PPP to use PAP and CHAP you need to configure a username and password using the router database to configure this run the following command in global configuration mode on R1 (the password can be anything you like BUT MUST MATCH AND BE THE SAME CASE ON EACH ROUTER!)

R1(config)#username R2 password cisco

Now we need to configure the authentication to be used on the interface i.e. CHAP, PAP or MS-CHAP to do this go to interface configuration mode and type the following.

R1(config-if)#ppp authentication chap

The line protocol will go down because we are now using CHAP authentication on R1 s0/0 and not on R2 s0/0 so we have to go to R2 and run the command above on the interface.

 You can configure more than one authentication type on an interface. This is done by typing the following in interface configuration mode

R1(config-if)#ppp authentication chap pap

This means that CHAP will be tried as the authentication protocol first then PAP. Remember that when using PAP the username and password is sent in clear text so it is not as secure as CHAP which hashes this information.

The Packet Tracer file for this post is available for download below.

PPP Authentication