{"id":473,"date":"2013-08-15T02:14:19","date_gmt":"2013-08-15T01:14:19","guid":{"rendered":"http:\/\/tech.moosaico.com\/blog\/?p=473"},"modified":"2013-08-29T22:32:59","modified_gmt":"2013-08-29T21:32:59","slug":"cisco-console-via-aux-port","status":"publish","type":"post","link":"https:\/\/thejoyofstick.com\/blog\/2013\/08\/15\/cisco-console-via-aux-port\/","title":{"rendered":"Cisco Console via aux Port"},"content":{"rendered":"<p>You need to use your Cisco through the console, like an enable secret recovery, but you forgot your usb-serial dongle. If you have another Cisco near by with remote access you are safe!<\/p>\n<h2>Preparation<\/h2>\n<p>Start connecting a Cisco console cable (cross over cable) from the console port of the router (<code>routerc<\/code>) to the auxiliary port of the helpful router (<code>routerh<\/code>).<\/p>\n<p>After remotely accessing <code>routerh<\/code> configure it&#8217;s <code>aux<\/code> line<\/p>\n<pre lang=\"linux\">\r\nrouterh#conf t\r\nEnter configuration commands, one per line.  End with CNTL\/Z.\r\nrouterh(config)#line aux 0\r\nrouterh(config-line)# transport input telnet\r\nrouterh(config-line)#^Z\r\nrouterh#\r\n<\/pre>\n<h2>Using the console<\/h2>\n<p>We need to know the line number of the AUX port and the IP address of this <code>routerh<\/code><\/p>\n<pre lang=\"linux\">\r\nrouterh#sh line\r\n   Tty Typ     Tx\/Rx    A Modem  Roty AccO AccI   Uses   Noise  Overruns   Int\r\n      0 CTY              -    -      -    -    -      0       0     0\/0       -\r\n      1 AUX   9600\/9600  -    -      -    -    -     13      21     0\/0       -\r\n*     2 VTY              -    -      -    -    5    202       0     0\/0       -\r\n      3 VTY              -    -      -    -    5      1       0     0\/0       -\r\n      4 VTY              -    -      -    -    5   4358       0     0\/0       -\r\n      5 VTY              -    -      -    -    5    125       0     0\/0       -\r\n      6 VTY              -    -      -    -    5      1       0     0\/0       -\r\n\r\nrouterh#\r\n<\/pre>\n<p>It shows the aux port is on line 1. Our IP address is 192.168.1.1<\/p>\n<p>To access the console you have to telnet your local IP address at port 2000 plus the line number:<\/p>\n<pre lang=\"linux\">\r\nrouterh#telnet 192.168.1.1 2001\r\nTrying 192.168.1.1, 2001 ... Open\r\n\r\nrouterh line 1 \r\n\r\n\r\nUser Access Verification\r\n\r\nUsername: biafra\r\nPassword: \r\n[ENTER]\r\n\r\nrouterc line 1 \r\n\r\n\r\nUser Access Verification\r\n\r\nUsername: biafra\r\nPassword: \r\n\r\nrouterc#\r\n<\/pre>\n<p>And you are now using the console of <code>routerc<\/code>. Please note that you may have no console access restrictions as it&#8217;s shown here because of AAA.<\/p>\n<h2>Suspending and Disconnecting<\/h2>\n<p>You can get back to <code>routerh<\/code> with <code>ctrl-6 x<\/code> (or <code>ctrl-shift-6 x<\/code>).<\/p>\n<pre lang=\"linux\">\r\nrouterh#sh users\r\n    Line       User       Host(s)              Idle       Location\r\n   1 aux 0     biafra     idle                 00:00:13 192.168.1.1\r\n*  2 vty 0     biafra     192.168.1.1          00:00:09 10.0.0.10\r\n\r\n  Interface    User               Mode         Idle     Peer Address\r\n\r\nrouterh#\r\n<\/pre>\n<p>Just hitting <code>enter<\/code> or entering the session number you are connected again to the remote console.<\/p>\n<p>To disconnect just check the aux line with <code>sh users<\/code> and<\/p>\n<pre lang=\"linux\">\r\nrouterh#clear line 1\r\n[confirm]\r\n [OK]\r\nrouterh#\r\n[Resuming connection 1 to 192.168.1.1 ... ]\r\n\r\n[Connection to 192.168.1.1 closed by foreign host]\r\nrouterh#\r\n\r\nrouterh#sh users\r\n    Line       User       Host(s)              Idle       Location\r\n*  2 vty 0     biafra     192.168.1.1          00:00:14 10.0.0.10\r\n\r\n  Interface    User               Mode         Idle     Peer Address\r\n\r\nrouterh#\r\n<\/pre>\n<h2>To remember<\/h2>\n<p>Configure the aux port and suspend the console with <code>ctrl-6 x<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to use your Cisco through the console, like an enable secret recovery, but you forgot your usb-serial dongle. If you have another Cisco near by with remote access you are safe! Preparation Start connecting a Cisco console cable&hellip; <a href=\"https:\/\/thejoyofstick.com\/blog\/2013\/08\/15\/cisco-console-via-aux-port\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,13],"tags":[68,66,67],"class_list":["post-473","post","type-post","status-publish","format-standard","hentry","category-device","category-network","tag-aux","tag-cisco","tag-console"],"jetpack_shortlink":"https:\/\/wp.me\/pcmwlL-7D","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":23,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":543,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions\/543"}],"wp:attachment":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}