<?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>phirebird &#187; Cisco</title>
	<atom:link href="http://www.phirebird.net/category/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phirebird.net</link>
	<description>Yet Another IT Site</description>
	<lastBuildDate>Sat, 24 Apr 2010 15:27:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configure NTP time server synchronisation on Cisco routers</title>
		<link>http://www.phirebird.net/2009/10/configure-ntp-time-server-synchronisation-on-cisco-routers/</link>
		<comments>http://www.phirebird.net/2009/10/configure-ntp-time-server-synchronisation-on-cisco-routers/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 21:48:05 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[time synchronisation]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=155</guid>
		<description><![CDATA[Maybe you want an accurate time source on your internal network for your servers to sync against. Or maybe you just want your Cisco box to report the correct time! In either case &#8211; you&#8217;ll need NTP.
First, we&#8217;ll sync the router time against another NTP time source. It&#8217;s as easy as specifying an IP:
phbrtr#conf t
Enter [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you want an accurate time source on your internal network for your servers to sync against. Or maybe you just want your Cisco box to report the correct time! In either case &#8211; you&#8217;ll need NTP.</p>
<p>First, we&#8217;ll sync the router time against another NTP time source. It&#8217;s as easy as specifying an IP:</p>
<blockquote><p>phbrtr#conf t<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
phbrtr(config)#ntp server <em>&lt;IP address&gt;</em><br />
phbrtr(config)#exit<br />
phbrtr#</p></blockquote>
<p>Incidentally, you can find a list of public NTP servers at:</p>
<blockquote><p><a href="http://support.ntp.org/bin/view/Servers/WebHome">http://support.ntp.org/bin/view/Servers/WebHome</a> </p></blockquote>
<p>To tidy things up, you might want to prevent NTP synchronisation attempts on a per-interface basic. To do this, you can &#8216;ntp disable&#8217; on the relevant interface(s):</p>
<blockquote><p>phbrtr#conf t<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
phbrtr(config)#interface fa1/0<br />
phbrtr(config-if)#ntp disable<br />
phbrtr(config-if)#exit<br />
phbrtr(config)#exit</p></blockquote>
<p>Finally, heres how to check that everything&#8217;s working as it should:</p>
<blockquote><p> phbrtr#sh ntp status<br />
Clock is synchronized, stratum 2, reference is 129.6.15.28<br />
nominal freq is 250.0000 Hz, actual freq is 250.0005 Hz, precision is 2**24<br />
reference time is CE89F9F3.27B5E326 (21:21:55.155 GMT Wed Oct 21 2009)<br />
clock offset is -13.4327 msec, root delay is 99.40 msec<br />
root dispersion is 21.27 msec, peer dispersion is 7.83 msec<br />
phbrtr#</p></blockquote>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/10/configure-ntp-time-server-synchronisation-on-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminate current VPN sessions on Cisco router/ASA</title>
		<link>http://www.phirebird.net/2009/09/terminate-current-vpn-sessions-on-cisco-routerasa/</link>
		<comments>http://www.phirebird.net/2009/09/terminate-current-vpn-sessions-on-cisco-routerasa/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:23:23 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[disconnect]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[terminate]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[vpnd]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=150</guid>
		<description><![CDATA[Many a time I have to kick remote users off a Cisco router / ASA box. This depends on your configuration &#8211; but here&#8217;s how to close one or all VPN user sessions on the PPTP setup we created in an earlier how-to. First, we&#8217;ll check to see who&#8217;s online:
phbrtr#sh vpdn session
PPTP Session Information Total [...]]]></description>
			<content:encoded><![CDATA[<p>Many a time I have to kick remote users off a Cisco router / ASA box. This depends on your configuration &#8211; but here&#8217;s how to close one or all VPN user sessions on the PPTP setup we created in an earlier how-to. First, we&#8217;ll check to see who&#8217;s online:</p>
<blockquote><p>phbrtr#sh vpdn session</p>
<p>PPTP Session Information Total tunnels 1 sessions 1</p>
<p>LocID RemID TunID Intf   Username State    Last Chg    Uniq ID<br />
32       32768   37       Vi3   user            estabd 00:00:18   31<br />
phbrtr#</p></blockquote>
<p>That pesky user!! Lets disconnect him..</p>
<blockquote><p>phbrtr#clear vpdn tunnel pptp id 37<br />
Starting to clear the tunnel<br />
phbrtr#</p></blockquote>
<p>Note here that we&#8217;ve used the TunID from the previous command (in this case &#8211; 37). Another quick &#8217;show vpdn session&#8217; (or for the lazy: &#8217;sh u&#8217;) will show that your user has disappeared.</p>
<p>If you&#8217;ve got a lot of users, looking up their id and clearing can be quite tedious. To clear ALL PPTP sessions:</p>
<blockquote><p>phbrtr#clear vpdn tunnel pptp all<br />
Clear all PPTP tunnels? [confirm]<br />
Starting to clear the tunnel</p>
<p>phbrtr#</p></blockquote>
<p>Simples!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/09/terminate-current-vpn-sessions-on-cisco-routerasa/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t remove IP NAT entries on Cisco router: %Static entry in use, cannot remove</title>
		<link>http://www.phirebird.net/2009/07/cant-remove-ip-nat-entries-on-cisco-router-static-entry-in-use-cannot-remove/</link>
		<comments>http://www.phirebird.net/2009/07/cant-remove-ip-nat-entries-on-cisco-router-static-entry-in-use-cannot-remove/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 18:17:11 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ip nat]]></category>
		<category><![CDATA[static entry]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=80</guid>
		<description><![CDATA[While removing IP NAT entries on a busy Cisco router &#8211; you&#8217;ll probably end up with this problem:
phbrtr(config)#no ip nat source static tcp 192.168.0.1 25 interface FastEthernet1/0 25
%Static entry in use, cannot remove
phbrtr(config)#
So what it is? Well, as the errors suggests, the rule is currently being used and as such can&#8217;t be changed (in this [...]]]></description>
			<content:encoded><![CDATA[<p>While removing IP NAT entries on a busy Cisco router &#8211; you&#8217;ll probably end up with this problem:</p>
<blockquote><p>phbrtr(config)#no ip nat source static tcp 192.168.0.1 25 interface FastEthernet1/0 25<br />
%Static entry in use, cannot remove</p>
<p>phbrtr(config)#</p></blockquote>
<p>So what it is? Well, as the errors suggests, the rule is currently being used and as such can&#8217;t be changed (in this particular instance, there were a few active SMTP connections). On busy routers, this activity sometimes cannot be helped!</p>
<p>So how do you get around it? Well the first way is simply to wait for a lul in the traffic! When this isn&#8217;t possible, you can try clearing current IP NAT dynamic translations: (NB: Be quick!)</p>
<blockquote><p>phbrtr(config)#no ip nat source static tcp 192.168.0.1 25 interface FastEthernet1/0 25<br />
%Static entry in use, cannot remove</p>
<p>phbrtr(config)#do clear ip nat translation *<br />
phbrtr(config)#no ip nat source static tcp 192.168.0.4 25 interface FastEthernet1/0 25<br />
phbrtr(config)#</p></blockquote>
<p>If this <em>still</em> doesn&#8217;t work (note that once you&#8217;ve issued the clear ip nat command &#8211; any new packets will create a new nat entry &#8211; hence &#8216;Be quick&#8217;!), you will to stop nat for a while to allow you to remove the translation:</p>
<blockquote><p>
phbrtr(config)#no ip nat source static tcp 192.168.0.1 25 interface FastEthernet1/0 25<br />
%Static entry in use, cannot remove</p>
<p>phbrtr(config)#interface FastEthernet0/0<br />
phbrtr(config-if)#no ip nat inside<br />
phbrtr(config-if)#exit</p>
<p>phbrtr(config)#interface FastEthernet1/0<br />
phbrtr(config-if)#no ip nat outside<br />
phbrtr(config-if)#exit</p>
<p>phbrtr(config)#do clear ip nat translation *<br />
phbrtr(config)#no ip nat source static tcp 192.168.0.1 25 interface FastEthernet1/0 25</p>
<p>phbrtr(config)#interface FastEthernet0<br />
phbrtr(config-if)#ip nat inside<br />
phbrtr(config-if)#exit</p>
<p>phbrtr(config)#interface FastEthernet1/0<br />
phbrtr(config-if)#ip nat outside<br />
phbrtr(config-if)#exit</p></blockquote>
<p> This demo removes IP NAT from both inside and outside interfaces &#8211; but you could try to removing it from just one (for ease) - but it will obviously depend on your setup.</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/07/cant-remove-ip-nat-entries-on-cisco-router-static-entry-in-use-cannot-remove/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending Cisco logging messages to a buffer/syslog server. To console, or not to console &#8211; That is the question!</title>
		<link>http://www.phirebird.net/2009/06/to-console-or-not-to-console-that-is-the-question-buffering-the-cisco-logging-history/</link>
		<comments>http://www.phirebird.net/2009/06/to-console-or-not-to-console-that-is-the-question-buffering-the-cisco-logging-history/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 17:30:57 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[buffer]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=69</guid>
		<description><![CDATA[So you&#8217;ve configured up your Cisco box, enabled remote access and the serial console cable is long gone. But hey &#8211; what about all those potentially crucial console messages? Well, you&#8217; ve got a few choices&#8230;
First is to leave it as it is - going off to a serial port &#8211; but add a permanent terminal to [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve configured up your Cisco box, enabled remote access and the serial console cable is long gone. But hey &#8211; what about all those potentially crucial console messages? Well, you&#8217; ve got a few choices&#8230;</p>
<p>First is to leave it as it is - going off to a serial port &#8211; but add a permanent terminal to display the results. Not very practical &#8211; especially if the router is at a remote site.</p>
<p>Second option is to send the messages off to a syslog server &#8211; which is good if you&#8217;ve got routers spread all over and want to report back to a central point. Ok! Time to get yourself a syslog server up and running. If you&#8217;ve not already got it, Tftpd32 has funcitionality for this (which is also useful for the transfer of IOS images &#8211; more on this some other time maybe). You can get it from <a href="http://tftpd32.jounin.net">http://tftpd32.jounin.net</a>. Configuring tftpd32 is beyond the scope of this guide &#8211; but it&#8217;s easy enough. Google it if in doubt. Enter global config mode on your router (conf t) and then:</p>
<blockquote><p>phbrouter(config)# logging &lt;ip address of syslog server&gt;<br />
phbrouter(config)# exit<br />
phbrouter# wr mem</p></blockquote>
<p>It&#8217;s that easy! Future messages will now be directed to your syslog server.</p>
<p>The third option is to get the router to store messages in a buffer for retrieval later. This is really useful to debug network failure at remote sites (say for instance your remote routers can&#8217;t report back to you whats going on - because its outside link is down! You&#8217;d wait for the line to come back up, log in and check what happened). Again, this is easy to configure. Enter global config mode and:</p>
<blockquote><p>phbrouter# conf t<br />
phbrouter(config)# logging buffered<br />
phbrouter(config)# exit<br />
phbrouter# wr mem<br />
phbrouter#</p></blockquote>
<p>And to retrieve the messages, issue:</p>
<blockquote><p>phbrouter#<br />
phbrouter#sh logging<br />
Syslog logging: enabled (11 messages dropped, 1 messages rate-limited,<br />
                0 flushes, 0 overruns, xml disabled, filtering disabled)<br />
    Console logging: level debugging, 4873 messages logged, xml disabled,<br />
                     filtering disabled<br />
    Monitor logging: level debugging, 0 messages logged, xml disabled,<br />
                     filtering disabled<br />
    Buffer logging: level debugging, 3 messages logged, xml disabled,<br />
                    filtering disabled<br />
    Logging Exception size (4096 bytes)<br />
    Count and timestamp logging messages: disabled</p>
<p>No active filter modules.</p>
<p>    Trap logging: level debugging, 4879 message lines logged<br />
        Logging to 192.168.0.1(global) (udp port 514, audit disabled, link up), 4879 message lines logged, xml disabled,<br />
               filtering disabled</p>
<p>Log Buffer (4096 bytes):</p>
<p>*Jun 10 18:01:01: %SYS-5-CONFIG_I: Configured from console by admin on vty0 (192.168.0.107)<br />
*Jun 10 18:14:57: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: admin] [Source: 192.168.0.107] [localport: 22] at 18:14:57 GMT Wed Jun 10 2009<br />
*Jun 10 18:20:49: %SYS-5-CONFIG_I: Configured from console by admin on vty0 (192.168.0.107)</p></blockquote>
<p>If you getting too much crap in the buffer, you can clear it by issuing the <em>&#8216;clear logging&#8217;</em> command. Incidentally, you can set the amount of buffer space by tagging on a byte value at the end of <em>&#8216;logging buffered&#8217; </em>(between 4096 to 2147483647).</p>
<p>Finally, if you&#8217;re sick of the logging messages appearing on the serial console (or if you want to hide the messages from prying eyes!) you can stop them by entering global config mode and issuing:</p>
<blockquote><p>phbrouter(config)# no logging console</p></blockquote>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/06/to-console-or-not-to-console-that-is-the-question-buffering-the-cisco-logging-history/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure a server behind a Cisco Router (port redirection)</title>
		<link>http://www.phirebird.net/2009/06/configure-a-server-behind-a-cisco-router-port-redirection/</link>
		<comments>http://www.phirebird.net/2009/06/configure-a-server-behind-a-cisco-router-port-redirection/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 22:08:29 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[port redirection]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=62</guid>
		<description><![CDATA[This &#8216;how to&#8217; isn&#8217;t going to go into the hows or why NAT / PAT works on the Cisco router &#8211; or in general for that matter. If you&#8217;re looking for that &#8211; Wikipedia has a good enough write up located here:
http://en.wikipedia.org/wiki/Network_address_translation 
What I am going to go into is how to configure them on your router. [...]]]></description>
			<content:encoded><![CDATA[<p>This &#8216;how to&#8217; isn&#8217;t going to go into the hows or why NAT / PAT works on the Cisco router &#8211; or in general for that matter. If you&#8217;re looking for that &#8211; Wikipedia has a good enough write up located here:</p>
<blockquote><p><a href="http://en.wikipedia.org/wiki/Network_address_translation">http://en.wikipedia.org/wiki/Network_address_translation</a> </p></blockquote>
<p>What I am going to go into is how to configure them on your router. What we&#8217;re trying to achieve here is that you&#8217;ve got a functioning router and want to direct any incoming requests (SMTP, POP, HTTP &#8211; pick one!) to an internal server.</p>
<p>First identify which interface sits on the outside. Then enter global config mode, and issue:</p>
<blockquote><p>ip nat inside source static tcp <em>&lt;internal ip&gt; &lt;internal port&gt;</em> interface <em>&lt;outside interface&gt; &lt;outside port&gt;</em></p></blockquote>
<p>So, for example, if you&#8217;re outside interface is FastEthernet1/0, and you wanted to redirect any HTTP requests to your internal web server on 192.168.0.10, you would issue:</p>
<blockquote><p>phbrouter(config)# ip nat inside source static tcp 192.168.0.10 80 interface FastEthernet1/0 80</p></blockquote>
<p>What if you&#8217;ve got multiple public IP&#8217;s? Simply use this instead:</p>
<blockquote><p>phbrouter(config)# ip nat inside source static tcp 192.168.0.10 80 <em>123.123.123.123</em> 80</p></blockquote>
<p>Easy, yet effective!</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/06/configure-a-server-behind-a-cisco-router-port-redirection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hot Swapping / Removing Cisco 3660 Network Modules</title>
		<link>http://www.phirebird.net/2009/06/hot-swapping-removing-cisco-3660-network-modules/</link>
		<comments>http://www.phirebird.net/2009/06/hot-swapping-removing-cisco-3660-network-modules/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 22:04:07 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[3660]]></category>
		<category><![CDATA[hot swap]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=59</guid>
		<description><![CDATA[I&#8217;ve got a Cisco 3660 that supports hot swapping of components: power supplies (yup &#8211; there&#8217;s two of them!), chassis fans &#8211; but also the network modules (NM-) too. So here&#8217;s something I&#8217;ve been wondering for a while &#8211; how to actually do this within the IOS! Not suprisingly, it&#8217;s easier than I thought! Just [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a Cisco 3660 that supports hot swapping of components: power supplies (yup &#8211; there&#8217;s two of them!), chassis fans &#8211; but also the network modules (NM-) too. So here&#8217;s something I&#8217;ve been wondering for a while &#8211; how to actually do this within the IOS! Not suprisingly, it&#8217;s easier than I thought! Just enter config mode, shutdown all the modules interfaces, remove the module and (optionally) replace the card and &#8220;no shutdown&#8221; each interface.</p>
<p>If you&#8217;re still reading, you want to know how to do it. Ok! First identify what module and so what interfaces you want to swap over (&#8217;sh int&#8217; or &#8217;sh diag&#8217; will do). Say we want to swap over an NM-1FE1R2W in slot #3 with a WIC1-ADSL:</p>
<blockquote><p>phbrouter# conf t<br />
phbrouter(config)# interface FastEthernet3/0<br />
phbrouter(config-if)# shutdown<br />
phbrouter(config-if)# exit<br />
phbrouter(config)# interface TokenRing3/0<br />
phbrouter(config-if)# shutdown<br />
phbrouter(config-if)# exit<br />
phbrouter(config)# interface ATM3/0<br />
phbrouter(config-if)# shutdown<br />
phbrouter(config-if)# exit<br />
phbrouter(config)# exit<br />
phbrouter#</p></blockquote>
<p>Next, physically remove the slot #3 module. If you&#8217;re on the console or have logging enabled, you should see something like:</p>
<blockquote><p>* Jun  5 22:07:53: %OIR-6-REMCARD: Card removed from slot 3, interfaces disabled</p></blockquote>
<p>You could stop here (make sure you install filler plate),  or you could replace it with a similar card and repeat the steps above substituting <em>&#8217;shutdown&#8217;</em> for <em>&#8216;no shutdown&#8217;</em>. </p>
<p>Done!!</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/06/hot-swapping-removing-cisco-3660-network-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco router password reset / recovery</title>
		<link>http://www.phirebird.net/2009/06/cisco-router-password-reset-recovery/</link>
		<comments>http://www.phirebird.net/2009/06/cisco-router-password-reset-recovery/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 23:28:55 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[password reset]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=57</guid>
		<description><![CDATA[This is something that I&#8217;ve commited to memory now (sad, I know) but here it is &#8211; the password recovery procedure (tested on 800, 1700, 1800, 2600, 3600  series routers &#8211; you get the idea &#8211; most of them!).
Get a console cable rigged up and your favourite terminal application. Make sure this works first and then [...]]]></description>
			<content:encoded><![CDATA[<p>This is something that I&#8217;ve commited to memory now (sad, I know) but here it is &#8211; the password recovery procedure (tested on 800, 1700, 1800, 2600, 3600  series routers &#8211; you get the idea &#8211; most of them!).</p>
<p>Get a console cable rigged up and your favourite terminal application. Make sure this works first and then turn on / reboot the router.</p>
<p>When the router is &#8216;Self decompressing the image&#8217; hit CTRL+C. If nothing seems to happen &#8211; check your terminal app for keyboard mappings, etc (I know that PuTTY needs a bit of playing with. HyperTerminal works with the defaults)</p>
<p>The next stage is to alter the config register to make it &#8216;ignore&#8217; the startup-config on next boot (which is where your passwords are stored). You should check what your original config register is before you change it &#8211; but if you know what it was, you probably wouldn&#8217;t be reading this!! It&#8217;s usually safe to assume anyway that you want to set the config register to 0&#215;2142. So, at the prompt:</p>
<blockquote><p>rommon 1&gt; confreg 0&#215;2142<br />
rommon 2&gt; reset</p></blockquote>
<p>The router should now be resetting itself as if it didn&#8217;t have any config &#8211; and start to run through the &#8216;Initial Setup&#8217;. Hit CTRL+C and you&#8217;ll drop to the prompt. The trick is to get yourself into priviledged mode, copy over your startup config to &#8216;running&#8217; and then set your new password(s). So:</p>
<blockquote><p>Router&gt; en<br />
Router# copy startup-config running-config<br />
phbrouter#</p></blockquote>
<p>Note that you&#8217;ll see your interfaces being brought up, and other status messages to signify the router is/has been configured. What you do at this point depends entirely on your configuration. Chances are that you&#8217;ll want to set a new enable password, but you may also want to reset local user passwords, console passwords, etc. I&#8217;ll show you how to reset the enable secret (but make sure to do a &#8217;sh run&#8217; to check for others):</p>
<blockquote><p>phbrouter# conf term<br />
phbrouter(config)# enable secret <em><strong>&lt;new password&gt;</strong><br />
</em>phbrouter(config)# exit<br />
phbrouter#</p></blockquote>
<p>Issue a quick &#8216;wr mem&#8217; and your new config will be written. Finally, you&#8217;ll need to set your config register back to 0&#215;2102 (to tell the router to no longer ignore your startup-config):</p>
<blockquote><p>phbrouter# conf t<br />
phbrouter(config)# config-register 0&#215;2102<br />
phbrouter(config)# exit<br />
phbrouter# wr mem</p></blockquote>
<p>Done! Reboot and you should be able to use your new password(s).  Note that on some IOS images, I&#8217;ve noticed that the interfaces adopt the shutdown state. Easily rectified by going into configuration mode, and issuing a &#8216;no shutdown&#8217; for each interface.</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/06/cisco-router-password-reset-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring a client-to-site VPN through PPTP on a Cisco router</title>
		<link>http://www.phirebird.net/2009/05/configuring-a-client-to-site-vpn-through-pptp-on-a-cisco-router/</link>
		<comments>http://www.phirebird.net/2009/05/configuring-a-client-to-site-vpn-through-pptp-on-a-cisco-router/#comments</comments>
		<pubDate>Wed, 27 May 2009 21:19:21 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[vpdn]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=53</guid>
		<description><![CDATA[When config&#8217;ing up a new Cisco router, turning on the VPN server functionality is a really handy feature to have &#8211; but again it&#8217;s one of them that you only need once-in-a-while. There are millions of different things that you can tweak &#8211; authentication, IP allocation, etc &#8211; but I&#8217;ll run through how to configure it up [...]]]></description>
			<content:encoded><![CDATA[<p>When config&#8217;ing up a new Cisco router, turning on the VPN server functionality is a really handy feature to have &#8211; but again it&#8217;s one of them that you only need once-in-a-while. There are millions of different things that you can tweak &#8211; authentication, IP allocation, etc &#8211; but I&#8217;ll run through how to configure it up for use in a small office enviroment.</p>
<p>First off, you&#8217;ll want to make sure that you have VPN server functionality. Again, this is determined by your IOS image. Check your feature set on the Cisco feature navigator:</p>
<blockquote><p><a href="http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp"><span style="color: #3a87dd;">http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp</span></a></p></blockquote>
<p>Once you&#8217;ve done that &#8211; on to the configuration. I&#8217;ll point out anything that&#8217;s worth noting.</p>
<p>Enter configuration mode, set some basic aaa and enable vpdn:</p>
<blockquote><p>phbrouter#conf t<br />
phbrouter(config)#aaa new-model<br />
phbrouter(config)#aaa authentication ppp default local<br />
phbrouter(config)#aaa authorization network default if-authenticated<br />
phbrouter(config)#vpdn enable<br />
phbrouter(config)#</p></blockquote>
<p>As mentioned, this is a fairly basic config. You&#8217;ll notice that we&#8217;re authenticating against the local userlist (which we&#8217;ll define later). If you wanted to, you could use RADIUS instead (which is outside the scope of this article! Maybe I&#8217;ll cover it some other time!). Next we need to setup a VPDN group, tell it that we accept dialin, define what protocol it should use and which virtual interface template to use for incoming connections (which we&#8217;ll do later):</p>
<blockquote><p>phbrouter(config)#vpdn-group 1<br />
phbrouter(config-vpdn)#accept-dialin<br />
phbrouter(config-vpdn-acc-in)#protocol pptp<br />
phbrouter(config-vpdn-acc-in)#virtual-template 1<br />
phbrouter(config-vpdn-acc-in)#exit<br />
phbrouter(config-vpdn)#exit<br />
phbrouter(config)#</p></blockquote>
<p>Great! Half way there. The next stage is to create a virtual interface that will be brought up when a user connects. This includes the address allocation and what authentication we want to accept. MS-Chap and MS-Chap v2 is good enough for our purposes:</p>
<blockquote><p>phbrouter(config)#int Virtual-Template1<br />
phbrouter(config-if)#desc VPN Virtual Interface<br />
phbrouter(config-if)#ip unnumbered FastEthernet0/0<br />
phbrouter(config-if)#peer default ip address pool vpnpool<br />
phbrouter(config-if)#ppp encrypt mppe auto<br />
phbrouter(config-if)#ppp authentication ms-chap ms-chap-v2<br />
phbrouter(config-if)#exit<br />
phbrouter(config)#</p></blockquote>
<p>You&#8217;ll notice that it&#8217;ll try to grab an address from a pool (rather creatively) named vpnpool. We&#8217;ll define this now &#8211; but be sure to change this to a free address range on your network (also big enough to accomodate your number of users):</p>
<blockquote><p>phbrouter(config)#ip local pool vpnpool 192.168.1.150 192.168.1.160<br />
phbrouter(config)#</p></blockquote>
<p>The final stage is to define some users. Seeing as we&#8217;re going to be using the local userlist, it&#8217;s a really good idea to set these users to privilege level 0 (for obvious reasons):</p>
<blockquote><p>phbrouter(config)#username joebloggs privilege 0 password joebloggsrules<br />
phbrouter(config)#username jackbloggs privilege 0 password brownbear</p></blockquote>
<p>And you&#8217;re finished! You can either use the Cisco VPN Client to connect from remote locations &#8211; but I find the in-built Windows &#8216;Connection Wizard&#8217; is a lot lighter (!) and is more than suffice.</p>
<p>This was done on a router with an existing aaa policy. If I&#8217;ve missed anything out &#8211; please post your feedback!</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/05/configuring-a-client-to-site-vpn-through-pptp-on-a-cisco-router/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Cisco IOS VPN Configurarion</title>
		<link>http://www.phirebird.net/2009/05/cisco-ios-vpn-configurarion/</link>
		<comments>http://www.phirebird.net/2009/05/cisco-ios-vpn-configurarion/#comments</comments>
		<pubDate>Sat, 16 May 2009 11:10:31 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=35</guid>
		<description><![CDATA[Not too sure where I got this information from originally, but it has helped me to configure my own VPNs over the years:

Cisco IOS VPN Configuration

Scenario 1: Gateway-to-gateway with preshared secrets

The following is a typical gateway-to-gateway VPN that uses a preshared
secret for authentication.

10.5.6.0/24              [...]]]></description>
			<content:encoded><![CDATA[<p>Not too sure where I got this information from originally, but it has helped me to configure my own VPNs over the years:</p>
<blockquote>
<pre>Cisco IOS VPN Configuration

Scenario 1: Gateway-to-gateway with preshared secrets

The following is a typical gateway-to-gateway VPN that uses a preshared
secret for authentication.

10.5.6.0/24                                            172.23.9.0/24
    |                                                          |
  --|                                                          |--
    |     +-----------+     /-^-^-^-^--\     +-----------+     |
    |-----| Gateway A |=====| Internet |=====| Gateway B |-----|
    |   AL+-----------+AW   \--v-v-v-v-/   BW+-----------+BL   |
  --| 10.5.6.1   14.15.16.17           22.23.24.25  172.23.9.1 |--
    |                                                          |

Gateway A connects the internal LAN 10.5.6.0/24 to the Internet. Gateway A's
LAN interface has the address 10.5.6.1, and its WAN (Internet) interface has
the address 14.15.16.17.

Gateway B connects the internal LAN 172.23.9.0/24 to the Internet. Gateway
B's WAN (Internet) interface has the address 22.23.24.25. Gateway B's LAN
interface address, 172.23.9.1, can be used for testing IPsec but is not
needed for configuring Gateway A.

The IKE Phase 1 parameters used in Scenario 1 are:

   * Main mode
   * TripleDES
   * SHA-1
   * MODP group 2 (1024 bits)
   * pre-shared secret of "hr5xb84l6aa9r6"
   * SA lifetime of 28800 seconds (eight hours) with no kbytes rekeying

The IKE Phase 2 parameters used in Scenario 1 are:

   * TripleDES
   * SHA-1
   * ESP tunnel mode
   * MODP group 2 (1024 bits)
   * Perfect forward secrecy for rekeying
   * SA lifetime of 3600 seconds (one hour) with no kbytes rekeying
   * Selectors for all IP protocols, all ports, between 10.5.6.0/24 and
     172.23.9.0/24, using IPv4 subnets

To set up Gateway A for this scenario, use the following steps:

Cisco IOS includes IPSec support, beginning with early versions of IOS
Version 12; however the commands have changed during the evolution of IOS
Version 12 point releases.  The following example uses the current release
version, Cisco IOS Version 12.2(8)T4.

This example uses a Cisco 1700 series router, which has one ethernet port
and one serial port.  The ethernet port, FastEthernet0, will be the outside,
or Internet-facing interface.  The serial port, Serial0, will be the inside
interface.  (This is just an example.  Your interfaces may be different.)

All configuration changes are volatile, and immediate, until the "write"
command is executed, when the configuration is saved to flash and will be
reloaded after a reboot.  At any time, you may examine the running
configuration with the command "show running-configuration", or view the
saved configuration with the command "show config".  Most commands can be
abbreviated.  Use a ? at the prompt or in a command to see options.

Configure IP on the interfaces:

Router# config term
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# int fa0
Router(config-if)# ip address 14.15.16.17 255.255.255.0
Router(config-if)# speed auto
Router(config-if)# ^Z
Router# config term
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# int ser0
Router(config-if)# ip address 10.5.6.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# ^Z
Router# 

Define the default route:

Router# config term
Router(config)# ip route 0.0.0.0 0.0.0.0 14.15.16.1
Router(config)# exit

Cisco supports only one IKE policy per router, so you must design one which
is acceptable to all systems you are going to interoperate with.  Assign it
an ordering number of 5.  If you wanted to have more than one proposal in
the policy, the proposals would be given in order defined by this policy
order number.  Configure the IKE Policy:

Router# config term
Router(config)# crypto isakmp policy 5
Router(config-isakmp)# encryption 3des
Router(config-isakmp)# group 2
Router(config-isakmp)# hash sha
Router(config-isakmp)# lifetime 28800
Router(config-isakmp)# authentication pre-share
Router(config-isakmp)# exit

Since multiple peers will share the same IKE policy, you must match each
peer with its pre-shared secret:

Router# config term
Router(config)# crypto isakmp key hr5xb84l6aa9r6 address 22.23.24.25
Router(config-isakmp)# exit

The IPSEC transform will be combined later with the rest of the IPSEC policy
in a crypto map command.  In this command, "STRONG" is just a label.  Labels
are CASE-SENSITIVE.  Define the IPSEC transform:

Router# config term
Router(config)# crypto ipsec transform-set STRONG esp-3des esp-sha-hmac
Router(config-isakmp)# exit

Cisco IOS uses access lists for SPD entries.  Many features of access lists
(.e.g. TCP flag checking) don't work in IPSEC.  This kind of access list
MUST be labelled with a 3-digit number.  The netmask in Cisco access lists
are inverted.  Nobody knows why, they just are.  This list says "all traffic
from 10.5.6.0/24 to 172.23.9.0/24, all ports, all IP protocols".  Create the
IPSEC access list:

Router# config term
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# access-list 101 permit ip 10.5.6.0 0.0.0.255 172.23.9.0 0.0.0.255
Router(config)# ip route 0.0.0.0 0.0.0.0 14.15.16.1
Router(config)# exit

Because IOS is a router first and an IPSEC gateway second, we have to tell
IOS which interface to send packets on if the default route is not enough.
In this scenario we don't need it, but in other situations you might need to
define a route for the remote protected network:

Router# config term
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# ip route 172.23.9.0 255.255.255.0 14.15.16.17
Router(config)# exit

A crypto map binds all the assorted crypto parameters with a specific remote
gateway.  Several crypto maps bound to different remote gateways can be
grouped together in one crypto map SET which is then bound to an outgoing
interface.  The number following the crypto map set name is the ordering of
the map in the set.  Bind the policy together with a crypto map, and give it
the label CISCO:

Router# config term
Router(config)# crypto map CISCO 10 ipsec-isakmp
% NOTE: This new crypto map will remain disabled until a peer
        and a valid access list have been configured.
Router(config-crypto-map)# set security-association life seconds 3600
Router(config-crypto-map)# set transform-set STRONG
Router(config-crypto-map)# set pfs group2
Router(config-crypto-map)# set peer 22.23.24.25
Router(config-crypto-map)# match address 101
Router(config-crypto-map)# exit

Because Ciscos could have many interfaces, you have to bind the SPD to the
outgoing interface:

Router# config term
Router(config)# interface fa0
Router(config-if)# crypto map CISCO
Router(config-if)# ^Z

If you had multiple tunnels to multiple gateways, you would need to create a
different access list for each tunnel, add an isakmp key entry for each
gateway, and possibly create a different ipsec transform if your security
policy is different.  For example, let's say you have another remote peer at
23.23.24.25, for which you have created access-list 102.  You could then add
a crypto map to the set created above:

Router# config term
Router(config)# crypto map CISCO 20 ipsec-isakmp
% NOTE: This new crypto map will remain disabled until a peer
        and a valid access list have been configured.
Router(config-crypto-map)# set security-association life seconds 3600
Router(config-crypto-map)# set transform-set STRONG
Router(config-crypto-map)# set pfs group2
Router(config-crypto-map)# set peer 23.23.24.25
Router(config-crypto-map)# match address 102
Router(config-crypto-map)# exit

Now the outgoing interface FastEthernet0 has both crypto maps, and it will
compare traffic to each map in order to determine if the traffic requires
encryption.

Save the configuration:

Router# write
Building configuration...
[OK]

Here is the completed IPSEC part of the Cisco configuration:

Router# show config
!
crypto isakmp policy 5
 encr 3des
 authentication pre-share
 group 2
 lifetime 28800
crypto isakmp key hr5xb84l6aa9r6 address 22.23.24.25
!
crypto ipsec transform-set strong esp-3des esp-sha-hmac
!
crypto map CISCO 101 ipsec-isakmp
 set peer 22.23.24.25
 set transform-set STRONG
 set pfs group2
 match address 101
!
interface FastEthernet0
 ip address 14.15.16.17 255.255.255.0
 speed auto
 crypto map CISCO
!
interface Serial0
 ip address 10.5.6.1 255.255.255.0
!
access-list 101 permit ip 10.5.6.0 0.0.0.255 172.23.9.0 0.0.0.255
!

Now, bring up a tunnel!  The IOS ping command extensions will allow you to
select the source interface, and hence IP address, of the ping:

Router# ping
Protocol [ip]:
Target IP address: 172.23.9.10
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: serial0
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.23.9.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

Hmmmm ... what could be wrong?  Let's check some basics:

Router# show ip int brief
Interface                  IP-Address      OK? Method Status            Protocol
FastEthernet0              14.15.16.17     YES manual up                   up

Serial0                    10.5.6.1        YES manual down                 down

Ah, the serial interface is down.  I have to actually connect it up to something
to bring the interface up.  Now, the ping works and brings up the SAs.

Show the SAs with these commands:

Router# show crypto isakmp sa
dst             src             state           conn-id    slot
14.15.16.17     22.23.24.25     QM_IDLE               1       0

Router# show crypto ipsec sa

interface: FastEthernet0
    Crypto map tag: CISCO, local addr. 14.15.16.17

   local  ident (addr/mask/prot/port): (10.5.6.0/255.255.255.0/0/0)
   remote ident (addr/mask/prot/port): (172.23.9.0/255.255.255.0/0/0)
   current_peer: 22.23.24.25
     PERMIT, flags={origin_is_acl,}
    # pkts encaps: 12, # pkts encrypt: 12, # pkts digest 12
    # pkts decaps: 23, # pkts decrypt: 23, # pkts verify 23
    # pkts compressed: 0, # pkts decompressed: 0
    # pkts not compressed: 0, # pkts compr. failed: 0, # pkts decompress failed: 0
    # send errors 0, # recv errors 0

     local crypto endpt.: 14.15.16.17, remote crypto endpt.: 22.23.24.25
     path mtu 1500, media mtu 1500
     current outbound spi: 3C39A800

     inbound esp sas:
      spi: 0xD7228E4B(3609366091)
        transform: esp-3des esp-sha-hmac ,
        in use settings ={Tunnel, }
        slot: 0, conn id: 2000, flow_id: 1, crypto map: CISCO
        sa timing: remaining key lifetime (k/sec): (4607999/3574)
        IV size: 8 bytes
        replay detection support: Y

     inbound ah sas:

     inbound pcp sas:

     outbound esp sas:
      spi: 0x3C39A800(1010411520)
        transform: esp-3des esp-sha-hmac ,
        in use settings ={Tunnel, }
        slot: 0, conn id: 2001, flow_id: 2, crypto map: CISCO
        sa timing: remaining key lifetime (k/sec): (4607999/3574)
        IV size: 8 bytes
        replay detection support: Y

     outbound ah sas:

     outbound pcp sas:

The easiest way to clear SAs from a Cisco IOS system varies with version, but
one of these two will generally work:

RouterRouter# clear crypto isakmp
RouterRouter# clear crypto sa

To enable debugging in IOS, you must turn on the debug as well as turn on the
debug monitor, which is normally the terminal you are logged in on:

Router# debug crypto verbose
Router# debug crypto isakmp
Router# term monitor

To disable debugging:
Router# nodebug all
Router# term no monitor</pre>
</blockquote>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/05/cisco-ios-vpn-configurarion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling SSH on a Cisco Router</title>
		<link>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/</link>
		<comments>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/#comments</comments>
		<pubDate>Sat, 16 May 2009 09:09:36 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=17</guid>
		<description><![CDATA[So, you want to configure SSH on your Cisco router, eh? Well, it&#8217;s a good choice to make! So how do you do it? Well, first you&#8217;ve got to make sure that your IOS image has IPSec (DES or 3DES) encryption and later than 12.1(1)T &#8211; which you can easily tell from entering the image [...]]]></description>
			<content:encoded><![CDATA[<p>So, you want to configure SSH on your Cisco router, eh? Well, it&#8217;s a good choice to make! So how do you do it? Well, first you&#8217;ve got to make sure that your IOS image has IPSec (DES or 3DES) encryption and later than 12.1(1)T &#8211; which you can easily tell from entering the image filename into the Cisco feature navigator:</p>
<blockquote><p><a href="http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp">http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp</a></p></blockquote>
<p>I&#8217;m running a Cisco 3660 with c3660-ik9o3s-mz.124-6.T.bin which has IPSec and 3DES &#8211; so we&#8217;re good to go.</p>
<p>SSH doesn&#8217;t like a router that doesn&#8217;t have a configured hostname or domain name. So, we&#8217;ll make sure that both of them are done now:</p>
<blockquote><p> Router# conf term<br />
 Router(config)# hostname phbrouter<br />
 phbrouter(config)# ip domain-name phirebird.net<br />
 phbrouter(config)#</p></blockquote>
<p>Right. Now you&#8217;re ready to create an RSA encryption key pair. Whilst generating, you&#8217;ll notice that it asks how many bits you&#8217;d like to use in the modulus. Don&#8217;t accept the default of 512. Instead, select at least 1024 bits.</p>
<blockquote><p> phbrouter(config)# crypto key generate rsa<br />
 The name for the keys will be: phbrouter.phirebird.net<br />
 Choose the size of the key modulus in the range of 360 to 2048<br />
        for your General Purpose Keys. Choosing a key modulus greater than<br />
        512 may take a few minutes.<br />
 How many bits in the modulus [512]: 1024<br />
 % Generating 1024 bit RSA keys &#8230;[OK]<br />
 phbrouter(config)#<br />
 * May  16 10:05:28.283: %SSH-5-ENABLED: SSH 1.99 has been enabled<br />
 phbrouter(config)#</p></blockquote>
<p>To make sure that everything has been configured correctly, you can issue these commands:</p>
<blockquote><p> show ip ssh  (Displays the version and basic configuration)<br />
 show ssh  (Displays the status of any connections)</p></blockquote>
<p>You may stop reading here, but it&#8217;s a good idea to familiarise yourself with the other SSH configuration options open to you:</p>
<blockquote><p>phbrouter(config)#ip ssh ?<br />
  authentication-retries  Specify number of authentication retries<br />
  break-string            break-string<br />
  logging                 Configure logging for SSH<br />
  maxstartups             Maximum concurrent sessions allowed<br />
  port                    Starting (or only) Port number to listen on<br />
  rsa                     Configure RSA keypair name for SSH<br />
  source-interface        Specify interface for source address in SSH<br />
                          connections<br />
  time-out                Specify SSH time-out interval<br />
  version                 Specify protocol version to be supported</p></blockquote>
<p>Most notable here is thatrunning SSH on a differnt port is probably a good idea (but try leaving it on the default 22 and see how many connection attempts you get!). The number of authentication-retries default is 3 &#8211; which is fair enough, and the timeout default is 120 seconds (maybe a bit long?).</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
