Files can be uploaded or downloaded using FTP.
As devices operate stably and are deployed on a large scale, more and more devices need to be maintained and upgraded remotely. Online software upgrade, a new upgrade method by loading software packages remotely, facilitates remote online upgrades, reduces upgrade expenditures, shortens the time that customers wait for upgrades, and improves customers' satisfaction. The delay, packet loss, and jitter affect data transmission on networks. To ensure the quality of online upgrade and data transmission, use FTP to perform online upgrades and transfer files based on TCP connections.
As shown in Figure 1, you can log in to the FTP server from the terminal emulation program to upload or download files.
After you log in to the FTP server through the console port, configure an IP address of a logical interface as the source address for FTP login.
The configuration roadmap is as follows:
Configure an IP address for the management interface.
Enable the FTP server function.
Configure an authentication mode, authorization mode, and authorized directory.
Log in to the FTP server by using the correct user name and password.
Upload a file to or download a file from the FTP server.
To complete the configuration, you need the following data:
IP address for the FTP server: 10.137.217.221
FTP user name: huawei
Path on which the file to be uploaded is saved and the path on which the file to be downloaded is saved
<HUAWEI> system-view [~HUAWEI] sysname server [*HUAWEI] commit [~server] interface GigabitEthernet0/0/0 [~server-GigabitEthernet0/0/0] undo shutdown [*server-GigabitEthernet0/0/0] ip address 10.137.217.221 255.255.0.0 [*server-GigabitEthernet0/0/0] quit [*server] commit
[~server] interface LoopBack 0 [~server-LoopBack0] ip address 10.1.1.1 255.255.255.255 [*server-LoopBack0] quit [*server] ftp server enable [*server] ftp server-source -i loopback 0 [*server] commit
[~server] aaa [*server-aaa] local-user huawei password Please configure the password (8-128) Enter Password: Confirm Password:
A password is entered in man-machine interaction mode. The system does not display the entered password.
For example, the password "Aa123"45"" is valid, but the password "Aa 123"45"" is invalid.
[*server-aaa] local-user huawei service-type ftp [*server-aaa] local-user huawei ftp-directory cfcard:/ [*server-aaa] local-user huawei level 3 [*server-aaa] quit [*server] commit
You can run the dir command before downloading a file or after uploading a file to view the detailed information about the file.
#
sysname server
#
aaa
local-user huawei password cipher @%@%:BC"Qzkbh*9PhJU|U>mX,cZQ@%@%
local-user huawei service-type ftp
local-user huawei level 3
local-user huawei ftp-directory cfcard:/
#
interface GigabitEthernet0/0/0
undo shutdown
ip address 10.137.217.221 255.255.0.0
#
interface LoopBack 0
ip address 10.1.1.1 255.255.255.255
ftp server enable
ftp server-source -i loopback 0
#
return