Todas las colecciones
Networking
Ubiquiti EdgeMax - Actualizar Router EdgeMax por medio de CLI
Ubiquiti EdgeMax - Actualizar Router EdgeMax por medio de CLI

Este artículo muestra como actualizar un Router a través de CLI

Víctor Villarreal avatar
Escrito por Víctor Villarreal
Actualizado hace más de una semana
  1. Abrimos el Símbolo del sistema (cmd) para poder entrar a nuestro dispositivo por medio de SSH y ejecutamos el siguiente comando:

ssh (aquí va el nombre de usuario) @ (aquí va la dirección IP del equipo)

ssh [email protected]  para posteriormente colocar el password.

Microsoft Windows [Versión 10.0.17134.286]
(c) 2018 Microsoft Corporation. Todos los derechos reservados.

C:\Users\2645-Usuario>ssh [email protected]
Welcome to EdgeOS

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.

[email protected]'s password:
Linux ubnt 4.9.79-UBNT #1 SMP Mon Jul 8 06:16:44 UTC 2019 mips64
Boot image can be upgraded to version [ e300_003_6be37 ].
Run "add system boot-image" to upgrade boot image.
Last login: Mon Sep  2 14:58:45 2019

2. Después entramos para copiar el Link del Firmware del equipo dando clic

Seleccionamos el equipo, podemos apreciar en la siguiente imagen el dispositivo con el que se realizo la prueba fue un EdgeRouter 4

3. Aceptamos los términos y condiciones

4. Copiamos el URL para posteriormente pegarlo en el símbolo del sistema.

5. Nos posicionamos nuevamente en el símbolo del sistema para pegar el URL copiado como se muestra a continuación agregando un par de comandos:

add system image (seguido del URL que copiamos del firmware)
add system image
https://dl.ui.com/firmwares/edgemax/v2.0.x/ER-e300.v2.0.6.5208554.tar

ubnt@ubnt:~$ add system image https://dl.ui.com/firmwares/edgemax/v2.0.x/ER-e300.v2.0.6.5208554.tar

Version [v1.10.8.5142457.181120.1810] is about to be replaced
Are you sure you want to replace old version? (Yes/No) [Yes]: yes
Trying to get upgrade file from https://dl.ui.com/firmwares/edgemax/v2.0.x/ER-e300.v2.0.6.5208554.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--      0     0    0     0    0     0    0   100 86.2M  100 86.2M    0     0  1333k      0  0:01:06  0:01:06 --:--:-- 1991k
Download succeeded
Checking upgrade image...Done
Preparing to upgrade...Done
Clearing directory /var/lib/apt (4.0K)...Done
Clearing directory /var/cache/apt (1.1M)...Done
Copying upgrade image...Warning duplicate image name, changing to [v2.0.6.5208554.190708.0611-1]
Done
Removing old image...Done
Checking upgrade image...Done
Copying config data...Done
Finishing upgrade...Done
Upgrade completed
ubnt@ubnt:~$

6. Cambiamos a la versión recién instalada para que empiece a trabajar con la nueva con el siguiente comando: 

 set system image default-boot

ubnt@ubnt:~$ set system image default-boot
The system currently has the following image(s) installed:

v2.0.6.5208554.190708.0611-1   (default boot)
v2.0.6.5208554.190708.0611     (running image)

A reboot is needed to boot default image
Are you sure you want to switch images? (Yes/No) [Yes]: yes
Moving images...
Done
Switched from
  Version:      v2.0.6.5208554.190708.0611-1
to
  Version:      v2.0.6.5208554.190708.0611
ubnt@ubnt:~$

7. Por ultimo reiniciamos el equipo y revisamos que el Firmware instalado sea el actual.

ubnt@ubnt:~$ reboot
Proceed with reboot? [confirm]y

Broadcast message from ubnt@ubnt (pts/0) (Mon Sep  2 16:31:49 2019):

The system is going down for reboot NOW!


¿Ha quedado contestada tu pregunta?