Displaying and Maintaining the TFTP Client 1003
n
■ If no primary IP address is configured on the source interface, TFTP connection 
fails.
■ If you use the ftp client source command to first configure the source 
interface and then the source IP address of the packets of the TFTP client, the 
new source IP address will overwrite the current one, and vice versa.
Displaying and 
Maintaining the TFTP 
Client
TFTP Client 
Configuration 
Example
Network requirements
■ Use a PC as the TFTP server and your device as the TFTP client.
■ PC uses IP address 1.2.1.1./16 and a TFTP working directory has been defined 
for the client.
■ On your device, VLAN-interface 1 is assigned an IP address 1.1.1.1/16. Make 
sure that the port connected to PC belongs to the same VLAN.
■ TFTP a startup file from PC for upgrading and a configuration file config.cfg to 
PC for backup.
Network diagram
Figure 301   Smooth upgrading using the TFTP client function
 
Configure the source address 
of the TFTP client 
tftp client source { interface 
interface-type 
interface-number | ip 
source-ip-address } 
Optional
A device uses the source 
address determined by the 
routing protocol to 
communicate with the TFTP 
server by default. 
Return to user view  quit - 
Download or upload a file in 
IPv4 network 
tftp server-address { get | put 
| sget } source-filename 
[ destination-filename ] 
[ source { interface 
interface-type 
interface-number | ip 
source-ip-address }] 
Optional 
Download or upload a file in 
IPv6 network 
tftp ipv6 tftp-ipv6-server [ -i 
interface-type 
interface-number ] { get | 
put } source-file 
[ destination-file ] 
Optional
To do…  Use the command…  Remarks 
To do…  Use the command…  Remarks 
Display the configuration of 
the TFTP client 
display tftp client 
configuration 
Available in any view
Switch 
TFTP Client
PC
TFTP Serve
IP network
Vlan-int 1
1.1.1.1/16 1.2.1.1/16