Configuration Guide FTP Client Configuration
Configuring Source IP Address
FTP Client can bind the source IP address of the client communicating with the server. Execute the following command in
global configuration mode to configure the source IP address:
Enter global configuration mode
ftp-client [vrf vrfname] source-address {ip-address |
ipv6-address}
Configure the source IP address of FTP client
(supporting IPv4 and IPv6)
To disable source IP address binding of the client, execute the following command:
Enter global configuration mode
no ftp-client [vrf vrfname] source-address
Disable source IP address binding of the client
Restoring Default Settings
To restore default settings, execute the following command in global configuration mode:
Enter global configuration mode
default ftp-client [vrf vrfname]
Restore FTP client to default settings: data connection to
passive mode, file transfer to binary mode, and source IP
binding removed.
Downloading File
In CLI command mode, execute the following steps to complete file download:
Before downloading, launch FTP Server program on the host and then log into the device. In privileged EXEC mode,
execute the following command to download file.
Ruijie# copy
ftp://username:password@dest-address[/remote-directory
]/remote-file
flash:[local-directory/]local-file [vrf vrfname]
Download the file specified in URL to the device. The
filename can be reset.
The key word "username" in FTP URL specifies the username for logging into the FTP Server, and must not exceed 32
bytes or include such characters as ":", "@", "/" or space, nor can it be omitted. The key word "password" specifies the
password for logging into FTP Server, and is subject to the same constraints of username. The key word "dest-address"
specifies the IP address of FTP Server, and the optional key word "remote-directory" specifies the directory on Server.
The key word "remote file” specifies the target filename on the Server. The optional key word "local-directory" in Flash
URL specifies the directory on device, or implies the current directory if not specified. The key word "local-file" specifies
the target local filename, and the optional key word "VRF" indicates the support to VRF.