[stordis-toc]
Introduction
This guide shows how to connect a computer to the console port of an Edgecore Open Networking switch. You use the console to see the boot process, to install an operating system with ONIE, and to configure the switch when the management network is not available.
Prerequisites
- A computer with a USB port.
- An RS232-RJ45 console cable. The cable is usually in the box of the switch.
- A USB-RS232 adapter.
- A terminal application:
- Windows: PuTTY, Tera Term or SecureCRT.
- Linux: picocom, screen or minicom.
- macOS: screen.
Serial settings
Use these settings for the console port of Edgecore switches:
- Speed (baud): 115200
- Data bits: 8
- Parity: None
- Stop bits: 1
- Flow control: None
Step 1: Connect the console cable
-
Find the port with the label CONSOLE on the front panel of the switch.
-
Connect the RJ45 end of the cable to the console port. Connect the RS232 end to the USB-RS232 adapter, and the adapter to your computer.
Important
Do not connect the cable to the management port (MGMT). It is also an RJ45 port, but it is an Ethernet port.
Step 2: Find the serial port on your computer
-
Windows: open Device Manager > Ports (COM & LPT). The adapter shows as, for example,
USB Serial Port (COM3). If the adapter is not in the list, install the driver from the manufacturer of the adapter. -
Linux: run the command below. The adapter is usually
/dev/ttyUSB0.sudo dmesg | grep tty
-
macOS: run the command below. The adapter is usually
/dev/cu.usbserial-XXXX.ls /dev/cu.*
Console command generator
Select your system and tool. The generator makes the commands for Steps 2–3. The generator operates only in your browser.
The command generator needs JavaScript. Use the commands in Steps 2–3.
Step 3 (Windows): Connect with PuTTY
- Start PuTTY. For Connection type, select Serial.
-
In Serial line, type the COM port from Step 2 (for example
COM3). In Speed, type115200. -
Optional: if the screen or the keys do not operate correctly, change these settings:
- Terminal > Keyboard: set The Function keys and keypad to VT100+.
- Connection > Serial: set Flow control to None.
- Click Open.
Step 3 (Linux): Connect with picocom
-
Install picocom:
sudo apt install -y picocom
-
Connect to the serial port from Step 2:
sudo picocom -b 115200 /dev/ttyUSB0
- To exit picocom, push Ctrl+A, then Ctrl+X.
To use the console without sudo, add your user to the dialout group. Then log out and log in again:
sudo usermod -aG dialout $USER
Step 4: Make sure that the connection operates
Push Enter. You see the login prompt of the operating system. If the switch starts, you see the boot messages and the GRUB menu, for example the ONIE menu:
Troubleshooting
- Push Enter some times. A switch that already operates shows no messages until you push a key.
- Make sure that the cable is in the CONSOLE port, not in the MGMT port.
- Make sure that the speed is 115200 and the flow control is None.
- Make sure that you use the correct serial port (COM number or
/dev/ttyUSB0). - Try a different console cable and a different USB-RS232 adapter.
- Try a different computer.
- Turn the switch off and on again.
The speed is not correct. Set the speed to 115200 and connect again.
Use sudo, or add your user to the dialout group (refer to Step 3, Linux).
Some switch models have a BMC (Baseboard Management Controller). On these models, the console port can connect to the BMC and not to the main CPU. Refer to the guide of your switch model to open the console of the main CPU.
If the problem continues, contact the STORDIS support team.
Procedure completion
Congratulations!
You have successfully connected to the console of your Edgecore switch. Now you can monitor the boot process, install an operating system and configure the switch.
Happy networking!
Useful links:
How to install and deploy SONiC on network switches?
For more free resources, visit: https://stordis.com/free-resources/
Comments 0
Comments
Please sign in to leave a comment.