Installing Minicom to connect to Cisco router using console cable.

I bought this Connectland usb/serial connector to configure my Cisco routers. Since now I’m using Ubuntu, this Linux just picks up the connector.

[4309733.840000] usb 2-2: new full speed USB device using uhci_hcd and address 5
[4309733.936000] pl2303 2-2:1.0: PL-2303 converter detected
[4309733.940000] usb 2-2: PL-2303 converter now attached to ttyUSB0

Then I installed minicom.

$ sudo apt-get install minicom

Run the minicom program and using command CTRL-a z o (inside minicom) to configure the minicom serial port. Make sure the configuration look like this.

A - Serial Device : /dev/ttyUSB0
B - Lockfile Location : /var/lock
C - Callin Program :
D - Callout Program :
E - Bps/Par/Bits : 9600 8N1
F - Hardware Flow Control : Yes
G - Software Flow Control : No

Save the configuration with whatever name you want. In this case is “cisco”.

Next time you want to configure your router using minicom, just type “minicom cisco”

28 Replies to “Installing Minicom to connect to Cisco router using console cable.”

  1. I tried minicom once, but just for triing. 😀 btw, how to close minicom in “normal” way? cause I’ve tried, but what I did was close the terminal also.. :)) how embarassed I am.. haha..

  2. Hi David,

    I’m CCNP certified, but a newbie to Linux (I’m playing with Knoppix v5 on my normally WinXP laptop). I tried your method, but with no result at first. However, when I changed /dev/ttyusb0 to /dev/ttyUSB0, as you wrote, I got into my AP no probs (flow control software was the only other change, but Cisco specify this anyway). Thanks for a for once clear explanation on how to configure Linux.

  3. George,

    You have to make sure that your linux picks-up your usb device. After you plug your USB dongle, type dmesg and you should see those info I had mentioned. Once you got your device, mine is on /dev/ttyUSB0, then you can use it using minicom.

    You can contact me on YM. See ABOUT page.

  4. David,

    Thanks for this howto. I am also using Ubuntu 6.06 LTS and a Belkin USB-Serial adapter. Now everything is working great. Keep up the good work!

    Tristan Rhodes

  5. I am trying to console to my cisco routers as well using a usb-serial adapter. Dynex is the brand of the adapter and their website shows that they only have windows drivers. I believe the chipset of the adapter is Prolific. But when I plug the adapter into the usb port, nothing appears on the terminal window. dmesg has nothing in it either. So it looks like nothing is being detected. I am using SuSe 10.1. Are there any packages that I need to download to make this work?

  6. Using USB to serial adapters is highly undesirable for cisco configuration as it voids any warranty you may have with cisco (so if you are worried about that sort of thing, please read on, but if you have an old cisco for playing around with, disregard this).
    Because of the nature of USB injecting power, it can potentially damage the console port of a cisco router/switch/etc. I have experienced this first hand when someone didn’t want to use a serial port for a brand new cisco 3550 gigabit switch and now you can no longer console to it. Cisco will not replace it either.

  7. Hello David, thanks a lot for your help

    It is working well with minicom. I am wondering how may i save the cisco logging output from minicom to text files as tera term pro under windows ?

  8. I am a newbie to Linux and would like to connect to my cisco router using mini com with the standard serial adapter. How do i specify the com port its on i got the baud rate its not taking.. Someone help this poor sole.. ahhhhhhhhhh.. help

  9. I’m using Novell’s SLED 10, configuring minicom to program Nortel Baynetworks switches and hubs. I can issue the ^Y to login to the 250 series hubs & 420 series switches using minicom. But, I’m not able to do the same with the 470 & 5510 series switches. Has anyone seen a difference in doing so? I’ve checked several different firmware versions of these models to no avail. This is all very, very new to me, but I’ve picked up quite a bit in the past three weeks thanks to forums like this one.

  10. hai,. i tried minicom on ubuntu feisty but when i type dmesg i cannot found device. i used console cable with converter to DB9..

  11. Hi I am not able to connect my sonyericsion mobile on uubuntu. how to connect my mobile to ubuntu Via USPB port through data cable .
    Plz help me

  12. Note that newer ubuntu versions no longer come with the Keyspan USB serial converter binary drivers (blob) pre-compiled into the kernel. Apparently you have to re-compile them in yourself. It works fine on 6.06, is missing in 7.1. If you get a chance be sure to let keyspan know that we’d prefer to be customers of companies that open source their drivers.

  13. Hi, I have minicom working on my OpenSuse 10.3 laptop.
    I’d like to know if there is a way to upload a configuration script to the switch with minicom the way I would in Hyperterminal?


  14. Hi.. I have a little problem installing minicom. I ve download a minicom-2.3 package and copy it on the desktop. When i try to installed it, it apperead that there is such error… the error goes like this…. “E: Couldn’t find package minicom”… the command i use is ~$sudo apt-get install minicom”… Pls help…

  15. David, Thanks so much for this guide. It helped me to connect to my ASA5505 with a USB-to-Serial and to the serial port in my dock (after reading MichaelJ comment). Minicom is working great! Again, thanks!

Leave a Reply