One way to connect and configure a Cisco router or switch is through the console port.
Basically there is 3 steps when configuring a Cisco switch or router via the console port:
- Connect a console cable in identify the device.
- Configure terminal emulator (Minicon).
- Launch terminal emulator and log into router/switch.
Connect the Router/Switch using a RJ-45 to Serial Port Adapter cable. (see below image with link to amazon)
Identify the device
After plugging in the serial adapter cable in to both the console port on the switch and the computer, you need to identify the device in the system. In Linux you do this using the command
dmesg | grep tty.
> dmesg | grep tty [ 0.212409] printk: console [tty0] enabled [ 6.532102] systemd: Created slice Slice /system/getty. [ 74.335590] usb 1-5: FTDI USB Serial Device converter now attached to ttyUSB0
So the Serial Device cable has been identified as ttyUSB0
Now configure Minicom to utilize the SDC
> sudo minicom -s
Make the following changes to the default configuration, then save and exit
- Line speed: 9600
- Hardware flow control: No
- Serial device (The identified device from the first step): ttyUSB0
Now save, exit, and restart minicom with the following command:
> sudo minicom Welcome to minicom 2.7.1 OPTIONS: I18n Compiled on Jul 22 2021, 00:00:00. Port /dev/ttyUSB0, 16:20:18 Press CTRL-A Z for help on special keys CiscoCatalyst1000-1>login Username: AdminUserName Password: CiscoCatalyst1000-1#