≡ Menu

How to configure cisco router using linux for (COM port) configuration

If you would like to configure Cisco router using Linux or FreeBSD (connected to a local COM port). Use the following instruction to configure device:

1) Connect cisco router to com port using serial cable

2) Use program like minicom (type minicom at a shell prompt)
$ minicom

3) Select the port, speed and /dev/ttyS0 as com1 port and save configuration as dfl. Next select Exit

4) Continue with your router configuration…

5) For more information on minicom read man page here

6) Other links:

* Cisco Router Configuration Tutorial
* Accessing a Cisco Router using FreeBSD (command also works with linux)

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 10 comments… add one }

  • Anonymous August 30, 2004, 11:59 pm

    Hi Sir,

    How r u. This is Mithun.
    I’m very happy,you back again.
    At this time me and Vishwas undergonig with CCNA.
    This article most helpful for me.
    My email-id – gaikwadmithun@yahoo.com
    Thank You.

  • speshak December 1, 2007, 4:14 pm

    I realize this is an old post but I’ve made it my mission in life that whenever someone mentions minicom I’ll spread the good news of screen. Every admin should know GNU screen already (if not, go look it up) and it turns out that you can run ‘screen /dev/ttyS0’ and it takes care of setting up all of the speeds/etc. Plus you can disconnect and leave it running if you’re interested in catching log messages, etc.

  • nizoys September 24, 2008, 4:41 am

    Thanks man.
    its really helping..

  • JWedrowycz October 17, 2008, 10:35 pm

    Hi everybody,

    My problem looks like this: after establishing the connection with minicom, cu, cutecom or gtkterm my laptop (IBM T42 in the dockstation II) sends every 8 seconds “AT” string and after about 4 seconds “^Z” string.

    In Exmp:

    Cisco#AT
    Translating “AT”
    % Unknown command or computer name, or unable to find computer address
    Cisco#^Z
    Cisco#
    Cisco#AT
    Translating “AT”
    % Unknown command or computer name, or unable to find computer address
    Cisco#^Z
    Cisco#
    Cisco#AT

    In that situation only cutecom allows me to work somehow (for example write an enable pass for privilaged mode). So the problem lies in configuration of the Ubuntu system 8.04 2.6.24-21.42-generic which I am using.
    I would be very glad for any suggestions.

    Thanks in advance,
    JWedrowycz

  • carvwa October 28, 2008, 10:55 pm

    OMG! Thank you. I have been looking for months for how to get terminal emulation from linux! This works perfectly for me.

    # speshak Says: December 1st, 2007 at 4:14 pm

    I realize this is an old post but I’ve made it my mission in life that whenever someone mentions minicom I’ll spread the good news of screen. Every admin should know GNU screen already (if not, go look it up) and it turns out that you can run ’screen /dev/ttyS0′ and it takes care of setting up all of the speeds/etc. Plus you can disconnect and leave it running if you’re interested in catching log messages, etc.

  • Ravi Vishwakarma August 8, 2009, 1:00 pm

    Dear All,

    Linux#minicom -o
    There are more option avilable. You have to select proper option.

  • Masum Parvez October 19, 2009, 6:53 am

    Hi Sir,

    How r u.I am masum parvez from Bangladesh.I had learned linux server configuaration.Now I will want to learn how to configure a cisco router into a linux server.For this please you will help me?

  • eswar August 19, 2011, 3:02 pm

    hi sir,

    iam preparing to CCNA , which BOOK is preferable to pass the EXAM .
    how to get the terminal connection (hyper terminal) from LINUX.

  • prashant May 22, 2012, 7:32 am

    thanks for this

  • Conrad June 27, 2013, 7:04 am

    How to is exit?

Leave a Comment