92
Parameters
ftp-server
: Specifies the IPv6 address or host name of an FTP server. A host name can be a
case-insensitive string of 1 to 253 characters. Valid characters for a host name include letters, digits,
hyphens (-), underscores (_), and dots (.).
service-port
: Specifies the TCP port number of the FTP server, in the range of 0 to 65535. The
default is 21.
dscp
dscp-value
: Specifies the DSCP value for IPv6 to use in outgoing FTP packets to indicate the
packet transmission priority. The value range is 0 to 63. The default is 0.
source
{
ipv6
source-ipv6-address
|
interface
interface-type
interface-number
}: Specifies the
source address used to establish the FTP connection.
•
interface
interface-type interface-number
: Specifies an interface by its type and number. This
option can be used only when the FTP server address is a link local address and the specified
output interface has a link local address. For information about link local addresses, see
Layer
3—IP Services Configuration Guide
.
•
ipv6
source-ipv6-address
: Specifies an IPv6 address. To establish the FTP connection
successfully, make sure this address is the IPv6 address of an interface in up state on the
device.
vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN instance to which the FTP server
belongs. The
vpn-instance-name
argument represents the VPN instance name, a case-sensitive
string of 1 to 31 characters. If the FTP server belongs to the public network, do not specify this
option.
-i
interface-type interface-number
: Specifies an output interface by its type and number. This option
can be used only when the FTP server address is a link local address and the specified output
interface has a link local address.
Usage guidelines
This command is only applicable to IPv6 networks.
If no parameters are specified, this command enters the FTP client view.
If the FTP server parameters are specified, you are prompted to enter the username and password
for logging in to the FTP server.
Examples
# Log in to the FTP server 2000::154.
<Sysname> ftp ipv6 2000::154
Press CTRL+C to abort.
Connected to 2000::154 (2000::154).
220 FTP service ready.
User (2000::154): root
331 Password required for root.
Password:
230 User logged in
Remote system type is HPE
get
Use
get
to download a file from the FTP server and save the file.
Syntax
get
remotefile
[
localfile
]