Configuring the FTP Server 997
n
If FTP server performs authentication, authorization and accounting (AAA) policy 
on FTP client, AAA related parameters should be configured on the FTP server. For 
more information about the local-user, password, service-type ftp, and 
work-directory commands and the AAA related configuration, refer to 
“Configuring AAA” on page 758.
FTP Server Configuration
Example
Network requirements
■ Use your device as an FTP server. Create a user account for an FTP user on it, 
setting the username to abc and the password to pwd, and setting the priority 
level to 3.
■ The IP address of the Ethernet interface is 1.1.1.1/16.
■ The PC serves as the FTP client.
Network diagram
Figure 299   Smooth upgrading using the FTP server
 
Configuration procedure
1 Configure Device (FTP Server)
# Create an FTP user account abc, setting its password to pwd, and setting the 
priority level to 3.
<Sysname> system-view
[Sysname] local-user abc
Assign a password to the user  password { simple | cipher } 
password 
Required 
Assign the FTP service to the 
user 
service-type ftp Required
By default, the system does 
not support anonymous FTP 
access, and does not assign 
any service. If the FTP service 
is assigned, the root directory 
of the device is used by 
default. 
Specify the directory an FTP 
user can access 
work-directory 
directory-name 
Optional
By default, the FTP/SFTP users 
can access the root directory 
of the device. 
Set the priority level of the FTP 
user 
level level Optional
0 by default
To upload files to an FTP 
server, you need to set the FTP 
user level to 3.
To do…  Use the command…  Remarks 
IP network
FTP Client
1.2.1.1/16
FTP Server
1.1.1.1/16
PC Switch