Page 291 / 421 Scroll up to view Page 286 - 290
Chapter 21 Tools
P-660HN-FxZ Series User’s Guide
288
ZyNOS (ZyXEL Network Operating System sometimes referred to as the “ras” file) is the
system firmware and has a “bin” filename extension. Find this firmware at
www.zyxel.com.With many FTP and TFTP clients, the filenames are similar to those seen
next.
ftp> put firmware.bin ras
This is a sample FTP session showing the transfer of the computer file "firmware.bin" to the
ZyXEL Device.
ftp> get rom-0 config.cfg
This is a sample FTP session saving the current configuration to the computer file
config.cfg
”.
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 ZyXEL Device only recognizes “rom-0” and
“ras”. Be sure you keep unaltered copies of both files for later use.
The following table is a summary. Please note that the internal filename refers to the filename
on the ZyXEL Device and the external filename refers to the filename not
on the ZyXEL
Device, that is, on your computer, local network or FTP site and so the name (but not the
extension) may vary. After uploading new firmware, see the
Status
screen to confirm that you
have uploaded the correct firmware version.
FTP Restrictions
FTP will not work when:
1
The firewall is active (turn the firewall off or create a firewall rule to allow access from
the WAN).
2
You have disabled the FTP service in the
Remote Management
screen.
3
The IP you entered in the Secured Client IP field does not match the client IP. If it does
not match, the device will disallow the FTP session.
21.1.3
Before You Begin
Ensure you have either created a firewall rule to allow access from the WAN or turned the
firewall off, otherwise the FTP will not function.
Make sure the FTP service has not been disabled in the Remote Management screen.
Table 119
Filename Conventions
FILE TYPE
INTERNAL
NAME
EXTERNAL NAME
DESCRIPTION
Configuration
File
Rom-0
This is the configuration filename on the ZyXEL
Device. Uploading the rom-0 file replaces the
entire ROM file system, including your ZyXEL
Device configurations, system-related data
(including the default password), the error log
and the trace log.
*.rom
Firmware
Ras
This is the generic name for the ZyNOS firmware
on the ZyXEL Device.
*.bin
Page 292 / 421
Chapter 21 Tools
P-660HN-FxZ Series User’s Guide
289
21.1.4
Tool Examples
Using FTP or TFTP to Restore Configuration
This example shows you how to restore a previously saved configuration. Note that this
function erases the current configuration before restoring a previous back up configuration;
please do not attempt to restore unless you have a backup configuration file stored on disk.
FTP is the preferred method for restoring your current computer configuration to your device
since FTP is faster. Please note that you must wait for the system to automatically restart after
the file transfer is complete.
1
Do not interrupt the file transfer process as this may PERMANENTLY
DAMAGE your device. When the Restore Configuration process is complete,
the device automatically restarts.
Restore Using FTP Session Example
Figure 172
Restore Using FTP Session Example
Refer to
Section 21.1.2 on page 287
to read about configurations that disallow TFTP and FTP
over WAN.
FTP and TFTP Firmware and Configuration File Uploads
These examples show you how to upload firmware and configuration files.
1
Do not interrupt the file transfer process as this may PERMANENTLY
DAMAGE your device.
FTP is the preferred method for uploading the firmware and configuration. To use this feature,
your computer must have an FTP client. The following sections give examples of how to
upload the firmware and the configuration files.
FTP File Upload Command from the DOS Prompt Example
1
Launch the FTP client on your computer.
ftp> put config.rom rom-0
200 Port command okay
150 Opening data connection for STOR rom-0
226 File received OK
221 Goodbye for writing flash
ftp: 16384 bytes sent in 0.06Seconds 273.07Kbytes/sec.
ftp>quit
Page 293 / 421
Chapter 21 Tools
P-660HN-FxZ Series User’s Guide
290
2
Enter “open”, followed by a space and the IP address of your device.
3
Press
[ENTER]
when prompted for a username.
4
Enter your password as requested (the default is “1234”).
5
Enter “bin” to set transfer mode to binary.
6
Use “put” to transfer files from the computer to the device, for example, “put
firmware.bin ras” transfers the firmware on your computer (firmware.bin) to the device
and renames it “ras”. Similarly, “put config.rom rom-0” transfers the configuration file
on your computer (config.rom) to the device and renames it “rom-0”. Likewise “get
rom-0 config.rom” transfers the configuration file on the device to your computer and
renames it “config.rom.” See earlier in this chapter for more information on filename
conventions.
7
Enter “quit” to exit the ftp prompt.
FTP Session Example of Firmware File Upload
Figure 173
FTP Session Example of Firmware File Upload
More commands (found in GUI-based FTP clients) are listed in this chapter.
Refer to
Section 21.1.2 on page 287
to read about configurations that disallow TFTP and FTP
over WAN.
TFTP File Upload
The device also supports the uploading of firmware files using TFTP (Trivial File Transfer
Protocol) over LAN. Although TFTP should work over WAN as well, it is not recommended.
To use TFTP, your computer must have both telnet and TFTP clients. To transfer the firmware
and the configuration file, follow the procedure shown next.
1
Use telnet from your computer to connect to the device and log in. Because TFTP does
not have any security checks, the device records the IP address of the telnet client and
accepts TFTP requests only from this address.
2
Enter the command “sys stdio 0” to disable the management idle timeout, so the TFTP
transfer will not be interrupted. Enter “command sys stdio 5” to restore the five-minute
management idle timeout (default) when the file transfer is complete.
3
Launch the TFTP client on your computer and connect to the device. Set the transfer
mode to binary before starting data transfer.
331 Enter PASS command
Password:
230 Logged in
ftp> bin
200 Type I OK
ftp> put firmware.bin ras
200 Port command okay
150 Opening data connection for STOR ras
226 File received OK
ftp: 1103936 bytes sent in 1.10Seconds 297.89Kbytes/sec.
ftp> quit
Page 294 / 421
Chapter 21 Tools
P-660HN-FxZ Series User’s Guide
291
4
Use the TFTP client (see the example below) to transfer files between the device and the
computer. The file name for the firmware is “ras”.
Note that the telnet connection must be active and the device in CI mode before and during the
TFTP transfer. For details on TFTP commands (see following example), please consult the
documentation of your TFTP client program. For UNIX, use “get” to transfer from the device
to the computer, “put” the other way around, and “binary” to set binary transfer mode.
TFTP Upload Command Example
The following is an example TFTP command:
tftp [-i] host put firmware.bin ras
Where “i” specifies binary image transfer mode (use this mode when transferring binary files),
“host” is the device’s IP address, “put” transfers the file source on the computer (firmware.bin
– name of the firmware on the computer) to the file destination on the remote host (ras - name
of the firmware on the device).
Commands that you may see in GUI-based TFTP clients are listed earlier in this chapter.
Using the FTP Commands to Back Up Configuration
1
Launch the FTP client on your computer.
2
Enter “
open
”, followed by a space and the IP address of your ZyXEL Device.
3
Press [ENTER]
when prompted for a username.
4
Enter your password as requested (the default is “1234”).
5
Enter “
bin
” to set transfer mode to binary.
6
Use “
get
” to transfer files from the ZyXEL Device to the computer, for example, “
get
rom-0 config.rom
” transfers the configuration file on the ZyXEL Device to your
computer and renames it “
config.rom
”. See earlier in this chapter for more
information on filename conventions.
7
Enter “
quit
” to exit the ftp prompt.
FTP Command Configuration Backup Example
This figure gives an example of using FTP commands from the DOS command prompt to save
your device’s configuration onto your computer.
Figure 174
FTP Session Example
331 Enter PASS command
Password:
230 Logged in
ftp> bin
200 Type I OK
ftp> get rom-0 zyxel.rom
200 Port command okay
150 Opening data connection for STOR ras
226 File received OK
ftp: 16384 bytes sent in 1.10Seconds 297.89Kbytes/sec.
ftp> quit
Page 295 / 421
Chapter 21 Tools
P-660HN-FxZ Series User’s Guide
292
Configuration Backup Using GUI-based FTP Clients
The following table describes some of the commands that you may see in GUI-based FTP
clients.
Backup Configuration Using TFTP
The ZyXEL Device supports the up/downloading of the firmware and the configuration file
using TFTP (Trivial File Transfer Protocol) over LAN. Although TFTP should work over
WAN as well, it is not recommended.
To use TFTP, your computer must have both telnet and TFTP clients. To backup the
configuration file, follow the procedure shown next.
1
Use telnet from your computer to connect to the ZyXEL Device and log in. Because
TFTP does not have any security checks, the ZyXEL Device records the IP address of
the telnet client and accepts TFTP requests only from this address.
2
Enter command “
sys stdio 0
” to disable the management idle timeout, so the TFTP
transfer will not be interrupted. Enter command “
sys stdio 5”
to restore the five-
minute management idle timeout (default) when the file transfer is complete.
3
Launch the TFTP client on your computer and connect to the ZyXEL Device. Set the
transfer mode to binary before starting data transfer.
4
Use the TFTP client (see the example below) to transfer files between the ZyXEL
Device and the computer. The file name for the configuration file is “
rom-0
” (rom-zero,
not capital o).
Note that the telnet connection must be active before and during the TFTP transfer. For details
on TFTP commands (see following example), please consult the documentation of your TFTP
client program. For UNIX, use “
get
” to transfer from the ZyXEL Device to the computer and
“binary” to set binary transfer mode.
TFTP Command Configuration Backup Example
The following is an example TFTP command:
tftp [-i] host get rom-0 config.rom
where “
i
” specifies binary image transfer mode (use this mode when transferring binary files),
host
” is the ZyXEL Device IP address, “
get
” transfers the file source on the ZyXEL Device
(
rom-0
, name of the configuration file on the ZyXEL Device) to the file destination on the
computer and renames it config.rom.
Table 120
General Commands for GUI-based FTP Clients
COMMAND
DESCRIPTION
Host Address
Enter the address of the host server.
Login Type
Anonymous.
This is when a user I.D. and password is automatically supplied to the
server for anonymous access.
Anonymous logins will work only if your
ISP or service administrator has enabled this option.
Normal.
The server requires a unique User ID and Password to login.
Transfer Type
Transfer files in either ASCII (plain text format) or in binary mode.
Initial Remote Directory
Specify the default remote directory (path).
Initial Local Directory
Specify the default local directory (path).

Rate

4 / 5 based on 1 vote.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top