71
This command applies to IPv4 networks.
Related commands:
tftp client source
.
Examples
Example 1:
Download the
config.cfg
file from the TFTP server with the IP address of 192.168.0.98 and
save it as
config.bak
. Specify the source IP address to be 192.168.0.92.
<Sysname> tftp 192.168.0.98 get config.cfg config.bak source ip 192.168.0.92
...
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait....
TFTP: 372800 bytes received in 1 second(s)
File downloaded successfully.
Example 2:
Upload the
config.cfg
file from the local AC to the default path of the TFTP server with
the IP address of 192.168.0.98 and save it as
config.bak
. Specify the source IP interface
to be Ethernet 1/1.
<Sysname> tftp 192.168.0.98 put config.cfg config.bak source interface
ethernet 1/1
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait...
TFTP: 345600 bytes sent in 1 second(s).
File uploaded successfully.
tftp client source
Syntax
tftp client source
{
interface
interface-type interface-number
|
ip
source-ip-address
}
undo tftp client source
View
System view
Default Level
2: System level
Parameters
interface
interface-type interface-number
: Specifies the source interface by its type
and number. The primary IP address configured on the source interface is the source IP
address of the packets sent by TFTP. If no primary IP address is configured on the source
interface, the transmission fails.