EdgeRouter - Manual TFTP Recovery
Overview
In this article we will provide the necessary steps to recover different EdgeRouter models. This process will completely restore the factory default settings and erases all custom configuration. This article focuses on the TFTP recovery process that requires you to connect to the EdgeRouter using a Console cable. Another available recovery method that does not require a Console connection is shown in the other TFTP Recovery article.
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50)
- ERLite-3 / ERPoE-5 (e100)
- ERPro-8 / ER-8 / EP-R8 (e200)
- ER-4 / ER-6P / ER-12 / ER-12P (e300)
- ER-8-XG (e1000)
Table of Contents
- Introduction
- Connecting to Serial Console
- Setting up a TFTP Server
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50) TFTP Recovery Process
- ERLite-3 / ERPoE-5 (e100) TFTP Recovery Process
- ERPro-8 / ER-8 / EP-R8 (e200) TFTP Recovery Process
- ER-4 / ER-6P / ER-12 / ER-12P (e300) TFTP Recovery Process
- ER-8-XG (e1000) TFTP Recovery Process
- Related Articles
Introduction
In rare cases when an EdgeRouter becomes unresponsive, these instructions may be used to recover the EdgeRouter back to its default state. This is typically not the first step in troubleshooting issues, but rather a last resort recovery method. The manual TFTP Recovery feature works by uploading a recovery image to the EdgeRouter using a TFTP server on a workstation. The console port connection is used to configure the relevant IP addresses for the TFTP session and defining the recovery image settings.
During the recovery process, the EdgeRouter will install the EdgeOS firmware version that is listed in the name of the recovery image. Currently, there are two available recovery image versions:
-
v2.0.6
Recovery image for v2.0.x branch (installs v2.0.6 EdgeOS firmware release during the recovery process). -
v1.10.10
Recovery image for v1.10.x branch (installs v1.10.10 EdgeOS firmware release during the recovery process).
The EdgeRouter recovery images for use with the manual TFTP Recovery feature are available below.
v2.0.6
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50)
- ERLite-3 / ERPoE-5 (e100)
- ERPro-8 / ER-8 / EP-R8 (e200)
- ER-4 / ER-6P / ER-12 / ER-12P (e300)
- ER-8-XG (e1000)
v1.10.10
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50)
- ERLite-3 / ERPoE-5 (e100)
- ERPro-8 / ER-8 / EP-R8 (e200)
- ER-4 / ER-6P / ER-12 / ER-12P (e300)
- ER-8-XG (e1000)
Connecting to Serial Console
The default serial port settings are listed below:
- Baud rate: 115200
- Data bits: 8
- Parity: NONE
- Stop bits: 1
- Flow control: NONE
A USB-to-Serial adapter will be used to connect to the console port of the EdgeRouter.
- 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.
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
/dev/tty.usbserial-AI038TPF
with the value given when using the ls -ltr /dev/*usb*
command.Setting up a TFTP Server
The next step is to set up a TFTP server on the workstation to allow the recovery image to be uploaded to the EdgeRouter.
1. Download the relevant firmware recovery file from one of the EdgeMAX download links below:
v2.0.6
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50)
- ERLite-3 / ERPoE-5 (e100)
- ERPro-8 / ER-8 / EP-R8 (e200)
- ER-4 / ER-6P / ER-12 / ER-12P (e300)
- ER-8-XG (e1000)
v1.10.10
- ER-X-SFP / ER-X / EP-R6 / ER-10X (e50)
- ERLite-3 / ERPoE-5 (e100)
- ERPro-8 / ER-8 / EP-R8 (e200)
- ER-4 / ER-6P / ER-12 / ER-12P (e300)
- ER-8-XG (e1000)
2. Assign a static IP address to your computer's network interface, for example 192.168.1.10/24.
3. Install a TFTP server and place the firmware recovery file in the base TFTP directory.
Windows Client
In this example we are using Tftpd32 as the TFTP server.
macOS Client
Open a new Terminal window to load and start the TFTP service.
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd
Change the file permissions for the TFTP folder.
sudo chmod 777 /private/tftpboot
sudo chmod 777 /private/tftpboot/*
ER-X-SFP / ER-X / EP-R6 / ER-10X (e50) TFTP Recovery Process
1. Connect the USB-TTL cable to the console pins and an Ethernet cable to the eth0 port.
2. Plug in the power cable and boot up the device.
3. Hold down the 1 (number one)
key as the router starts up to interrupt the boot process.
4. When holding the 1
key, the bootloader will be interrupted and bring you to a prompt similar to the one below.
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3
5. Select option 1 and enter the required IP address and filename recovery information.
-
Device IP
This is the IP address that the EdgeRouter should use for the TFTP session. -
Server IP
This is the IP address of the TFTP server (computer). -
Linux Kernel Filename
Exact name of the recovery image in the base TFTP directory.
An example output is:
1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
Input device IP (172.16.3.211) ==: 192.168.1.20
Input server IP (172.16.3.210) ==: 192.168.1.10
Input Linux Kernel filename (vme600) ==: ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img
After completing the steps above, the #
symbol will be shown many times as the file is uploaded to the device. This is the expected behavior.
6. A successful recovery will allow management access via the web UI or CLI using the default 192.168.1.1 IP address on the eth0 interface.
ERLite-3 / ERPoE-5 (e100) TFTP Recovery Process
1. Connect the console cable to the console port and an Ethernet cable to the eth0 port.
2. Plug in the power cable and boot up the device.
3. Hold down the 1 (number one)
key as the router starts up to interrupt the boot process.
4. When holding the 1
key, the bootloader will be interrupted and bring you to a prompt similar to the one below.
Octeon ubnt_e100#
5. Add the IP address and filename recovery information using the setenv and tftpboot commands.
-
setenv ipaddr
This is the IP address that the EdgeRouter should use for the TFTP session. -
setenv serverip
This is the IP address of the TFTP server (computer). -
setenv ethact
This is the source interface on the EdgeRouter (eth0). -
tftpboot
Exact name of the recovery image in the base TFTP directory.
An example output is:
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.10
setenv ethact octeth0
tftpboot 0 ER-e100.recovery.v2.0.6.5208553.190708.0607.16de5fdde.vmlinux.64
After completing the steps above, the #
symbol will be shown many times as the file is uploaded to the device. This is the expected behavior.
6. Load the recovery image and reboot the device by running the following command:
bootoctlinux 0
7. A successful recovery will allow management access via the web UI or CLI using the default 192.168.1.1 IP address on the eth0 interface.
ERPro-8 / ER-8 / EP-R8 (e200) TFTP Recovery Process
1. Connect the console cable to the console port and an Ethernet cable to the eth0 port.
2. Plug in the power cable and boot up the device.
3. Hold down the 1 (number one)
key as the router starts up to interrupt the boot process.
4. When holding the 1
key, the bootloader will be interrupted and bring you to a prompt similar to the one below.
Octeon ubnt_e200#
5. Add the IP address and filename recovery information using the setenv and tftpboot commands.
-
setenv ipaddr
This is the IP address that the EdgeRouter should use for the TFTP session. -
setenv serverip
This is the IP address of the TFTP server (computer). -
setenv ethact
This is the source interface on the EdgeRouter (eth0). -
tftpboot
Exact name of the recovery image in the base TFTP directory.
An example output is:
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.10
setenv ethact octeth4
tftpboot 0 ER-e200.recovery.v2.0.6.5208554.190708.0611.16de5fdde.vmlinux.64
After completing the steps above, the #
symbol will be shown many times as the file is uploaded to the device. This is the expected behavior.
6. Load the recovery image and reboot the device by running the following command:
bootoctlinux 0
7. A successful recovery will allow management access via the web UI or CLI using the default 192.168.1.1 IP address on the eth0 interface.
ER-4 / ER-6P / ER-12 / ER-12P (e300) TFTP Recovery Process
1. Connect the console cable to the console port and an Ethernet cable to the eth0 port.
2. Plug in the power cable and boot up the device.
3. Hold down the 1 (number one)
key as the router starts up to interrupt the boot process.
4. When holding the 1
key, the bootloader will be interrupted and bring you to a prompt similar to the one below.
Octeon ubnt_e300#
5. Add the IP address and filename recovery information using the setenv and tftpboot commands.
-
setenv ipaddr
This is the IP address that the EdgeRouter should use for the TFTP session. -
setenv serverip
This is the IP address of the TFTP server (computer). -
setenv ethact
This is the source interface on the EdgeRouter (eth0). -
tftpboot
Exact name of the recovery image in the base TFTP directory.
An example output for the ER-4 and ER-6P models is:
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.10
setenv ethact octeth1
tftpboot 0 ER-e300.recovery.v2.0.6.5208554.190708.0611.16de5fdde.vmlinux.64
An example output for the ER-12 and ER-12P models is:
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.10
setenv ethact octeth4
tftpboot 0 ER-e300.recovery.v2.0.6.5208554.190708.0611.16de5fdde.vmlinux.64
After completing the steps above, the #
symbol will be shown many times as the file is uploaded to the device. This is the expected behavior.
6. Load the recovery image and reboot the device by running the following command:
bootoctlinux 0
7. A successful recovery will allow management access via the web UI or CLI using the default 192.168.1.1 IP address on the eth0 interface.
ER-8-XG (e1000) TFTP Recovery Process
1. Connect the console cable to the console port and an Ethernet cable to the eth0 port.
2. Plug in the power cable and boot up the device.
3. Hold down the 1 (number one)
key as the router starts up to interrupt the boot process.
4. When holding the 1
key, the bootloader will be interrupted and bring you to a prompt similar to the one below.
Octeon ubnt_e1000#
5. Add the IP address and filename recovery information using the setenv and tftpboot commands.
-
setenv ipaddr
This is the IP address that the EdgeRouter should use for the TFTP session. -
setenv serverip
This is the IP address of the TFTP server (computer). -
setenv ethact
This is the source interface on the EdgeRouter (eth0). -
tftpboot
Exact name of the recovery image in the base TFTP directory.
An example output is:
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.10
setenv ethact octeth8
tftpboot 0 ER-e1000.recovery.v2.0.6.5208554.190708.0610.16de5fdde.vmlinux.64
After completing the steps above, the #
symbol will be shown many times as the file is uploaded to the device. This is the expected behavior.
6. Load the recovery image and reboot the device by running the following command:
bootoctlinux 0
7. A successful recovery will allow management access via the web UI or CLI using the default 192.168.1.1 IP address on the eth0 interface.