92
FTP server configuration example
Network requirements
As shown in
, an IRF fabric comprises a master and a slave device. The member ID of the master
is 1 and that of the slave device is 2. The IRF fabric serves as an FTP server, and the PC serves as an FTP
client. The IRF fabric and the PC can reach each other. The PC keeps the updated system software image
file of the IRF fabric.
On the IRF fabric, configure an account with the username
abc
and password
abc
for the FTP client. From
the PC, use FTP to upgrade the IRF fabric and back up the configuration file.
Figure 38
Network diagram
Configuration procedure
CAUTION:
If the available memory space of the master and slave devices is insufficient, use the
fixdisk
command to
clear the memory or use the
delete
/unreserved
file-url command to delete the files not in use and then
perform the following operations.
1.
Configure the IRF fabric (FTP server)
# Create an FTP user account
abc
, set its password to
abc
and the user privilege level to level 3 (the
manage level). Allow user
abc
to access the root directory of the flash on the master, and specify
abc
to
use FTP.
<Sysname> system-view
[Sysname] local-user abc
[Sysname-luser-abc] password simple abc
[Sysname-luser-abc] authorization-attribute level 3
[Sysname-luser-abc] authorization-attribute work-directory flash:/
To access the root directory of the storage medium of a slave device (with the member ID 2), replace
flash:/
with
slot2#flash:/
in
authorization-attribute work-directory flash:/
.
[Sysname-luser-abc] service-type ftp
[Sysname-luser-abc] quit
# Enable FTP server.
[Sysname] ftp server enable
[Sysname] quit
2.
Configure the PC (FTP client)
# Log in to the FTP server through FTP.