996 CHAPTER 80: FTP CONFIGURATION
c
CAUTION: Startup files for next startup must be saved under the root directory.
You can copy or move a file to change the path of it to the root directory. For
description of the corresponding command, refer to “Specifying a Boot ROM File
for the Next Device Boot” on page 1040.
Configuring the FTP
Server
Configuring FTP Server
Operating Parameters
The FTP server uses two modes to update files when you upload files (use the put
command) to the FTP server:
■ In fast mode, the FTP server starts writing data to the Flash after file transfer
completes. This protects the files intended to be overwritten on the device from
being corrupted in the event that anomalies, power failure for example, occur
during a file transfer.
■ In normal mode, the FTP server writes data to the Flash during file transfer. This
means that any anomaly, power failure for example, during file transfer might
result in file corruption on the router. This mode, however, consumes less
memory space than the fast mode.
Follow these steps to configure the FTP server:
Configuring
Authentication and
Authorization for
Accessing FTP Server
To allow an FTP user to access certain directories on the FTP server, you need to
create an account for the user, authorizing access to the directories and
associating the username and password with the account.
Follow these steps to configure authentication and authorization for FTP server:
To do… Use the command… Remarks
Enter system view system-view -
Enable the FTP server ftp server enable Required
Disabled by default.
Configure the idle-timeout
timer
ftp timeout minutes Optional
30 minutes by default.
In idle-timeout time, if there is
no information interaction
between the FTP server and
client, the connection
between them is terminated.
Set the file update mode in
FTP
ftp update { fast | normal } Optional
Normal update is used by
default.
To do… Use the command… Remarks
Enter system view system-view -
Create a local user and enter
its view
local-user user-name Required
No local user exists by default,
and the system does not
support FTP anonymous user
access.