Skip to main content

Access to your switch or router through serial cable

To access to your switch or router through a serial cable you can use tools like kermit or minicom.

To access with kermit in a debian machine you can simple install it with:

# apt-get install ckermit

To run kermit I use this config file in my home directory

$ cat .kermrc
set carrier-watch off
set handshake none
set flow-control none
set line /dev/ttyS0

Once you have connected the serial cable on ttyS0 you can run kermit command:

$ kermit
C-Kermit 8.0.211, 10 Apr 2004, for Linux
 Copyright (C) 1985, 2004,
  Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/user/) C-Kermit>

Now, simple type connect kermit command to access to your router:

(/user/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 9600
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------

Router>

This is simple way to access to your router or switch and configure it.

One thought to “Access to your switch or router through serial cable”

Leave a Reply

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Notice: Undefined variable: wp_sh_class_name in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Notice: Undefined variable: wp_sh_class_name in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /var/www/elkano.org/blog/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048