ZyXEL Communications MES3500-24F 用户手册

下载
页码 349
 Chapter 37 Maintenance
MES3500-24/24F User’s Guide
287
37.8  FTP Command Line
This section shows some examples of uploading to or downloading files from the Switch using FTP 
commands. First, understand the filename conventions.
37.8.1  Filename Conventions 
The configuration file (also known as the romfile or ROM) contains the factory default settings in the 
screens such as password, Switch setup, IP Setup, and so on. Once you have customized the 
Switch’s settings, they can be saved back to your computer under a filename of your choosing.
ZyNOS (ZyXEL Network Operating System sometimes referred to as the “ras” file) is the system 
firmware and has a “bin” filename extension.
You can store up to two images, or firmware files of the same device model, on the Switch. Only 
one image is used at a time.
• Run the boot image <1|2> command to specify which image is updated when firmware is loaded 
using the web configurator and to specify which image is loaded when the Switch starts up.
• You can also use FTP commands to upload firmware to any image.
The Switch supports dual firmware images, ras-0 and ras-1. You can switch from one to the other 
by using the boot image <index> command, where <index> is 1 (ras-0) or 2 (ras-1). See the CLI 
Reference Guide for more information about using commands. The system does not reboot after it 
switches from one image to the other.
37.8.1.1  Example FTP Commands
ftp> put firmware.bin ras-0
This is a sample FTP session showing the transfer of the computer file "firmware.bin" to the Switch.
ftp> get config config.cfg
This is a sample FTP session saving the current configuration to a file called “config.cfg” on your 
computer.
If your (T)FTP client does not allow you to have a destination filename different than the source, 
you will need to rename them as the Switch only recognizes “config”, “ras-0”, and “ras-1”. Be sure 
you keep unaltered copies of all files for later use.
Table 117   
Filename Conventions 
FILE TYPE
INTERNAL 
NAME
EXTERNAL 
NAME
DESCRIPTION
Configuration File
config
*.cfg
This is the configuration filename on the Switch. 
Uploading the config file replaces the specified 
configuration file system, including your Switch 
configurations, system-related data (including the 
default password), the error log and the trace log.
Firmware
ras-0
ras-1
*.bin
This is the generic name for the ZyNOS firmware on 
the Switch. ras-0 is image 1; ras-1 is image 2.