Cisco console port
Revision as of 23:22, 3 September 2013 by Pio2pio (talk | contribs) (→Linux consol port serial connection)
Linux consol port serial connection
Install minicon
apt-get install minicom
Discover your serial com port, here it will be ttyS0
logger@syslog0050:~$ dmesg | grep tty [ 0.000000] console [tty0] enabled [ 1.030584] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
setup minicon with -s switch
# minicom -s +-----[configuration]------+ | Filenames and paths | | File transfer protocols | | Serial port setup | | Modem and dialing | | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | | Exit from Minicom | +--------------------------+
Choose Serial port setup and specify Cisco Defaults for Serial Connection like below:
+-----------------------------------------------------------------------+ | A - Serial Device : /dev/ttyS0 | | B - Lockfile Location : /var/lock | | C - Callin Program : | | D - Callout Program : | | E - Bps/Par/Bits : 9600 8N1 | | F - Hardware Flow Control : Yes | | G - Software Flow Control : No | | | | Change which setting? | +-----------------------------------------------------------------------+
come out of Serial port setup by pressing Esc then save configuration file:
+-----[configuration]------+ | Filen+-----------------------------------------+ | File |Give name to save this configuration? | | Seria|> cisco | | Modem+-----------------------------------------+ | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | | Exit from Minicom | +--------------------------+
Once saved, it will store the configuration in /etc/minicom/. To connect to your device, run minicom with config file name:
#minicom cisco Welcome to minicom 2.4 OPTIONS: I18n Compiled on Sep 5 2010, 08:31:32. Port /dev/ttyUSB2 Press CTRL-A Z for help on special keys R1> R1>en R1#
To Exit from minicom, Click Ctrl, A, Z then X.