×

EdgeRouter - How to Connect to Serial Console

Overview

Readers will leader how to connect to an EdgeRouter's RJ45 serial console port using a console cable.

NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models that include console ports. Please see the Related Articles below for more information.
Device used in this article:

Supported Models & Serial Console Settings

Back to Top

The tables below list the EdgeRouter models that are equipped with an RJ45 serial console port:

Model Console Port
ER-4
ER-6
ER-8-XG
ERPro-8
ERLite-3
ERPoE-5
ER-8
Model Console Port
ER-12
ER-12P
ER-10X*
EP-R8
ER-X-SFP
ER-X
EP-R6

The default serial port settings are listed below:

  • Baud rate: 115200
  • Data bits: 8
  • Parity: NONE
  • Stop bits: 1
  • Flow control: NONE 
NOTE:* The ER-10X requires the baud rate to be set to 57600.

Connecting to Serial Console

Back to Top

topology.png

A USB-to-Serial adapter will be used to connect to the console port of the EdgeRouter.

NOTE:In order to connect to the console we will need to use the following items/programs:
  • RJ45 to DB9 serial console cable (rollover cable)
  • USB to DB9 adapter
  • Terminal emulation program, such as PuTTY or the macOS/Linux terminal

1. Open the terminal emulator and specify the serial COM line and the baud rate/speed.

 Windows Client

Enter the following information in the PuTTY window.

putty.png

applelogo.png  macOS Client

Open Terminal Application and find the serial interface ID.

ls -ltr /dev/*usb*

The serial interface will display as tty. Example output below:

ls -ltr /dev/*usb*
crw-rw-rw-  1 root  wheel   21,   3 Feb  8 15:48 /dev/cu.usbserial-AI038TPF
crw-rw-rw-  1 root  wheel   21,   2 Feb  9 08:56 /dev/tty.usbserial-AI038TPF

Use the screen command to connect to console by pasting in the path to the serial interface.

screen /dev/tty.usbserial-AI038TPF 115200
ATTENTION: Replace/dev/tty.usbserial-AI038TPF with the value given when using the ls -ltr /dev/*usb* command.

2. Connect to the EdgeRouter and log in using your credentials.

Welcome to EdgeOS ubnt ttyS0

By logging in, accessing, or using the Ubiquiti product, you
acknowledge that you have read and understood the Ubiquiti
License Agreement (available in the Web UI at, by default,
http://192.168.1.1) and agree to be bound by its terms.

Login: <username>
Password: <password>
NOTE: The default username and password combination isubnt/ubnt.

3. Press ? to get a listing of all commands available.

Related Articles

Back to Top

EdgeSwitch - How to Connect to Serial Console

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?
10 out of 15 found this helpful
Can't find what you're looking for?
Visit our worldwide community of Ubiquiti experts for more answers
Visit the Ubiquiti Community