6-93
[ftp] get newest.bin
# Upload the configuration file
config.cfg
of Device to the server for backup.
[ftp] ascii
[ftp] put config.cfg back-config.cfg
227 Entering Passive Mode (10,1,1,1,4,2).
125 ASCII mode data connection already open, transfer starting for /config.cfg.
226 Transfer complete.
FTP: 3494 byte(s) sent in 5.646 second(s), 618.00 byte(s)/sec.
[ftp] bye
# Specify
newest.bin
as the main boot file to be used at the next startup.
<Sysname> boot-loader file newest.bin main
# Reboot the device, and the boot file is updated at the system reboot.
<Sysname> reboot
The boot file used for the next startup must be saved under the root directory of the storage medium
(For a device that has been partitioned, the boot file must be saved on the first partition). You can copy
or move a file to the root directory of the storage medium. For the details of the
boot-loader
command,
see
Software Upgrade
in the
Fundamentals Command Reference
.
FTP Client Configuration Example (On the SR6604/6608/6616 router)
Network requirements
z
As shown in
, use Device as an FTP client and PC as the FTP server. Their IP addresses
are 10.2.1.1/16 and 10.1.1.1/16 respectively. Device and PC are reachable to each other.
z
Device downloads a boot file from PC for device upgrade, and uploads the configuration file to PC
for backup.
z
On PC, an FTP user account has been created for the FTP client, with the username being
abc
and the password being
pwd
.
Figure 6-3
Network diagram for FTPing a boot file from an FTP server
Internet
Device
10.1.1.1/16
FTP server
FTP client
10.2.1.1/16
PC
Configuration procedure
Summary of Contents for SR6600 SPE-FWM
Page 112: ...6 101...