<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alt Control IT &#187; WAN</title>
	<atom:link href="http://www.altcontrolit.com/tag/wan/feed" rel="self" type="application/rss+xml" />
	<link>http://www.altcontrolit.com</link>
	<description>IT Support - Computer Aided Design</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:30:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WAN Link Encapsulation Types</title>
		<link>http://www.altcontrolit.com/cisco/wan-link-encapsulation-types.html</link>
		<comments>http://www.altcontrolit.com/cisco/wan-link-encapsulation-types.html#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:54:40 +0000</pubDate>
		<dc:creator>James Gray</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Routers]]></category>
		<category><![CDATA[WAN]]></category>

		<guid isPermaLink="false">http://altcontrolit.com/?p=10</guid>
		<description><![CDATA[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 ...]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p><img class="size-full wp-image-9 alignnone" title="PPP Authenticaion CHAP" src="http://altcontrolit.com/wp-content/uploads/2009/09/PPP-Authenticaion-CHAP.jpg" alt="PPP Authenticaion CHAP" width="387" height="121" /></p>
<p>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.</p>
<p>You can see the encapsulation type set on a interface by running the following.</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">
<p>R1#show interfaces serial 0/0<br />
Serial0/0 is up, line protocol is up (connected)<br />
  Hardware is HD64570<br />
  Internet address is 172.16.1.1/24<br />
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255<br />
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)</p>
</div>
<p> 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.</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">R1(config-if)#encapsulation hdlc</div>
<p>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:</p>
<ul>
<li>Authentication through CHAP, PAP &amp; MS-CHAP</li>
<li>Compression</li>
<li>PPP Multilink (allows you to combine multiple physical channels into a single channel)</li>
<li>Support for error detection and error recovery features</li>
<li>Encapsulation for multiple protocols including IP, IPX and Appletalk</li>
<li>PPP Callback (allows dial-in users to call the router and then be called back)</li>
</ul>
<p>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.</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">R1(config-if)#encapsulation ppp</div>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">R2(config-if)#encapsulation ppp</div>
<p>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!)</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">
<p>R1(config)#username R2 password cisco</p>
</div>
<p>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.</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">
<p>R1(config-if)#ppp authentication chap</p>
</div>
<p>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.</p>
<p> You can configure more than one authentication type on an interface. This is done by typing the following in interface configuration mode</p>
<div id="codeSnippetWrapper" style="line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; width: 97.5%; font-family: 'Courier New', courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; cursor: text; border: silver 1px solid; padding: 4px;">
<p>R1(config-if)#ppp authentication chap pap</p>
</div>
<p>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.</p>
<p>The Packet Tracer file for this post is available for download below.</p>
<p><a href="http://altcontrolit.com/wp-content/uploads/2009/09/PPP-Authentication.pkt">PPP Authentication</a><a href="http://www.altcontrolit.com/file.axd?file=2009%2f8%2fPPP+Authentication.pkt"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.altcontrolit.com/cisco/wan-link-encapsulation-types.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
