To do…
Use the command…
Remarks
Download a remote file from
the FTP server
get
remotefile
[
localfile
]
Upload a local file to the remote
FTP server
put
]
localfile
[
remotefile
rename
Rename a file on the remote
server
-
remote source
remote-dest
Log in with the specified user
name and password
user
]
[
username password
open
Connect to a remote FTP
server
{
ip-address
|
server-name
} [
port
]
Optional
disconnect
Terminate the current FTP
connection without exiting FTP
client view
close
quit
Terminate the current FTP
connection and return to user
view
bye
Display the online help about a
specified command concerning
FTP
remotehelp
[
]
protocol
-
command
Optional
Enable the verbose function
verbose
Enabled by default.
Specifying the source interface and source IP address for an FTP client
You can specify the source interface and source IP address for a switch acting as an FTP client, so that
it can connect to a remote FTP server.
Follow these steps to specify the source interface and source IP address for an FTP client:
To do…
Use the command…
Remarks
ftp
{
cluster
|
remote-server
}
source-interface
interface-type interface-number
Specify the source interface
used for the current connection
Optional
ftp
{
cluster
|
remote-server
}
source-ip ip-address
Specify the source IP address
used for the current connection
Optional
Enter system view
—
system-view
Specify an interface as the
source interface the FTP client
uses every time it connects to
an FTP server
ftp source-interface
interface-type interface-number
Use either command
Specify an IP address as the
source IP address the FTP
client uses every time it
connects to an FTP server
ftp source-ip ip-address
Not specified by default
Display the source IP address
used by an FTP client every
time it connects to an FTP
server
Available in any view
display ftp source-ip
57-8