446
C
HAPTER
39: TFTP C
ONFIGURATION
TFTP Configuration
Basic configurations on
a TFTP client
By default a switch can operate as a TFTP client. In this case you can connect the
switch to the TFTP server to perform TFTP-related operations (such as
creating/removing a directory) by executing commands on the switch. Table 337
lists the operations that can be performed on a TFTP client.
TFTP Configuration
Example
Network requirements
A switch operates as a TFTP client and a PC as the TFTP server. The application
named
switch.bin
is stored on the PC. Download it (
switch.bin
) to the switch
through TFTP, and use the
boot boot-loader
command to specify
switch.bin
as
the application for next startup. Reboot the switch to upload the configuration file
named
config.cfg
to the work directory on the PC to back up the configuration
file.
■
The TFTP working directory is configured on the TFTP server.
■
Configure the IP addresses of a VLAN interface on the switch and the PC as
1.1.1.1 and 1.1.1.2 respectively. The port through which the switch connects
with the PC belongs to the VLAN.
Network diagram
Figure 152
Network diagram for TFTP configurations
Configuration procedure
1
Configure the TFTP server (PC)
Start the TFTP server and configure the working directory on the PC.
2
Configure the TFTP client (switch).
Table 337
Basic configurations on a TFTP client
Operation
Command
Description
Download a file from a TFTP
server
tftp
[
tftp-server
|
ipv6
ipv6-tftp-server
[
-i
interface-type
interface-number
]
get
source-file
[
dest-file
]
Optional
Upload a file to a TFTP server
tftp
[
tftp-server
|
ipv6
ipv6-tftp-server
[
-
i
interface-type
interface-number
]
put
source-file
[
dest-file
]
Optional
Enter system view
system-view
-
Set the file transmission mode
tftp
{
ascii
|
binary
}
Optional
Binary by default
Specify an ACL rule used by
the specified TFTP client to
access a TFTP server
tftp-server acl
acl-number
Optional
Not specified by default
Network
Switch
PC
TFTP Client
TFTP Server
Vlan-Int1
1.1.1.1/24
1.1.1.2/24
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...