<?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>My Scripts and Tips &#187; L2TP</title>
	<atom:link href="http://www.tipsandscripts.net/archives/category/networking/l2tp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tipsandscripts.net</link>
	<description>Various things I've found useful in my travels</description>
	<lastBuildDate>Mon, 09 Aug 2010 09:23:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Configuring L2TP Support on a Cisco ISR Router</title>
		<link>http://www.tipsandscripts.net/archives/7</link>
		<comments>http://www.tipsandscripts.net/archives/7#comments</comments>
		<pubDate>Sat, 01 Sep 2007 15:30:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[L2TP]]></category>
		<category><![CDATA[Router]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/archives/7</guid>
		<description><![CDATA[Instructions I consulted a number of sites on the Internet when I was attempting to configure L2TP on a Cisco router. I found many people with the same issues I had but no complete solution. In the end, my problem was that I needed an access list (see access-list 130 below). Below is an example [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold">Instructions</span><br />
I consulted a number of sites on the Internet when I was attempting to configure L2TP on a Cisco router. I found many people with the same issues I had but no complete solution. In the end, my problem was that I needed an access list (see access-list 130 below).</p>
<p>Below is an example of a working configuration on a Cisco 2801 router with IOS Version 12.4(13b), RELEASE SOFTWARE (fc3). Note that authentication uses PAP, in most cases you probably want to use a more secure form of authentication. The router this config snippet came from uses RADIUS to authenticate the user. This configuration works with certificates. The change needed to allow pre-shared keys is quite small. I might add it later when I can get access to a non production router.</p>
<p>I&#8217;m using Fastethernet 0/1 as the external interface with IP address 123.123.123.123. The DHCP pool is in the 192.168.100.0 subnet. The DNS server is 192.168.200.1. I&#8217;ve called the crypto map VPNMAP.</p>
<p><span style="line-height: 115%"></span><span style="font-size: 85%"><span style="font-family: courier new">vpdn enable</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">vpdn-group 1</span><br />
<span style="font-family: courier new">! Default L2TP VPDN group</span><br />
<span style="font-family: courier new"> accept-dialin</span><br />
<span style="font-family: courier new">  protocol l2tp</span><br />
<span style="font-family: courier new">  virtual-template 1</span><br />
<span style="font-family: courier new"> no l2tp tunnel authentication</span><br />
<span style="font-family: courier new"> ip mtu adjust</span></span></p>
<p><span style="font-family: courier new">crypto isakmp policy 20</span><br />
<span style="font-family: courier new"> encr 3des</span><br />
<span style="font-family: courier new"> hash sha</span><br />
<span style="font-family: courier new"> authentication pre-share</span><br />
<span style="font-family: courier new"> group 2</span></p>
<p><span style="font-family: courier new">crypto isakmp policy 30</span><br />
<span style="font-family: courier new"> encr 3des</span><br />
<span style="font-family: courier new"> hash md5</span><br />
<span style="font-family: courier new">group 2</span><br />
<span style="font-family: courier new">!</span></p>
<p><span style="font-family: courier new">crypto ipsec transform-set TRANSESP3DESMD5 esp-3des esp-md5-hmac</span><br />
<span style="font-family: courier new"> mode transport</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">crypto dynamic-map DYNMAP 1</span><br />
<span style="font-family: courier new"> set nat demux</span><br />
<span style="font-family: courier new"> set transform-set TRANSESP3DESMD5</span><br />
<span style="font-family: courier new"> match address 130</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">crypto map VPNMAP 65000 ipsec-isakmp dynamic DYNMAP</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">interface Virtual-Template1</span><br />
<span style="font-family: courier new"> ip unnumbered FastEthernet0/1</span><br />
<span style="font-family: courier new"> ip mroute-cache</span><br />
<span style="font-family: courier new"> peer default ip address pool VPN_CLIENT_POOL </span><br />
<span style="font-family: courier new"> ppp authentication pap</span><br />
<span style="font-family: courier new"> ppp ipcp dns 192.168.200.1</span><span style="font-size: 85%"><span style="font-family: courier new"></span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">ip local pool VPN_CLIENT_POOL 192.168.100.1 192.168.100.99</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">access-list 130 remark Allow L2TP access</span><br />
<span style="font-family: courier new">access-list 130 permit udp host 123.123.123.123 eq 1701 any</span><br />
<span style="font-family: courier new">!</span><br />
<span style="font-family: courier new">interface FastEthernet0/1</span><br />
<span style="font-family: courier new">crypto map VPNMAP</span></span></p>
<p>I don&#8217;t think the &#8220;authentication pre-shared&#8221; is needed. I might remove it later when I have a chance to test it. The ISR seems to allow certificate authentication by default. Note that in my testing I found that the ISR would support both shared key and certificate authentication at the same time.</p>
<p>The router concerned also has a L2L (LAN to LAN) IPSec VPN tunnel configured. I might post the entire config at some later stage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
