<?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>Cisco Networking Answers &#187; cisco router</title>
	<atom:link href="http://cisco-network.com/tag/cisco-router/feed/" rel="self" type="application/rss+xml" />
	<link>http://cisco-network.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 23:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Reflexive Access Lists</title>
		<link>http://cisco-network.com/hands-on/reflexive-access-lists/</link>
		<comments>http://cisco-network.com/hands-on/reflexive-access-lists/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 22:23:53 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[network security]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/reflexive-access-lists/</guid>
		<description><![CDATA[Cisco IOS has statefull firewall features like reflexive access lists. By using this feature, you can use your Cisco router as a second firewall (the choke point concept in Cisco firewall trainings) and increase your network security by layered approach. You can use an access control list (ACL) for the filtering one way traffic, but [...]]]></description>
			<content:encoded><![CDATA[<p>Cisco IOS has statefull firewall features like reflexive access lists. By using this feature, you can use your Cisco router as a second firewall (the choke point concept in Cisco firewall trainings) and increase your network security by layered approach. </p>
<p>You can use an access control list (ACL) for the filtering one way traffic, but what about the responding packages. You have to add an incoming ACL and it should include only sessions started from internal. Reflexive ACLs helps us in this point.</p>
<p><strong>Requirements</strong><br />
To use reflexive ACLs<br />
1.	You MUST use named access lists<br />
2.	You MUST add “reflect samplename” to the end of permit line.<br />
3.	You MUST create a second named access list and add “evaluate samplename” line for responding traffic.</p>
<p><strong>Sample Scenario</strong><br />
In our example, we have a proxy server (e.g. Microsoft ISA Server) with 122.22.22.1 IP address. This server needs access to internet via http (tcp 80) for web browsing and via dns (udp 53) for name resolution.<br />
<img src='http://cisco-network.com/wp-content/uploads/2007/12/reflexiveacl.PNG' alt='Reflexive ACLs Sample' /></p>
<blockquote><p>interface Serial0/0/0<br />
description Internet connection<br />
ip access-group INBOUND in<br />
ip access-group OUTBOUND out<br />
!<br />
ip access-list extended OUTBOUND<br />
permit tcp host 122.22.22.1 any reflect PROXYTCP<br />
permit udp host 122.22.22.1 any eq domain reflect PROXYUDP<br />
!<br />
ip access-list extended INBOUND<br />
evaluate PROXYTCP<br />
evaluate PROXYUDP<br />
!</p></blockquote>
<p>We used reflect command to create reverse ACL and we added it to inbound ACL with evaluate command.</p>
<p><strong>Last Words</strong><br />
This feature is really a powerful tool to increase network security, but you should not use it instead of a real firewall for Internet access. It should be used as another security layer.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/reflexive-access-lists/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Advanced SSH settings for Cisco IOS</title>
		<link>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/</link>
		<comments>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 20:40:28 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[ssh access]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/</guid>
		<description><![CDATA[I mentioned about basic SSH setting in SSH@Cisco article. But I saw that there are other questions about SSH settings, so, I decided to dive a bit deeper. The settings mentioned below are tested with IOS 12.4, but I am not sure about exact version that supports below features. Q1. What happens if I changed [...]]]></description>
			<content:encoded><![CDATA[<p>I mentioned about basic SSH setting in <a href="http://cisco-network.com/hands-on/ssh-cisco/" >SSH@Cisco</a> article. But I saw that there are other questions about SSH settings, so, I decided to dive a bit deeper. The settings mentioned below are tested with IOS 12.4, but I am not sure about exact version that supports below features. </p>
<p><strong>Q1. What happens if I changed hostname or ip domain name after SSH settings has been done?</strong><br />
A1. Nothing. You need them to create rsa keys but, but afterwards, if you change them, only the key name changes and key data remain same.</p>
<blockquote><p>ciscolab#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 13:08:15 UTC Aug 28 2007<br />
Key name: <strong>ciscolab.mydomain.com</strong><br />
 Storage Device: private-config<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00B67A9F<br />
  EED05E82 FFE41EB0 0CE9BC9E 40D1DD1D CF7AA44F CB5C1029 9502C379 469BF37D<br />
  099082BD 9618CC4E 8314866E 3B26F01B BE3AC27E 33EC7A2D 7FE5B503 3C24500B<br />
  733B391A D2DC4AAF C322C549 8A4638F1 9EAA0FF1 0ABCACD3 B1DF9753 02790FD7<br />
  E6A29602 39EFBAB4 2D4D7119 5C95D403 E1E9EB40 E01A1679 231C2F93 53020301 0001<br />
.<br />
.<br />
ciscolab#conf t<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
ciscolab(config)#<strong>hostname sshrouter</strong><br />
sshrouter(config)#end<br />
sshrouter#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 13:08:15 UTC Aug 28 2007<br />
Key name: <strong>sshrouter.mydomain.com</strong><br />
 Storage Device: private-config<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00B67A9F<br />
  EED05E82 FFE41EB0 0CE9BC9E 40D1DD1D CF7AA44F CB5C1029 9502C379 469BF37D<br />
  099082BD 9618CC4E 8314866E 3B26F01B BE3AC27E 33EC7A2D 7FE5B503 3C24500B<br />
  733B391A D2DC4AAF C322C549 8A4638F1 9EAA0FF1 0ABCACD3 B1DF9753 02790FD7<br />
  E6A29602 39EFBAB4 2D4D7119 5C95D403 E1E9EB40 E01A1679 231C2F93 53020301 0001<br />
.<br />
.<br />
sshrouter#
</p></blockquote>
<p><strong>Q2. Is there any other way to create rsa keys?</strong><br />
A1. Yes, There is. You can create rsa keys which are labeled by you. In this case, you don’t need a hostname(Always, you will have one) and an ip domain name. </p>
<blockquote><p>ciscolab(config)#<strong>crypto key generate rsa general-keys label TEST</strong><br />
The name for the keys will be: TEST<br />
Choose the size of the key modulus in the range of 360 to 2048 for your<br />
  General Purpose Keys. Choosing a key modulus greater than 512 may take<br />
  a few minutes.</p>
<p>How many bits in the modulus [512]: <strong>1024</strong><br />
% Generating 1024 bit RSA keys, keys will be non-exportable&#8230;[OK]</p>
<p>ciscolab(config)#</p>
<p>Nov 24 20:08:59: %SSH-5-ENABLED: SSH 1.5 has been enabled</p>
</blockquote>
<p><strong><br />
Q3. May I create more than one key?</strong><br />
A3. You can create several keys and chose one of them to use with SSH.You do not need to define which key to be used, but if you want to define, then you have to issue &#8220;ip ssh rsa keypair-name&#8221; command in the configuration mode.</p>
<blockquote><p>ciscolab#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 20:08:59 UTC Nov 24 2007<br />
Key name: <strong>TEST</strong><br />
 Storage Device: not specified<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00BDFABF<br />
  948EF1FC 1CFC6C5C F5863980 D7D7B9E6 B256D84F 8F279E2E 63303403 A26E6160<br />
  A2928C87 4F0A846E F8A9FB0A 7D92108F ABD5734C AE7555BC 94CB13D9 41E8E04C<br />
  1514A499 68CC9925 A3DB2CFA 3176A65E 2DC504EE EF5C209E 4D348B20 9C324CBC<br />
  230451DD 96EC090C 99C5FB58 E06876D3 161E758E 486987B7 CD147AB0 0F020301 0001<br />
% Key pair was generated at: 20:08:59 UTC Nov 24 2007<br />
Key name: TEST.server<br />
Temporary key<br />
 Usage: Encryption Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  307C300D 06092A86 4886F70D 01720103 00036B00 30680261 00AEC9A3 4078450F<br />
  B1714135 F66FC617 3083F337 1309D493 654BC77D 4D08DE27 5A54FF44 C4CE0174<br />
  507385A9 99B93D70 4E980CE1 89465B14 00E2C26D A633F1FB C4D08A90 3A8EF761<br />
  EBB41B0D C3EB2190 E4FD1E4B E519A06E 4B6BAE46 4E1FA9D8 C1020301 0001<br />
% Key pair was generated at: 20:11:56 UTC Nov 24 2007<br />
Key name: <strong>CHECK</strong><br />
 Storage Device: not specified<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  305C300D 06092A86 4886F70D 01720103 00034B00 30480241 00CCB917 D58E9D45<br />
  BC5EFF15 E2945343 18E5338B 26E1ED9F 869C2B6F 77C27595 8AC0D7B7 9D503F31<br />
  192D08EF C5DE87B5 911779BD 464913CD BB93F883 6F23AE0A 91020301 0001<br />
ciscolab#</p>
<p>ciscolab(config)#<strong>ip ssh rsa keypair-name CHECK</strong>
</p></blockquote>
<p><strong>Q4. May I create more than one session from same computer like telnet?</strong><br />
A4. Yes.</p>
<p><strong>Q5. Is it possible to use SSH1 and SSH2 at the same time?</strong><br />
A5. Yes. If you don’t fix the version with “ip ssh version” configuration command. You can use both protocol simultaneously as shown below.</p>
<blockquote><p>ciscolab ><strong>sh ssh </strong><br />
Connection      Version Encryption      State                   Username<br />
0               1.5     <strong>3DES</strong>            Session started         sshtest<br />
Connection Version Mode Encryption  Hmac         State                 Username<br />
1          2.0     IN   <strong>aes256-cbc</strong>  hmac-sha1    Session started       sshtest<br />
1          2.0     OUT  <strong>aes256-cbc</strong>  hmac-sha1    Session started       sshtest<br />
ciscolab></p></blockquote>
<p>As you can see here SSH1 uses 3DES and SSH2 uses AES. </p>
<p><strong>Q6. Does SSH cause a slowdown on my device?</strong><br />
A6. No. I made some tests with both SSH1 and SSH2. Tests have been done on Cisco 7206 VXR, Cisco 3845 and Cisco 1841 with size of key modulus 2048. In the 1841 router, key generation took some time (30-40 seconds).  There was a small delay (1-2 second) when I first connected the device, but rest of the interaction was same like the telnet. CPU utilization was at %1 and memory was OK.</p>
<p><strong>Q7. I have copy my whole router / switch configuration but SSH does not work. Why?</strong><br />
A7. Did you create rsa certificate? Crypto key generate command is a configuration mode command, but it is not a part of the configuration. It will be used for creating your rsa certificate then it is gone. So, just copying configuration is not enough. </p>
<p>Please leave a comment if you have any other questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BGP Configuration for Cisco Routers</title>
		<link>http://cisco-network.com/hands-on/bgp-configuration-for-cisco-routers/</link>
		<comments>http://cisco-network.com/hands-on/bgp-configuration-for-cisco-routers/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 20:21:46 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[bgp]]></category>
		<category><![CDATA[cisco 3845]]></category>
		<category><![CDATA[cisco router]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/bgp-configuration-for-cisco-routers/</guid>
		<description><![CDATA[I want to show a basic BGP configuration for Internet access. In our case, we have two carriers (Sprint &#038; Level3) and we act as an enterprise company, which needs reliable Internet access. As a precondition we need an Autonomous System Number (ASN) and an IP address block assigned to us. We have to apply [...]]]></description>
			<content:encoded><![CDATA[<p>I want to show a basic BGP configuration for Internet access. In our case, we have two carriers (Sprint &#038; Level3) and we act as an enterprise company, which needs reliable Internet access.<br />
As a precondition we need an Autonomous System Number (ASN) and an IP address block assigned to us. We have to apply ARIN / RIPE / APNIC / LACNIC / AFRINIC for this purpose. We assume that we have 6767 as our AS number and 193.93.93.0/24 as our official IP block.<br />
<a href='http://cisco-network.com/wp-content/uploads/2007/10/bgp_configuration_sample.GIF' title='bgp_configuration_sample.GIF'><img src='http://cisco-network.com/wp-content/uploads/2007/10/bgp_configuration_sample.thumbnail.GIF' alt='bgp_configuration_sample.GIF' /></a></p>
<p>To show some different conditions, our connected Level3 router is also the BGP router, but Sprint BGP router has been located 3 hops away.</p>
<blockquote><p>! We are starting with router command with our ASN like EIGRP/OSPF configuration<br />
<strong>router bgp 6767</strong><br />
! We have one router in our case and we don’t need IGP / BGP synchronization it is default in newest IOSes<br />
 <strong>no synchronization</strong><br />
! To have some idea about our peering history we are recording events<br />
 <strong>bgp log-neighbor-changes</strong><br />
! We are announcing our network<br />
 <strong>network 193.93.93.0 </strong><br />
! Our first neighbor is Sprint, we have to define neighbor ASN<br />
 <strong>neighbor 122.22.33.1 remote-as 1239</strong><br />
! Descriptions are always helpful<br />
 <strong>neighbor 122.22.33.1 description Sprint </strong><br />
! Our bgp neighbor in Sprint 3 hops away<br />
 <strong>neighbor 122.22.33.1 ebgp-multihop 3</strong><br />
! Sprint will use our Loopback IP (193.93.94.1) for us as the neighbor<br />
 <strong>neighbor 122.22.33.1 update-source Loopback 0</strong><br />
! If we have enough memory, we can prevent BGP session resets on inbound updates<br />
 <strong>neighbor 122.22.33.1  soft-reconfiguration inbound</strong><br />
! We won’t announce any network other than ourselves<br />
 <strong>neighbor 122.22.33.1 filter-list 1 out</strong><br />
! Now the Level 3<br />
<strong> neighbor 111.11.11.1 remote-as 3356<br />
 neighbor 111.11.11.1 description LevelThree<br />
 neighbor 111.11.11.1 soft-reconfiguration inbound<br />
 neighbor 111.11.11.1 filter-list 1 out<br />
 no auto-summary</strong><br />
!<br />
! Sprint BGP bridgehead is not directly connected to our router<br />
! We must add necessary routing<br />
<strong>ip route 122.22.33.1 255.255.255.255 122.22.22.1</strong><br />
!<br />
! This filter means we are not announcing Sprint networks to Level3 or vice versa.<br />
<strong>ip as-path access-list 1 permit ^$</strong><br />
!</p></blockquote>
<p>In the end, if you are not on the middle of the Internet, BGP configuration is not a big issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/bgp-configuration-for-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cisco 3845 Router Product Review</title>
		<link>http://cisco-network.com/product-reviews/cisco-3845-router-product-review/</link>
		<comments>http://cisco-network.com/product-reviews/cisco-3845-router-product-review/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 23:15:14 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[cisco 3845]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[product review]]></category>

		<guid isPermaLink="false">http://cisco-network.com/product-reviews/cisco-3845-router-product-review/</guid>
		<description><![CDATA[Overview The first impression of Cisco 3845 router on me was that I felt it is too heavy.So, do not try to install it to rack alone. It has two internal power supplies (one by default). Don’t forget to order the redundant one, if you plan to run it for critical business. The LAN connection [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Overview</strong><br />
The first impression of Cisco 3845 router on me was that I felt it is too heavy.So, do not try to install it to rack alone. It has two internal power supplies (one by default). Don’t forget to order the redundant one, if you plan to run it for critical business. </p>
<p>The LAN connection is also redundant with two build-in Gigabit Ethernet interfaces. The good thing the GE 0/0 interface has SFP option. You can reach the far LAN Edge points on a Campus LAN. Another alternative is to use it for Metro Ethernet. </p>
<p>High capacity memory is another powerful feature of this router when compared with 2700 series routers. This router comes with 256 MB memory and you can upgrade it up to 1 GB. This really costs too much if you use original Cisco memory, but OEM alternatives exists in the market.</p>
<p>There is one integrated Virtual Private Network (VPN) Module. This module is added for the performance of encryption and not mandatory for VPN, but as Cisco says, it increases the speed 10 times. I did not use VPN on this router, but it looks capable of handling higher loads. </p>
<p>There are 4 HWIC slots and 4 NM slots. It has almost every kind of modules (Etherswitch, wireless controller, ATM, T1/E1, NAM !!! ,FXS,FXO etc.)</p>
<p><strong>My Experience</strong><br />
I use one of these routers for the Internet access with Advanced Enterprise IOS. BGP running on it with full table, cef enabled, Reflexive IP access list exist on the router. I also use it as a router firewall (Security guys call it as choke point). The CPU utilization is just about %2 &#8211; 3. I have to accept that this router was a bit oversized for my needs. I could have saved $3,500 (from list prices) if I use Cisco 3825 router. </p>
<p>You have to ask below mentioned questions before decide to buy a Cisco 3845 Integrated Services Router.<br />
-	Do I need more than 256 MB memory?<br />
-	Do I have several voice clients?<br />
-	How much concurrent VPN connection is expected?<br />
-	Do I need speeds like E3/T3?<br />
-	Do I need different kind of functionalities on one router (e.g. Wireless, ATM, Etherswitch ports)?<br />
It is waste to invest money unless your answers for more than two questions are in affirmative.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/product-reviews/cisco-3845-router-product-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multilink PPP over Frame Relay</title>
		<link>http://cisco-network.com/hands-on/multilink-ppp-over-frame-relay/</link>
		<comments>http://cisco-network.com/hands-on/multilink-ppp-over-frame-relay/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 06:25:26 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[frame relay]]></category>
		<category><![CDATA[multilink ppp]]></category>

		<guid isPermaLink="false">http://cisco-network.com/uncategorized/multiple-ppp-over-frame-relay/</guid>
		<description><![CDATA[If you have two frame relay line between two location and you need these lines to balance the load, then this article will guide you. We need two techniques to do it. First one is multilink PPP, which can be used to bundle leased lines. The second one is PPP over Frame Relay, which lets [...]]]></description>
			<content:encoded><![CDATA[<p>If you have two frame relay line between two location and you need these lines to balance the load, then this article will guide you. We need two techniques to do it. First one is multilink PPP, which can be used to bundle leased lines. The second one is PPP over Frame Relay, which lets frame relay lines used like leased lines.</p>
<p>In my example, I will show how I bundle two 2 Mbps frame relay line to act as one 4 Mbps line.<br />
<img src="http://cisco-network.com/wp-content/uploads/2007/09/pppofr.PNG" alt="PPPoFR Schema" /><br />
We have to do below configuration on both sides.</p>
<p>1)We will make an ordinary frame relay configuration on serial interfaces except “frame-relay interface-dlci 16 ppp Virtual-Template1” line. Here we are adding Virtual-Template1. frame-relay traffic-shaping command is a MUST.<br />
2)Under “interface Virtual-Template1“, we describe that it is a part of multilink interface<br />
3)Under “interface Multilink1” we will configure IP settings.</p>
<blockquote><p><strong>interface Serial0/0<br />
description Physical Interface 1<br />
bandwidth 2000<br />
no ip address<br />
encapsulation frame-relay<br />
frame-relay fragmentation voice-adaptive deactivation 15<br />
frame-relay traffic-shaping<br />
frame-relay interface-dlci 16 ppp Virtual-Template1<br />
frame-relay lmi-type ansi</strong></p>
<p><strong>interface Serial0/1<br />
description Physical Interface 2<br />
bandwidth 2000<br />
no ip address<br />
encapsulation frame-relay<br />
frame-relay fragmentation voice-adaptive deactivation 15<br />
frame-relay traffic-shaping<br />
frame-relay interface-dlci 16 ppp Virtual-Template1<br />
frame-relay lmi-type ansi</strong></p>
<p><code><strong>interface Virtual-Template1<br />
no ip address<br />
ppp multilink<br />
ppp multilink group 1</strong></code></p>
<p><code><strong>interface Multilink1<br />
 description Bundled Interface<br />
 bandwidth 4000<br />
 ip address 10.87.1.1 255.255.255.248<br />
 ppp multilink<br />
 ppp multilink group 1</strong></code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/multilink-ppp-over-frame-relay/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SSH @ Cisco</title>
		<link>http://cisco-network.com/hands-on/ssh-cisco/</link>
		<comments>http://cisco-network.com/hands-on/ssh-cisco/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 15:45:23 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[cisco 3845]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[ssh access]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/ssh-cisco/</guid>
		<description><![CDATA[Recently, I had to swap the Internet router of my company. BGP and cef ate up the whole memory and it was not possible to upgrade the memory of Cisco 3725 router beyond 256MB. It was time to change it. I had a chance to install a new Cisco 3845 with 1GB memory. Everything was [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had to swap the Internet router of my company. BGP and cef ate up the whole memory and it was not possible to upgrade the memory of Cisco 3725 router beyond 256MB. It was time to change it.</p>
<p>I had a chance to install a new Cisco 3845 with 1GB memory. Everything was fine except SSH access that I needed because of security policy. I searched the web and found <a target="_blank" href="http://www.cisco.com/warp/public/707/ssh.shtml">“Configuring Secure Shell on Routers and Switches Running Cisco IOS”</a> document on Cisco web site. It was a little bit different than current one. I made a configuration as explained, but it was not good enough and access to the router via SSH was not possible.</p>
<p>About one week later, I realized that </p>
<ul>
<li>SSH only supports authentication with username/password, but it does not support just access password like telnet </li>
<li>So, I had to create a user and set a password with username command</li>
<li>I had to enable aaa new-model OR issue login local command under line vty for username/password authentication. </li>
<li> Also a hostname and a domain name were required to generate the keys, since router uses its FQDN as the label of the key pair.</li>
<li>SSH is enabled by default and I do not need to enable it myself. </li>
</ul>
<p>Necessary steps to enable SSH are mentioned below.</p>
<p>PRECONDITION: You need a K9 IOS (newer than 12.1) to enable SSH. Catalyst 2900 Series switches do not support SSH.</p>
<blockquote><p>1) You MUST set a host name<br />
<strong><code>hostname ciscolab</code></strong></p>
<p>2) You MUST set a ip domain name<br />
<strong><code>ip domain-name mydomain.com</code></strong></p>
<p>3) You MUST enable aaa new-model OR set “login local” under vty configuration but not just “login”<br />
<strong><code>aaa new-model</code></strong></p>
<p>4) You MUST create a user<br />
<strong><code>username sshtest password 0 sshpass</code></strong></p>
<p>5) You MUST generate RSA keys<br />
<strong><code>crypto key generate rsa</code></strong></p>
<p>if you have RSA keys before you will receive a message, type yes<br />
<code>% You already have RSA keys defined named ciscolab.mydomain.com.<br />
% Do you really want to replace them? [yes/no]: <strong>yes</strong></code></p>
<p>it will ask for modulus size, 1024 is fine (it depends your security needs)<br />
<code>How many bits in the modulus [512]: <strong>1024</strong></code></p>
<p>6) You MUST set vty access method to all OR ssh (if you chose ssh telnet will be disabled)<br />
<strong><code>line vty 0 4<br />
&nbsp;&nbsp;transport input ssh</code></strong></p></blockquote>
<p>7) By using SecureCRT (licensed) or Putty (free), chose SSH1 (SSH in Putty) for the protocol enter hostname or IP address and click connect (Open in Putty). It will ask for username and password. Do not touch the other settings, you do not need them.</p>
<p>If you are able to access your device with SSH and still have some other questions please have a look at <a href="http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/">Advanced SSH settings for Cisco IOS </a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/ssh-cisco/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

