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

by on May 2, 2004 · 10 comments· LAST UPDATED February 5, 2008

in , ,

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)

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 10 comments… read them below or add one }

1 Anonymous August 30, 2004 at 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.

Reply

2 speshak December 1, 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.

Reply

3 nizoys September 24, 2008 at 4:41 am

Thanks man.
its really helping..

Reply

4 JWedrowycz October 17, 2008 at 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

Reply

5 carvwa October 28, 2008 at 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.

Reply

6 Ravi Vishwakarma August 8, 2009 at 1:00 pm

Dear All,

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

Reply

7 Masum Parvez October 19, 2009 at 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?

Reply

8 eswar August 19, 2011 at 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.

Reply

9 prashant May 22, 2012 at 7:32 am

thanks for this

Reply

10 Conrad June 27, 2013 at 7:04 am

How to is exit?

Reply

Leave a Comment

Tagged as: , , , , ,

Previous post:

Next post: