97
To do…
Use the command…
Remarks
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.
Specify the source IP address of
sent TFTP packets
tftp client source
{
interface
interface-type interface-number
|
ip
source-ip-address
}
Optional
By default, the source IP address
is determined by the route from
the TFTP client to the TFTP server.
Return to user view
quit
—
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
Download or upload a file in an
IPv6 network
tftp ipv6
tftp-ipv6-server
[
-i
interface-type interface-number
] {
get
|
put
}
source-filename
[
destination-filename
] [
vpn-instance
vpn-instance-name
]
Optional
Available in user view
NOTE:
•
If there is not primary IP address configured on the source interface, no TFTP connection can be
established.
•
If you use the
tftp client source
command to configure a source interface and then use it to configure a
source IP address, the source IP address overwrites the source interface, and vice versa.
Displaying and maintaining the TFTP client
To do…
Use the 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
TFTP client configuration example
Network requirements
As shown in
, an IRF fabric comprises a master and a slave device. The member ID of the master
is 1 and that of the slave device is 2. The PC serves as a TFTP server and the IRF fabric as a TFTP client.
The IRF fabric and the PC can reach each other.
From the IRF fabric, download a system software image file from the PC for upgrading and upload a
configuration file named
config.cfg
to the PC for backup.