FTP client configuration example
Network requirements
As shown in Figure 24, the PC is acting as an FTP server. A user account with the username abc and password 123456 has been created on the PC.
Use the IRF fabric as an FTP client to log in to the FTP server.
Download the file temp.bin from the FTP server to the FTP client.
Upload the configuration file config.cfg from the FTP client to the FTP server for backup.
Figure 24: Network diagram
Configuration procedure
# Configure IP addresses as shown in Figure 24. Make sure the IRF fabric and PC can reach each other. (Details not shown.)
# Examine the storage space on the member devices. If the free space is insufficient, use the delete/unreserved file-url command to delete unused files. (Details not shown.)
# Log in to the FTP server at 10.1.1.1 using the username abc and password 123456.
<Sysname> ftp 10.1.1.1 Press CTRL+C to abort. Connected to 10.1.1.1 (10.1.1.1). 220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user User (10.1.1.1:(none)): abc 331 Give me your password, please Password: 230 Logged in successfully Remote system type is MSDOS. ftp>
# Set the file transfer mode to binary.
ftp> binary 200 TYPE is now 8-bit binary
# Download the file temp.bin from the PC to the Flash root directory of the master device.
ftp> get temp.bin 227 Entering Passive Mode (192,168,0,20,207,117) 150 "C:\Users\wKF5122\Desktop\FTP\temp.bin" file ready to send (13507003 byt es) in IMAGE / Binary mode 226 Transfer finished successfully. 13507003 bytes received in 17.188 seconds (767.42 Kbytes/s)
# Download the file temp.bin from the PC to the Flash root directory of the subordinate member (with member ID of 2).
ftp> get temp.bin slot2#flash:/temp.bin
# Use the ASCII mode to upload the configuration file config.cfg from the IRF fabric to the PC for backup.
ftp> ascii 200 TYPE is now ASCII ftp> put config.cfg back-config.cfg 227 Entering Passive Mode (192,168,0,20,207,237) 150 "C:\Users\wKF5122\Desktop\FTP\config.cfg" file ready to receive in ASCII mode 226 Transfer finished successfully. 5205 bytes sent in 0.000 seconds (11.28 Mbytes/s) ftp> bye 221-Goodbye. You uploaded 2 and downloaded 2 kbytes. 221 Logout. <Sysname>