转载:How To Connect To Cisco Devices Via Serial Port Using GNU/Linux
原文链接 :https://acidborg.wordpress.com/2010/12/30/how-to-connect-to-cisco-devices-via-serial-port-using-gnulinux/
原文标题:How To Connect To Cisco Devices Via Serial Port Using GNU/Linux
Filed under: Linux, SysAdmin — acidborg @ 10:17
Description: to connect your computer to a Cisco device via its console port, you usually need a RJ45 rolled cable. You can use a RJ-45 to DB-9 Female if your computer has a serial port.
RJ-45 to DB-9 Female
To communicate through the serial port with the Cisco device, you need Minicom, a terminal emulator software.
Installation:
Debian/Ubuntu based distros: sudo apt-get install minicom
Red Hat/Fedora based distros: sudo yum install minicom
Steps:
Check whether your serial port is detected by the kernel: dmesg | grep ttyS
[ 0.485378] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.485739] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Run Minicom: sudo minicom
Press Ctrl+A Z to enter Minicom’s menu.
Press O to enter configuration submenu.
Enter the serial port setup.
Set the serial device (/dev/ttyS0 in this example).
Press E to set the “Bps/Par/Bits”.
Press C (9600 bps) and Q (8-N-1).
Set software flow control to NO.
Save the configuration as “cisco” (for example)
Press Q to quit Minicom
Run Minicom with the new configuration: sudo minicom cisco
Tip: if you need to send a “Break” through Minicom (on a password recovery operation, for example), use Ctrl+A F .
minicom: cannot open /dev/modem: No such file or directory
ln -s /dev/ttyS0 /dev/modem
or
ln -s /dev/ttyS1 /dev/modem