HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 87

Configuring TFTP, Prerequisites, Using the device as a TFTP client

Page 87 highlights

Configuring TFTP Trivial File Transfer Protocol (TFTP) is a simplified version of FTP for file transfer over secure reliable networks. TFTP uses UDP port 69 for connection establishment and data transmission. In contrast to TCP-based FTP, TFTP requires no authentication or complex message exchanges, and is easier to deploy. TFTP supports the following transfer modes: • Binary mode-Used to transfer image files, such as .app and .bin .btw files. • ASCII mode-Used to transfer text files, such as .txt, .bat, and .cfg files. The device can operate only as a TFTP client (see Figure 38) to upload or download files. Figure 38 TFTP application scenario Prerequisites Run a TFTP server program on the file host and set a TFTP working directory. Configure IP addresses and routes to make sure the device and the TFTP server can reach each other. Using the device as a TFTP client The device provides the following modes for downloading a new file from a TFTP server: • Normal download-The new file is written directly to Flash and overwrites the old file that has the same name as it. If file download is interrupted, both old and new files are lost. • Secure download-The new file is downloaded to memory and will not be written to Flash until the whole file is obtained. A download failure does not affect the old file that has the same name as the old file. To avoid undesired file loss, use the secure download mode. If you use the normal download mode because of insufficient memory, assign the new file a file name unique in Flash. You can use the tftp client source command to specify a source IP address or source interface for the TFTP packets sent by the device. If a source interface (typically, a loopback interface) is specified, its primary IP address is used as the source IP address for the TFTP packets. The source interface setting and the source IP address setting overwrite each other. 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. 81

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

81
Configuring TFTP
Trivial File Transfer Protocol (TFTP) is a simplified version of FTP for file transfer over secure reliable
networks. TFTP uses UDP port 69 for connection establishment and data transmission. In contrast to
TCP-based FTP, TFTP requires no authentication or complex message exchanges, and is easier to deploy.
TFTP supports the following transfer modes:
Binary mode
—Used to transfer image files, such as
.app
and
.bin
.btw
files.
ASCII mode
—Used to transfer text files, such as
.txt
,
.bat
, and
.cfg
files.
The device can operate only as a TFTP client (see Figure 38) to upload or download files.
Figure 38
TFTP application scenario
Prerequisites
Run a TFTP server program on the file host and set a TFTP working directory.
Configure IP addresses and routes to make sure the device and the TFTP server can reach each other.
Using the device as a TFTP client
The device provides the following modes for downloading a new file from a TFTP server:
Normal download
—The new file is written directly to Flash and overwrites the old file that has the
same name as it. If file download is interrupted, both old and new files are lost.
Secure download
—The new file is downloaded to memory and will not be written to Flash until the
whole file is obtained. A download failure does not affect the old file that has the same name as the
old file.
To avoid undesired file loss, use the secure download mode. If you use the normal download mode
because of insufficient memory, assign the new file a file name unique in Flash.
You can use the
tftp client source
command to specify a source IP address or source interface for the
TFTP packets sent by the device. If a source interface (typically, a loopback interface) is specified, its
primary IP address is used as the source IP address for the TFTP packets. The source interface setting and
the source IP address setting overwrite each other.
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.