Thursday, April 8, 2010

Linux to Cisco console via USB

I've been moving to Ubuntu linux for a while on my daily work. Therefore I have to find a way of using my Ubuntu to do whatever I used to do with Vista.
Today I've just managed to connect my Ubuntu to Cisco console via USB. (note: I'm using USB-to-serial converter).

Here are the steps of make it works:
1. check what is the name of the USB tty
$ dmesg | grep ttyUSB
[ 4272.667300] usb 2-1: pl2303 converter now attached to ttyUSB0

2. Configure the mincom to connect to the port
$ minicom -s

3. Configure the setting below
speed = 9600
parity = none
stop bit = 1
serial = ttyUSB0

4. save setup as dfl
5. exit from mincom
5. start minicom
$ minicom

you should be able to see the Cisco console right now.

1 comment:

jaimeaux said...

minicom is okay, but I recommend using "screen."

syntax:
screen /dev/ttyUSB0

you may need to add yourself to the correct group to get permissions to use the device. It works nicely though, and you can even use multiple screen sessions at once (like a tabbed terminal manager, but in the Linux CLI).