Console Access with Minicom (Linux)
The most common way to access a switch is through a serial port. This port, usually similar looking to an ethernet or phone port, is (normally) located on the rear of the switch. It should be labeled “Console” as well. Plug in a serial to USB adapter and connect that adapter to a computer or laptop.
If you’re using Windows, use the puTTY guide found here: https://neatrack.richweb.com/console-accessing-using-putty-windows/
Otherwise, you can use a computer or laptop that has Linux on it.
The device name you have to configure in minicom depends on the method:
Use /dev/ttyUSB0 for USB to serial cable
Use /dev/ttyS0 for direct server serial port
Note: Anything in this
fonts
or
fonts
means that you’ll be typing in the terminal or what you’ll be seeing in the terminal.
Install minicom using the following apt-get command if it is not already installed.
example@example-laptop:~$ sudo apt install minicom
sudo: unable to resolve host example-laptop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
snap-confine
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
minicom
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 232 kB of archives.
After this operation, 928 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 minicom amd64 2.7-1build1 [232 kB]
Fetched 232 kB in 0s (1,869 kB/s)
Selecting previously unselected package minicom.
(Reading database ... 178919 files and directories currently installed.)
Preparing to unpack .../minicom_2.7-1build1_amd64.deb ...
Unpacking minicom (2.7-1build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up minicom (2.7-1build1) ...
Then access minicom using:
example@example-laptop:~$ sudo minicom
If you get an error message about not being able to access /dev/modem, then run the setup on minicom first.
sudo minicom -s
Pick Serial port setup
(A) Set Serial Device to /dev/ttyS0 (or /dev/ttyUSB0 if using the USB to serial cable)
(E) Set Bps to 9600 8N1
(F) Hardware flow control to Yes
(G) Software flow control to No
You could save the configuration as console by typing save set as and type in the word console. Then next time you run minicom you can do:
sudo minicom console