Posts RSS Comments RSS Computer Network, System and Security stuff
This wordpress theme is downloaded from wordpress themes website.

How to connect to a Cisco device using the serial port on Linux

Using the serial port is still necessary to manage some devices, when it is reseted to factory defaults. It could be also a security choice…

Nowadays many computers – and especially laptops don’t have anymore a built-in serial port. Not a problem, there are many cheap serial-usb converters like this.

As an alternative to the Hyperterminal of Microsoft, there is Minicom on Linux.

It is very easy to install and configure :

$ apt-get install minicom lrzsz

Before going further, you need to know what is the corresponding Linux device for the port where you plugged the router. As I used an usb adapter, my device was /dev/ttyUSB0. Otherwise, it will probably be one of the /dev/ttyS* devices.
Checking the dmesg output while you plug the device will give you the right device to use.

Now start minicom this way to edit the configuration :

$ minicom -s

In the menu, select Serial Port Configuration and :

  • press A and update the serial port path with the one you found in dmesg
  • press E and then C to change the speed to 9600
  • press F to switch off the hardware flow control
  • select Save the configuration as… and name it as, let’s say, “cisco”

You should be able to connect right now. Next time, just start Minicom like this :

$ minicom cisco

That’s it !

Related posts:

  1. Practicing Cisco networking with GNS3 and Dynamips
  2. OpenVPN and DNS on a linux client
  3. FTP configuration issues
  4. Disk Encryption on Linux
  5. ACL on Linux

3 Responses to “How to connect to a Cisco device using the serial port on Linux”

  1. on 28 Nov 2007 at 5:36 pmStranger

    Hey thank you for normal info :-) … One thing is still question how it is possible connect usb port to console of router :-)
    Thank u in advance

  2. on 28 Nov 2007 at 5:46 pmStranger

    Oh… I have found answer in another your article.
    Thanks

  3. on 29 Jan 2008 at 9:50 amFred Howell

    Thanks. quick and to the point. What I need at 2:49 in the morning. I will read more of your stuff.

Trackback this post | Feed on Comments to this post

Leave a Reply

Still buying movies offline?