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)

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
10 comments… add one
  • Conrad Jun 27, 2013 @ 7:04

    How to is exit?

  • prashant May 22, 2012 @ 7:32

    thanks for this

  • eswar Aug 19, 2011 @ 15:02

    hi sir,

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

  • Masum Parvez Oct 19, 2009 @ 6:53

    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?

  • Ravi Vishwakarma Aug 8, 2009 @ 13:00

    Dear All,

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

  • carvwa Oct 28, 2008 @ 22:55

    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.

  • JWedrowycz Oct 17, 2008 @ 22:35

    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

  • nizoys Sep 24, 2008 @ 4:41

    Thanks man.
    its really helping..

  • speshak Dec 1, 2007 @ 16:14

    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.

  • Anonymous Aug 30, 2004 @ 23:59

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.