Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure a Device as an TFTP Client

Network Requirements

  • A PC acts as a TFTP server, and Device acts as a TFTP client. The network between the server and the device is normal. The files to be downloaded are placed in the TFTP server directory.
  • The device acts as the TFTP client to upload files to and download files from the TFTP server.

Network Topology

Networking for Configuring a Device as a TFTP Client

Figure 4-6 Networking for Configuring a Device as a TFTP Client

Configuration Steps

Step 1: Create VLANs, and add ports to the required VLANs.(Omitted)

Step 2: Configure the IP addresses of the interfaces so that the network between the client and the server is normal. (Omitted)

Step 3: Enable the TFTP server function on PC, and place the files to be downloaded in the TFTP server directory. (Omitted)

Step 4: Device acts as the TFTP client to upload files to and download files from the TFTP server.

#On Device, copy a file from the TFTP server to the file system of Device.

Device#filesystem
Device(config-fs)#copy tftp 2.1.2.1 sp4-g-6.5.0(41).pck file-system sp4-g-6.5.0(41).pck
Device(config-fs)#exit

#On Device, copy the startup file from Device to the TFTP server.

Device#filesystem
Device(config-fs)#copy startup-config tftp 2.1.2.1 startup.txt

Step 5: Check the result.

After the copy process is completed, check whether the downloaded file exists in the file system of Device. In the TFTP server, check whether the uploaded file exists. (Omitted)

Device(config-fs)#dir 
  size          date       time       name
--------       ------     ------    --------
102227     MAR-01-2013  05:24:32   logging            
10147      MAR-26-2013  07:58:50   startup            
10202      MAR-01-2013  05:26:46   history            
6598624    MAR-26-2013  07:51:32   sp4-g-6.5.0(41).pck   
1024       JAN-10-2013  17:30:20   snmp
0          JAN-31-2013  14:29:50   syslog             
736512     MAR-27-2013  10:30:48   web-Spl-1.1.168.rom

note


  • If the "Downloading####OK!" message is printed, it indicates that the file copy is successful. The message shows the file size, which is determined by the actual file size.
  • When you use a device to copy a file, if the " Failed! ErrorNum: 0x41, ErrorType: Host unreach." message is printed, the cause may be that the TFTP server function is not enabled, or the route between the server and the client is not reachable.