{"id":1994,"date":"2019-06-21T20:43:20","date_gmt":"2019-06-21T20:43:20","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=1994"},"modified":"2020-05-14T19:38:42","modified_gmt":"2020-05-14T19:38:42","slug":"how-to-connect-to-a-cisco-device-using-usb-console","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=1994","title":{"rendered":"How to connect to a Cisco Device using USB Console"},"content":{"rendered":"<p>This article was written using instructions for Ubuntu, but was actually tested on a Raspberry Pi.\u00a0 Cool, eh?<br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=PRwHNd-u_cA\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=PRwHNd-u_cA<\/a><\/p>\n<h3>Install minicom<\/h3>\n<pre>$ sudo apt-get install minicom<\/pre>\n<h3>Find the device<\/h3>\n<pre>$ dmesg | grep ttyUSB\r\n[    5.494345] usb 1-1.2: Moschip 2 port adapter converter now attached to ttyUSB0<\/pre>\n<p>Note the device: In this case it is ttyUSB0<\/p>\n<h3>Configure Minicom<\/h3>\n<h4>Run Minicom in setup mode<\/h4>\n<pre>$ sudo minicom -s<\/pre>\n<pre>+-----[configuration]------+\r\n| Filenames and paths      |\r\n| File transfer protocols  |\r\n| Serial port setup        |\r\n| Modem and dialing        |\r\n| Screen and keyboard      |\r\n| Save setup as dfl        |\r\n| Save setup as..          |\r\n| Exit                     |\r\n| Exit from Minicom        |\r\n+--------------------------+<\/pre>\n<h3>Configure the Serial Device<\/h3>\n<h4>Select &#8216;Serial port setup&#8217; and press [ Enter ]<\/h4>\n<pre>+-----------------------------------------------------------------------+\r\n| A -    Serial Device      : \/dev\/tty8                                 |\r\n| B - Lockfile Location     : \/var\/lock                                 |\r\n| C -   Callin Program      :                                           |\r\n| D -  Callout Program      :                                           |\r\n| E -    Bps\/Par\/Bits       : 115200 8N1                                |\r\n| F - Hardware Flow Control : Yes                                       |\r\n| G - Software Flow Control : No                                        |\r\n|                                                                       |\r\n|    Change which setting?                                              |\r\n+-----------------------------------------------------------------------+<\/pre>\n<h4>At the &#8216;Change which setting?&#8217; prompt, press [A]<\/h4>\n<p>There is no need to press [ Enter ], your cursor will be moved to the end of the Serial Device Path<\/p>\n<h4>Change the setting to match the setting found from the dmesg command.<\/h4>\n<p>In this example, we&#8217;ll change <code>\/dev\/tty8<\/code> to <code>\/dev\/ttyUSB0<\/code>.<\/p>\n<h5>After the setting has been changed, press [ Enter ] to return to the &#8216;Change which setting&#8217; prompt.<\/h5>\n<pre>+-----------------------------------------------------------------------+\r\n| A -    Serial Device      : \/dev\/ttyUSB0                              |\r\n| B - Lockfile Location     : \/var\/lock                                 |\r\n| C -   Callin Program      :                                           |\r\n| D -  Callout Program      :                                           |\r\n| E -    Bps\/Par\/Bits       : 115200 8N1                                |\r\n| F - Hardware Flow Control : Yes                                       |\r\n| G - Software Flow Control : No                                        |\r\n|                                                                       |\r\n|    Change which setting?                                              |\r\n+-----------------------------------------------------------------------+<\/pre>\n<h4>Press [E] to edit the Bps\/Par\/Bits setting<\/h4>\n<pre>+---------[Comm Parameters]----------+\r\n|                                    |\r\n|     Current: 115200 8N1            |\r\n| Speed            Parity      Data  |\r\n| A: &lt;next&gt;        L: None     S: 5  |\r\n| B: &lt;prev&gt;        M: Even     T: 6  |\r\n| C:   9600        N: Odd      U: 7  |\r\n| D:  38400        O: Mark     V: 8  |\r\n| E: 115200        P: Space          |\r\n|                                    |\r\n| Stopbits                           |\r\n| W: 1             Q: 8-N-1          |\r\n| X: 2             R: 7-E-1          |\r\n|                                    |\r\n|                                    |\r\n| Choice, or &lt;Enter&gt; to exit?        |\r\n+------------------------------------+<\/pre>\n<h4>Press [C], then [Q]<\/h4>\n<p>The &#8216;Current: &#8216; setting at the top of the menu will change to &#8216;9600 8N1&#8217;<\/p>\n<pre>+---------[Comm Parameters]----------+\r\n|                                    |\r\n|     Current: 9600 8N1              |\r\n| Speed            Parity      Data  |\r\n...<\/pre>\n<h4>Press [ Enter ] to return to the Serial port settings menu.<\/h4>\n<p>You will see the new setting on the &#8216;Bps\/Par\/Bits&#8217; section.<\/p>\n<pre>...\r\n| E -    Bps\/Par\/Bits       : 9600 8N1                                |\r\n...<\/pre>\n<h4>Press [ Enter ] to return to the &#8216;configuration&#8217; menu.<\/h4>\n<pre>+-----[configuration]------+\r\n| Filenames and paths      |\r\n| File transfer protocols  |\r\n| Serial port setup        |\r\n| Modem and dialing        |\r\n| Screen and keyboard      |\r\n| Save setup as dfl        |\r\n| Save setup as..          |\r\n| Exit                     |\r\n| Exit from Minicom        |\r\n+--------------------------+<\/pre>\n<h4>Select &#8216;Save setup as..&#8217; then press [ Enter ]<\/h4>\n<pre>...\r\n| Save setup as..          |\r\n...<\/pre>\n<h4>At the &#8216;Give name to this configuration?&#8217; prompt, enter a short name for these settings then press [ Enter ].<\/h4>\n<p>For this example, I&#8217;m using &#8216;cisco&#8217;<\/p>\n<pre>+-----------------------------------------+\r\n|Give name to save this configuration?    |\r\n|&gt; cisco                                  |\r\n+-----------------------------------------+\r\nAfter pressing [ Enter ] you'll see a brief pop-up letting you know the configuration was saved.<\/pre>\n<h4>Select &#8216;Exit from Minicom&#8217; and press [ Enter ]<\/h4>\n<p>&nbsp;<\/p>\n<h3>Run Minicom<\/h3>\n<p>&nbsp;<\/p>\n<h4>Back at the Linux command prompt, run minicom with the name of the configuration you saved.<\/h4>\n<p>&nbsp;<\/p>\n<pre>$ sudo minicom cisco<\/pre>\n<pre>Welcome to minicom 2.7.1\r\n\r\nOPTIONS: I18n\r\nCompiled on Aug 13 2017, 15:25:34.\r\nPort \/dev\/ttyUSB0, 11:06:34\r\n\r\nPress CTRL-A Z for help on special keys<\/pre>\n<h4>Press [ Enter ] to see the prompt for the device you are now consoled into.<\/h4>\n<pre>Router&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This article was written using instructions for Ubuntu, but was actually tested on a Raspberry Pi.\u00a0 Cool, eh? https:\/\/www.youtube.com\/watch?v=PRwHNd-u_cA Install minicom $ sudo apt-get install minicom Find the device $ dmesg | grep ttyUSB [ 5.494345] usb 1-1.2: Moschip 2 port adapter converter now attached to ttyUSB0 Note the device: In this case it is ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=1994\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,2,1],"tags":[],"class_list":["post-1994","post","type-post","status-publish","format-standard","hentry","category-icnd1-ccent","category-networking","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1994"}],"version-history":[{"count":9,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1994\/revisions"}],"predecessor-version":[{"id":2888,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/1994\/revisions\/2888"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}