115
sget
: Downloads a file and saves the file to memory before writing it to the destination folder. The
system starts to write the file to the destination folder only after the file is downloaded and saved to
memory successfully. If the destination folder already has a file using the same name, the system
overwrites the existing file. If the download or save-to-memory operation fails, the existing file in the
destination folder is not overwritten.
source-filename
: Specifies the source file name, a case-insensitive string of 1 to 255 characters.
destination-filename
: Specifies the destination file name, a case-insensitive string of 1 to 255
characters. If this argument is not specified, the file uses the source file name.
vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN instance to which the TFTP server
belongs. The
vpn-instance-name
argument represents the VPN instance name, a case-sensitive
string of 1 to 31 characters. If the TFTP server belongs to the public network, do not specify this
option.
dscp
dscp-value
: Specifies the DSCP value for IPv6 to use in outgoing TFTP packets to indicate the
packet transmission priority. The value range is 0 to 63. The default is 0.
source
{
interface
interface-type interface-number
|
ipv6
source-ipv6-address
}: Specifies the
source address for outgoing TFTP packets. If you do not specify this option, the device selects a
source IPv6 address as defined in RFC 3484.
•
interface
interface-type interface-number
: Specifies an interface by its type and number. The
device will use the interface's IPv6 address as the source IPv6 address. For successful TFTP
packet transmission, make sure the interface is up and is configured with an IPv6 address.
•
ipv6
source-ipv6-address
: Specifies an IPv6 address. For successful TFTP packet
transmission, make sure this address is the IPv6 address of an interface in up state on the
device.
Usage guidelines
The source address specified with the
tftp ipv6
command takes precedence over the source
address specified with the
tftp client ipv6 source
command.
The source address specified with the
tftp client ipv6 source
command applies to all TFTP
connections. The source address specified with the
tftp
ipv6
command applies only to the current
TFTP connection.
Examples
# Download the
new.bin
file from the TFTP server at 2001::1 and save it as
new.bin
.
<Sysname> tftp ipv6 2001::1 get new.bin new.bin
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.9M 100 13.9M 0 0 1206k 0 0:00:11 0:00:11 --:--:-- 1206k
For more information about the command output, see
.
tftp-server acl
Use
tftp-server acl
to use an ACL to control the device's access to TFTP servers in an IPv4 network.
Use
undo tftp-server acl
to restore the default.
Syntax
tftp-server acl
acl-number
undo
tftp-server
acl
Default
No ACL is used to control the device's access to TFTP servers.