First, install the minicom
Ubuntu installation: sUdo Apt-get install minicom,
CentOS Installation: Yum install minicom
Second, the configuration minicom
Ubuntu Input: sudo minicom-s
CentOS Input: minicom-s # #进入配置界面
+-----[Configuration]------+ and paths | | File Transfer Protocols | | Serial Port Setup | # # #点进Serial Port setup and dialing | and keyboard | | Save setup as DFL | | Save setup as ... | | Exit | from Minicom | +--------------------------+
Check the serial name using Ls-l/dev/ttys*, general ttyS0 corresponding com1,ttys1 corresponding COM2;
View Serial drive: cat/proc/tty/drivers/serial
View serial devices: DMESG | grep ttys* (Find out which serial port is active)
+-----------------------------------------------------------------------+ |a-serial Device:/dev/ttys1| | B-lockfile Location:/var/lock | | C-callin Program: | | D-callout Program: | |e-bps/par/bits:9600 8N1| | F-hardware Flow Control:no | | G-software Flow Control:no | | | | Change which setting? | +-----------------------------------------------------------------------+ | Screen andKeyboard | | Save Setup as DFL | | Save setup as. | | Exit | | Exit fromMinicom | +--------------------------+
Red is the place to modify, a to that port activated, E to: 9600 8N1
After changing save Setup as DFL, save
Then enter minicom on the command line to connect to the switch.
Linux system connects the switch via the console port