|
|
Case[1082]: Connecting to a Cisco Router Console using Linux
|
|
Printable View
| Case |
| Title: | Connecting to a Cisco Router Console using Linux |
| Number: | 1082 |
| Created: | 06/29/2006 18:24 |
| Created By: | bemowski |
| Page Views: | 20729 |
|
| Status: |
ACTIVE
|
| Approver: | unassigned |
| Keywords: | cisco router ios console linux |
| Related Tickets: | |
|
Detail
Here is how to connect a cisco router to a PC running Linux:
1) You have a Cisco router, with a flat, blue console cable. The console cable will have an RJ45 connector at one end, and a 9 pin din serial connector on the other.
2) You have a computer running Linux (I'm using RedHat/Fedora), which has a 9 pin din serial port available.
First, make sure that the serial ports are detected at boot time. I do this with dmesg and grep:
bemo@booker:/home/bemo>dmesg |grep ttyS
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
3) Connect the router to one of the Linux serial ports.
4) You should have a communications program. I use minicom, which is available by default in RedHat 9, as well as Fedora Core up to 4 (and probably beyond). You must run minicom as root.
Set the communication parameters to 9600 N81. The router will not work any faster.
5) Start minicom, and set the serial port and comm parmaters. That should do it. The next thing you see on the console should be the router prompt:
Router>
|
Show System Notes
| User |
Date |
Comment |
| anonymous |
05/20/2010 13:03 |
To exit minicom press Ctrl+A and then Q |
| anonymous |
05/10/2010 03:25 |
how to configure rougher in linux |
| anonymous |
05/10/2010 03:22 |
how to configure ip in linux |
| anonymous |
03/20/2010 21:27 |
Yeah, but how do you exit the IOS once inside? The exit command just restarts the console connection. I can't get back to my Linux session! |
| anonymous |
03/09/2010 09:22 |
DIS DID NOT WORK I AM SO MAD |
| anonymous |
03/05/2010 00:45 |
I want to write more but these days I am doing preparation of different online certifications and I found <a href="http://www.ccnasecuritytest.com">ccna security questions</a> is the best helping source which is providing 100% authentic material. I also spend my extra time in surfing internet, listening music and playing games. After my exams I would like to join your group. |
| anonymous |
02/20/2010 10:39 |
thanks/
minicom - friendly menu driven serial communication program
cutecom - Graphical serial terminal, like minicom
|
| anonymous |
05/26/2009 03:35 |
it worked .. Thanks! |
| anonymous |
11/07/2008 05:30 |
just a detail: if you have a USB to serial converter, look for ttyUSB and don't forget to configure minicom to use it instead of ttyS |
| anonymous |
07/25/2008 16:10 |
<script> |
| anonymous |
01/31/2008 08:35 |
Cool, this got me going in the right direction, thanks! I do need to add some missing items. Or rather, the things I ran into running it on CentOS 5 (Red Hat-based). I'm connecting to a Cisco PIX 501E via serial cable.
1) run 'minicom -s' first, to enter configuration mode, you'll open a text-based menu. Note: Use "ENTER" to exit any menus except the main menu.
2) Under "Serial Port Setup" mine was set to default /dev/modem and 38400. I had to manually change it to 9600 and set the device to /dev/ttyS0. Remember to hit ENTER to exit, do NOT try to use "Q" to "Quit", if you're under the speed/parity selection window that'll change your parity to 2 (this is where I learned that, heh).
3) Go under "Modem and Dialing" and remove the "Init String". Anything in this field will be sent to the device when you connect. The default AT string won't bother a Cisco device as far as I know, especially if it's not in enabled or in config mode when you connect, but it's kinda annoying to have it pop up on connect.
4) From the main menu use "Save setup to DFL" to create a new config file for minicom.
After that, just run minicom and there you are (or at least should be, it worked for me. Tinker where necessary). |
| anonymous |
12/24/2007 09:22 |
The router will work at any speed its console has been configured for. Make sure you choose the speed you have configured otherwise 9600 is default. |
| anonymous |
03/10/2007 19:31 |
Nice. |
|
|
|