108
source
{
interface
interface-type interface-number
|
ip
source-ip-address
}: Specifies the source address
for outgoing TFTP packets. If this keyword is not specified, the device uses the primary IPv4 address of the
output interface for the route to the server as the source IPv4 address of outgoing TFTP packets.
•
interface
interface-type interface-number
: Specifies an interface by its type and number. The
primary IPv4 address of this interface will be used as the source IPv4 address for outgoing TFTP
packets. Make sure the interface is up and has the primary IPv4 address configured. Otherwise, the
transmission fails.
•
ip
source-ip-address
: Specifies an IPv4 address. This address must be the IPv4 address of an
interface in up state. Otherwise, the transmission fails.
Usages guidelines
The source address specified with the
tftp
command takes precedence over the source address specified
with the
tftp
client
source
command.
The source address specified with the
tftp client source
command applies to all TFTP connections. The
source address specified with the
tftp
command applies only to the current TFTP connection.
Examples
# Download the
new.bin
file from the TFTP server at 192.168.1.1 and save it as
new.bin
.
<Sysname> tftp 192.168.1.1 get 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
<System>
Table 16
Command output
Field Description
%
Percentage of file transmission progress.
Total
Size of files to be transmitted, in bytes.
%
Percentage of received file size to total file size.
Received
Received file size, in bytes.
%
Percentage of sent file size to total file size.
Xferd
Sent file size, in bytes.
Average Dload
Average download speed, in bps.
Speed Upload
Average upload speed, in bps.
Related commands
tftp client source
tftp client source
Use
tftp client source
to specify the source IPv4 address for TFTP packets sent by the TFTP client.
Use
undo tftp client source
to restore the default.