Description
Example
get
Syntax
View
Parameter
Description
Example
source ipv6 source-ipv6-address: Specifies a source IPv6 address for transmitted
FTP packets. This address must be an IPv6 address that has been configured on the
device.
-i interface-type interface-number: Specifies the type and number of the egress
interface. This parameter can be used only in case that the FTP server address is the
link local address and the specified egress interface must have a link local address
(For the configuration of link local address, see "IPv6 Basics Configuration
Commands" on page 829).
Use the
ftp ipv6
command to log onto the FTP server and enter FTP client view.
Note that:
This command applies to IPv6 network.
■
If you use this command without specifying any parameters, you will simply
■
enter the FTP client view without logging onto the FTP server.
If you specify the parameter, you will be asked to enter the username and
■
password for accessing the FTP server.
# Log onto the FTP server with IPv6 address 3000::200
<Sysname> ftp ipv6 3000::200
Trying 3000::200 ...
Press CTRL+K to abort
Connected to 3000::200.
220 Welcome!
User(3000::200:(none)): MY_NAME
331 Please specify the password.
Password:
230 Login successful.
[ftp]
get remotefile [ localfile ]
FTP client view
remotefile: File name on the remote FTP server.
localfile: Local file name.
Use the
get
command to download a file from a remote FTP server and save it.
If no name is specified, the local file uses the name of the source file on the FTP
server by default.
# Download file testcfg.cfg and save it as aa.cfg.
[ftp]get testcfg.cfg aa.cfg
2381