<?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; Networking</title>
	<atom:link href="http://www.tipsandscripts.net/archives/category/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tipsandscripts.net</link>
	<description>Various things I&#039;ve found useful in my travels</description>
	<lastBuildDate>Mon, 22 Aug 2011 07:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to stop a Cisco ASA from replying to ICMP traffic from outside</title>
		<link>http://www.tipsandscripts.net/archives/113</link>
		<comments>http://www.tipsandscripts.net/archives/113#comments</comments>
		<pubDate>Mon, 22 Aug 2011 07:28:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=113</guid>
		<description><![CDATA[Use the following command: icmp deny any outside]]></description>
			<content:encoded><![CDATA[<p>Use the following command:</p>
<p><code>icmp deny any outside</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/113/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem With Bonding and Packet Loss on Red Hat Enterprise Linux 3</title>
		<link>http://www.tipsandscripts.net/archives/106</link>
		<comments>http://www.tipsandscripts.net/archives/106#comments</comments>
		<pubDate>Tue, 01 Mar 2011 05:03:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux and Unix]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=106</guid>
		<description><![CDATA[We moved a blade server running Red Hat Enterprise Linux 3 from one enclosure to another. The old enclosure had Nortel switches, the new enclosure had Cisco switches. After moving the server we noticed connectivity problems. Looking at the switches it appeared that the server&#8217;s MAC address was moving between the different switches. There were [...]]]></description>
			<content:encoded><![CDATA[<p>We moved a blade server running Red Hat Enterprise Linux 3 from one enclosure to another. The old enclosure had Nortel switches, the new enclosure had Cisco switches. After moving the server we noticed connectivity problems. Looking at the switches it appeared that the server&#8217;s MAC address was moving between the different switches. There were no errors on any of the interfaces. The server was configured for bonding with active-backup (mode 1). The relevant entries in /etc/ modules.conf read:<br />
<pre><code>
alias bond0 bonding mode=1 miimon=100 primary=eth0
</code></pre><br />
Checking /proc/net/bonding/bond0 showed that it was actually using round robin mode (and that there had note been any link failures):<br />
<pre><code>
Bonding Mode: load balancing (round-robin)
</code></pre></p>
<p>In the end it seems to have been an issue with the entry in /etc/modules.conf. We changed it to:<br />
<pre><code>
alias bond0 bonding
options bond0 mode=1 miimon=100 primary=eth0
</code></pre></p>
<p>then restarted and that seems to have fixed the problem:<br />
<pre><code>
$ grep &quot;Bonding Mode:&quot; bond0
Bonding Mode: fault-tolerance (active-backup)
</code></pre></p>
<p>I&#8217;m not sure why it used to work fine before.</p>
<p>I also came across this <a href="http://www.experts-exchange.com/Networking/Linux_Networking/Q_24599062.html">http://www.experts-exchange.com/Networking/Linux_Networking/Q_24599062.html</a> (hint to read this link, search for the URL in Google). It seems that the guy posting here had similar syntax and the same problem. If someone has access to Experts Exchange perhaps they can earn themselves some points by answering the question.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/106/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow Upload Performance</title>
		<link>http://www.tipsandscripts.net/archives/101</link>
		<comments>http://www.tipsandscripts.net/archives/101#comments</comments>
		<pubDate>Wed, 19 Jan 2011 05:02:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=101</guid>
		<description><![CDATA[We were having issues where some PCs had slow upload performance over the WAN. The WAN link was a E3 (34Mbps) with round trip latency of around 50ms and was not congested. When uploading to SharePoint, some PCs would upload at between 150 and 250 KBps. Otherwise identical PCs would upload at over 1MBps. The [...]]]></description>
			<content:encoded><![CDATA[<p>We were having issues where some PCs had slow upload performance over the WAN. The WAN link was a E3 (34Mbps) with round trip latency of around 50ms and was not congested. When uploading to SharePoint, some PCs would upload at between 150 and 250 KBps. Otherwise identical PCs would upload at over 1MBps. The PCs were running the same physical hardware, the same Operating Systems (Windows XP, although we later reproduced the issue with Windows 7), the same patches and the same drivers. We also confirmed that they had the same TCP settings in HKLM\SYSTEM\CurrentControlSet\Services\TCPIP.</p>
<p>A comparison of packet captures was interesting. The graphic below shows two uploads.</p>
<div id="attachment_102" class="wp-caption aligncenter" style="width: 300px"><a href="http://www.tipsandscripts.net/wp-content/uploads/2011/01/capt-compare.png"><img class="size-medium wp-image-102" title="Comparison of two TCP flows" src="http://www.tipsandscripts.net/wp-content/uploads/2011/01/capt-compare-290x300.png" alt="Comparison of two TCP flows" width="290" height="300" /></a><p class="wp-caption-text">Comparison of two TCP flows</p></div>
<p>The one on the left is of a slow upload between host &#8220;Client&#8221; and the SharePoint server &#8220;Server&#8221;. The one on the right is of a fast upload between host &#8220;Client2&#8243; and the SharePoint server &#8220;Server&#8221;. Both are actually Flow Graphs from <a href="http://www.wireshark.org/">Wireshark</a>. Notice that the one on the left pauses after 60ms (0.060 seconds) and waits for an ACK from Server. However, the one on the right continues on. Yet the TCP Window sizes are identical in both flows.</p>
<p>In the end we discovered another parameter in Windows. AFD.SYS is used to support Windows sockets applications. Registry parameters for ADF.SYS are found in HKLM\SYSTEM\CurrentControlSet\Services\AFD\Parameters. The one that&#8217;s relevant is DefaultSendWindow. On the slow machines this parameter was not set and so used the default (decimal 8192 it seems). On the fast PC this was set to decimal 64512 (hex fc00).</p>
<p>Changing this value on the PCs with slow upload speed and then rebooting seems to have fixed the problem.</p>
<p>For more information on this parameter see <a href="http://saltwetbytes.wordpress.com/2008/05/20/network-the-relationship-between-tcpwindowsize-and-defaultreceivewindow/">Network: The relationship between TCPWindowSize and DefaultReceiveWindow</a>.</p>
<p>So, why was this value different between PCs. It seems that when you install the Citrix MetaFrame Client the installer automatically increases this value. The fast PCs all had the MetaFrame Client installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/101/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flexible NetFlow through an IPSec VPN Tunnel</title>
		<link>http://www.tipsandscripts.net/archives/95</link>
		<comments>http://www.tipsandscripts.net/archives/95#comments</comments>
		<pubDate>Mon, 09 Aug 2010 09:15:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[IPSec]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=95</guid>
		<description><![CDATA[As of IOS 12.4(20)T Cisco routers can send NetFlow data through an IPSec VPN tunnel. The flow exporter just needs to be configured with the output-features option. According to Configuring Data Export for Cisco IOS Flexible NetFlow with Flow Exporters this option &#8220;Enables sending export packets using QoS and encryption&#8221;. For example: flow exporter NFSVR [...]]]></description>
			<content:encoded><![CDATA[<p>As of IOS 12.4(20)T Cisco routers can send NetFlow data through an IPSec VPN tunnel. The flow exporter just needs to be configured with the output-features option. According to <a href="http://www.cisco.com/en/US/docs/ios/fnetflow/configuration/guide/cfg_de_fnflow_exprts.html">Configuring Data Export for Cisco IOS Flexible NetFlow with Flow Exporters</a> this option &#8220;Enables sending export packets using QoS and encryption&#8221;.</p>
<p>For example:</p>
<p><pre><code>flow exporter NFSVR
 destination 10.1.1.1
 source Vlan1
 output-features
 transport udp 9996
!
!
flow monitor flow-monitor
 record netflow-original
 exporter NFSVR
 cache timeout active 1
</code></pre></p>
<p>However, although the output-features command appears to be available on earlier versions of IOS, it doesn&#8217;t seem to have been implemented. You can type the command without error, but it never makes it into the config. So, if you&#8217;re trying to get this working, and it&#8217;s not, I suggest checking your IOS version. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/95/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poor Voice Quality, Inbound Calls Work, Outbound Calls Don&#8217;t on BRI</title>
		<link>http://www.tipsandscripts.net/archives/93</link>
		<comments>http://www.tipsandscripts.net/archives/93#comments</comments>
		<pubDate>Mon, 09 Aug 2010 08:55:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=93</guid>
		<description><![CDATA[I had an issue the other day when we replaced an ISDN PRI interface with a BRI. I reconfigured the voice gateway and had inbound calls working &#8211; albeit a fair bit of static. However, I could not get outbound calls to go via the BRI interface. I had debugging on for isdn q931 and [...]]]></description>
			<content:encoded><![CDATA[<p>I had an issue the other day when we replaced an ISDN PRI interface with a BRI. I reconfigured the voice gateway and had inbound calls working &#8211; albeit a fair bit of static. However, I could not get outbound calls to go via the BRI interface. I had debugging on for isdn q931 and voip ccapi inout and was seeing entries similar to:</p>
<p><pre><code>Aug&nbsp;&nbsp;5 07:51:08.643: ISDN BR0/1/0 Q931: RX &lt;- RELEASE_COMP pd = 8&nbsp;&nbsp;callref = 0x84
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cause i = 0x82E404 - Invalid information element contents
Aug&nbsp;&nbsp;5 07:51:08.643: //21/8043BD33BC09/CCAPI/cc_api_call_disconnected:
&nbsp;&nbsp; Cause Value=100, Interface=0x4900DFC0, Call Id=21
Aug&nbsp;&nbsp;5 07:51:08.643: //21/8043BD33BC09/CCAPI/cc_api_call_disconnected:
&nbsp;&nbsp; Call Entry(Responsed=TRUE, Cause Value=100, Retry Count=0)
Aug&nbsp;&nbsp;5 07:51:08.643: //20/xxxxxxxxxxxx/CCAPI/ccCallReleaseResources:
&nbsp;&nbsp; release reserved xcoding resource.
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/ccCallSetAAA_Accounting:
&nbsp;&nbsp; Accounting=0, Call Id=21
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/ccCallDisconnect:
&nbsp;&nbsp; Cause Value=100, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=100)
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/ccCallDisconnect:
&nbsp;&nbsp; Cause Value=100, Call Entry(Responsed=TRUE, Cause Value=100)
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/cc_api_get_transfer_info:
&nbsp;&nbsp; Transfer Number Is Null
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/cc_api_call_disconnect_done:
&nbsp;&nbsp; Disposition=0, Interface=0x4900DFC0, Tag=0x0, Call Id=21,
&nbsp;&nbsp; Call Entry(Disconnect Cause=100, Voice Class Cause Code=0, Retry Count=0)
Aug&nbsp;&nbsp;5 07:51:08.647: //21/8043BD33BC09/CCAPI/cc_api_call_disconnect_done:
&nbsp;&nbsp; Call Disconnect Event Sent
Aug&nbsp;&nbsp;5 07:51:08.647: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
</code></pre></p>
<p>In the end it turns out I was missing the configuration command <em>compand-type a-law</em></p>
<p><pre><code>
voice-port 0/1/0
 translation-profile incoming pstn-incoming
 translation-profile outgoing pstn-outgoing
 compand-type a-law
 cptone AU
</code></pre></p>
<p>Note this is for a router in Australia &#8211; other countries might be different.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/93/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different MTU Settings on a Cisco 877 Router</title>
		<link>http://www.tipsandscripts.net/archives/85</link>
		<comments>http://www.tipsandscripts.net/archives/85#comments</comments>
		<pubDate>Tue, 20 Apr 2010 09:50:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[Router]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=85</guid>
		<description><![CDATA[I have a remote site on an ADSL connection using a Cisco 877 router. There&#8217;s an IPSec VPN back to my location. They connection speed is very good: Download Speed (kbps): 23410 Upload Speed (kbps): 1017 The ADSL router was configured with pretty typical MTU and MSS settings (probably copied off the Internet): interface Vlan1 [...]]]></description>
			<content:encoded><![CDATA[<p>I have a remote site on an ADSL connection using a Cisco 877 router. There&#8217;s an IPSec VPN back to my location. They connection speed is very good:</p>
<p>Download Speed (kbps): 23410<br />
Upload Speed (kbps): 1017</p>
<p>The ADSL router was configured with pretty typical MTU and MSS settings (probably copied off the Internet):</p>
<p><pre><code>interface Vlan1
ip mtu 1452
ip flow ingress
ip tcp adjust-mss 1452

interface Dialer0
ip mtu 1452</code></pre></p>
<p>The remote site has a VMware ESXi server. I couldn&#8217;t remotely connect to the ESXi server using the vSphere client. I could connect using ssh. However, if I tried running any command with a reasonable size output (e.g. ps) the session would hang and then time out. I could connect to a remote server using RDP, but it was very slow to connect (once connected the RDP session was fine).</p>
<p>I had no problems connecting to the ESXi server from the VMware session.</p>
<p>I tried running an FTP on the remote server and copying a file to my location with the following result:<br />
<code>ftp: 149504 bytes sent in 28.89Seconds 5.17Kbytes/sec.</code></p>
<p>That&#8217;s pretty slow for a connection with almost 1Mbps upload speed.</p>
<p>So, I started playing around with MTU and MSS (in the following tests MSS was either set to the same value as MTU or 40 bytes less):<br />
<strong>mtu 1200</strong><br />
<code>ftp: 149504 bytes sent in 1.58Seconds 94.74Kbytes/sec.</code></p>
<p><strong>mtu 1300</strong><br />
<code>ftp: 149504 bytes sent in 2.84Seconds 52.62Kbytes/sec.</code></p>
<p>I finally settled on the following:</p>
<p><pre><code>interface Vlan1
ip mtu 1242
ip flow ingress
ip tcp adjust-mss 1200

interface Dialer0
ip mtu 1452</code></pre></p>
<p>94Kbytes/sec is pretty reasonable for a 1Mb link with round trip latency of around 83ms.</p>
<p>Then I started wondering if my ACL was blocking Path MTU Discovery. So, I added the following to the inbound ACL on the 877 (as per <a href="http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800d6979.shtml" target="_blank">http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800d6979.shtml</a>) and changed the MTU values back to original:</p>
<p><pre><code>permit icmp any any unreachable
permit icmp any any time-exceeded</code></pre></p>
<p>However, there were no hits and it didn&#8217;t seem to help at all:<br />
<code>ftp: 149504 bytes sent in 28.73Seconds 5.20Kbytes/sec.</code></p>
<p>Then after reading a bit more I wondered what would happen if I took all the MTU and MSS settings off:<br />
<code>ftp: 149504 bytes sent in 3.05Seconds 49.08Kbytes/sec.</code></p>
<p>Hmm. Much better than the original settings, although not as good as MTU 1200. Perhaps the link might be under a bit of load, let&#8217;s try again:<br />
<code>ftp: 149504 bytes sent in 1.52Seconds 98.68Kbytes/sec.</code></p>
<p>And a third time:<br />
<code>ftp: 149504 bytes sent in 1.52Seconds 98.68Kbytes/sec.</code></p>
<p>So I tried a fourth and fifth time (both had the same result):<br />
<code>ftp: 149504 bytes sent in 1.50Seconds 99.67Kbytes/sec.</code></p>
<p>So, I thought, maybe the router or computer is remembering the session and MTU (if it&#8217;s doing MTU discovery). So I disconnected the FTP sessions and reconnected:<br />
<code>ftp: 149504 bytes sent in 1.50Seconds 99.74Kbytes/sec.</code></p>
<p>Amazing. So the tip? Perhaps the best way to handle MTU is to not worry about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DynDNS and Cisco 877 Router</title>
		<link>http://www.tipsandscripts.net/archives/56</link>
		<comments>http://www.tipsandscripts.net/archives/56#comments</comments>
		<pubDate>Sun, 06 Dec 2009 13:54:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=56</guid>
		<description><![CDATA[I had a couple of issues getting DynDNS working on a Cisco router. The first issue was: how do I type a question mark within an IOS configuration command? Normally, when you type ? IOS responds with its command help. This is obviously a problem when you&#8217;re trying to enter a URL that contains a [...]]]></description>
			<content:encoded><![CDATA[<p>I had a couple of issues getting <a href="http://www.dyndns.com/" target="_blank">DynDNS</a> working on a Cisco router. The first issue was: how do I type a question mark within an IOS configuration command? Normally, when you type ? IOS responds with its command help. This is obviously a problem when you&#8217;re trying to enter a URL that contains a question mark. The fix, hit Control-v before typing the question mark. Just like Unix.</p>
<p>The second issue I had was with the router not registering with DynDns. Specifying <em>debug ip ddns update</em> showed the following:<br />
<pre><code>Dec&nbsp;&nbsp;6 10:03:00.988: HTTPDNSUPD: Sending request
Dec&nbsp;&nbsp;6 10:03:20.996: HTTPDNSUPD: Call returned Connection time out, update of yourhost.dyndns.net &lt;=&gt; 123.123.123.123 failed</code></pre></p>
<p>It turns out the second issue was with CBAC. I had to add an inspect entry to my router configuration:<br />
<code>ip inspect name CBAC-OUT tcp router-traffic</code></p>
<p>The relevant parts of my configuration are below:<br />
<pre><code>ip inspect name CBAC-OUT tcp router-traffic
ip ddns update method DYNDNS
 HTTP
&nbsp;&nbsp;add http://username:password@members.dyndns.org/nic/update?system=dyndns&amp;hostname=&lt;h&gt;&amp;myip=&lt;a&gt;
 interval maximum 28 0 0 0
 interval minimum 28 0 0 0

interface Dialer0
 ip ddns update hostname putyourdnsnamehere
 ip ddns update DYNDNS host members.dyndns.org
 ip address negotiated
 ip access-group DIALER0_IN-3 in
 ip inspect CBAC-OUT out

ip access-list extended DIALER0_IN-3
 permit icmp any any echo-reply
 permit icmp any any ttl-exceeded
 permit icmp any any time-exceeded
 permit icmp any any packet-too-big
 denyÂ Â  ip any any</code></pre></p>
<p>Thanks to <a href="http://forums.whirlpool.net.au/forum-replies-archive.cfm/1204781.html" target="_blank">this thread at Whirlpool</a> for helping me resolve this problem. For more on the ip inspect tcp router-traffic see <a href="http://blog.ioshints.info/2007/06/inspect-router-generated-traffic.html" target="_blank">Inspect router-generated traffic</a> and it&#8217;s update <a href="http://blog.ioshints.info/2007/07/update-inspect-router-generated-traffic.html" target="_blank">Update: Inspect router-generated traffic</a>. For information on CBAC try the following links:<br />
<a href="http://www.ciscopress.com/articles/article.asp?p=26533" target="_blank">http://www.ciscopress.com/articles/article.asp?p=26533</a><br />
<a href="http://www.dslreports.com/faq/13435" target="_blank">http://www.dslreports.com/faq/13435</a><br />
<a href="http://www.cisco-tips.com/how-to-configure-cisco-router-with-ios-firewall-functionality-%E2%80%93-cbac/" target="_blank">http://www.cisco-tips.com/how-to-configure-cisco-router-with-ios-firewall-functionality-%E2%80%93-cbac/</a><br />
<a href="http://articles.techrepublic.com.com/5100-10878_11-1057051.html" target="_blank">http://articles.techrepublic.com.com/5100-10878_11-1057051.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/56/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My mnemonic for the seven layer OSI model</title>
		<link>http://www.tipsandscripts.net/archives/11</link>
		<comments>http://www.tipsandscripts.net/archives/11#comments</comments>
		<pubDate>Mon, 08 Oct 2007 15:17:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/archives/11</guid>
		<description><![CDATA[All Application People Presentation Should Session Taste Transport Nobby&#8217;s Network Delicious Data Link Peanuts Physical]]></description>
			<content:encoded><![CDATA[<p>
<center></p>
<table border="0" cellpadding="0" cellspacing="0" width="192">
<tr>
<td align="center">All</td>
<td align="center">Application</td>
</tr>
<tr>
<td align="center">People</td>
<td align="center">Presentation</td>
</tr>
<tr>
<td align="center">Should</td>
<td align="center">Session</td>
</tr>
<tr>
<td align="center">Taste</td>
<td align="center">Transport</td>
</tr>
<tr>
<td align="center">Nobby&#8217;s</td>
<td align="center">Network</td>
</tr>
<tr>
<td align="center">Delicious</td>
<td align="center">Data Link</td>
</tr>
<tr>
<td align="center">Peanuts</td>
<td align="center">Physical</td>
</tr>
</table>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

