101
To configure the TFTP client:
Ste
Command
Remarks
1. Enter system view. system-view —
2. Use an ACL to control the device’s
access to TFTP servers.
tftp-server [ ipv6 ] acl
acl-number
Optional.
By default, no ACL is used to control the
device’s access to TFTP servers.
3. 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 matched route to
communicate with the TFTP server by
default.
If no primary IP address is configured on the
source interface, no TFTP connection can be
established.
If you use ftp client source 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.
4. Return to user view. quit —
5. Download or upload a file in an
IPv4 network.
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 } ]
Optional.
Available in user view.
6. Download or upload a file in an
IPv6 network.
tftp ipv6 tftp-ipv6-
server [ -i interface
-type interface-
number ] { get | put }
source-file
[ destination-file ]
[ vpn-instance
vpn-instance-name ]
Optional.
Available in user view.
Displaying and maintaining the TFTP client
Task Command
Remarks
Display the configuration of the
TFTP client.
display tftp client configuration [ | { begin |
exclude | include } regular-expression ]
Available in any view.