-
Login to router as root
root@mx-10-Router> start shell
%
% df -h
% cd /config
% ls
-
-
220 (vsFTPd 2.2.2)
-
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> put juniper.conf.gz juniper.conf.gz-today
local: juniper.conf.gz remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Ok to send data.
100% || 4811 00:00 ETA 226 Transfer complete.
4811 bytes sent in 0.00 seconds (2.20
MB/s)
% ls
* Goto FTP server and find backup config file juniper.conf.gz-today
*
* ———————————————-
* ## Restore configuration file to Juniper Router
*
* root Login to desired router to restore
root@mx-10-Router> start shell
%
% df -h
% cd /var/tmp
% ls
-
-
220 (vsFTPd 2.2.2)
-
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> lcd /var/tmp
Local directory now /var/tmp
ftp> get juniper.conf.gz-today
local: juniper.conf.gz-today remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for juniper.conf.gz-today (4811 bytes).
100% |*| 4811 00:00 ETA
226 Transfer complete.
4811 bytes received in 0.00 seconds (4.09
MB/s)
ftp> exit
% cd /var/tmp
% ls
% mv
% mv juniper.conf.gz-today /config/juniper.conf.gz
% cli
rol@MX-10-Router>
rol@MX-10-Router>configure
rol@MX-10-Router#
To reset all configuration (if needed) rol@MX-10-Router# load factory-default
* rol@MX-10-Router# load replace juniper.conf.gz
* rol@MX-10-Router# commit
* * Hard reboot needed for smooth service