75 
The tftp client source command setting applies to all TFTP sessions. When you set up a TFTP session with 
the tftp command, you can also specify a different source IP address for the TFTP session.  
 
 
IMPORTANT: 
To avoid TFTP connection failures, when you specify a source interface for TFTP packets, make sure the 
interface has a primary IP address.  
 
To configure the TFTP client: 
 
Ste
 Command
Remarks 
1.  Enter system view. 
system-view  N/A 
2.  Use an ACL to control the 
client's access to TFTP servers. 
tftp-server [ ipv6 ] acl acl-number 
Optional. 
By default, no ACL is used for 
access control. 
3.  Specify a source IP address 
for outgoing TFTP packets. 
tftp client source { interface 
interface-type interface-number | ip 
source-ip-address } 
Optional. 
By default, the primary IP 
address of the output interface is 
used as the source IP address.  
4.  Set the DSCP value for IP to 
use for outgoing TFTP packets. 
•  For IPv4: 
tftp client dscp dscp-value 
•  For IPv6: 
tftp client ipv6 dscp dscp-value 
Optional. 
The default is 0, whether the 
TFTP client is running IPv4 or 
IPv6. 
5.  Return to user view. 
quit  N/A 
6.  Download or upload a file. 
•  For IPv4: 
tftp server-address { get | put | 
sget } source-filename 
[ destination-filename ] 
[ vpn-instance 
vpn-instance-name ] [ source 
{ interface interface-type 
interface-number | ip 
source-ip-address } ] 
•  For IPv6: 
tftp ipv6 tftp-ipv6-server [ -i 
interface-type interface-number ] 
{ get | put } source-filename 
[ destination-filename ] 
[ vpn-instance 
vpn-instance-name ] 
Optional. 
 
Displaying and maintaining the TFTP client 
 
Task Command
Remarks 
Display the source IP address configuration 
of the TFTP client. 
display tftp client configuration [ | 
{ begin | exclude | include } 
regular-expression ] 
Available in any 
view.