To do…

 

Use the command…

 

Remarks

 

 

 

Specify an interface as the

 

 

 

 

 

 

 

source interface a TFTP client

 

tftp source-interface

 

 

 

 

 

uses every time it connects to a

 

interface-type interface-number

 

 

 

 

 

TFTP server

 

 

 

Use either command

 

 

 

Specify an IP address as the

 

 

 

Not specified by default

 

 

 

source IP address a TFTP

 

tftp source-ip ip-address

 

 

 

 

 

client uses every time it

 

 

 

 

 

 

 

 

 

 

 

 

 

connects to a TFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Display the source IP address

 

 

 

Optional

 

 

 

used by a TFTP client every

 

display tftp source-ip

 

 

 

 

time it connects to a TFTP

 

 

Available in any view

 

 

 

 

 

 

 

 

 

server

 

 

 

 

 

 

 

 

 

 

 

 

 

z

z

z

z

The specified interface must be an existing one; otherwise a prompt appears to show that the configuration fails.

The value of the ip-addressargument must be an IP address on the device where the configuration is performed, and otherwise a prompt appears to show that the configuration fails.

The source interface/source IP address set for one connection is prior to the fixed source interface/source IP address set for each connection. That is, for a connection between a TFTP client and a TFTP server, if you specify the source interface/source IP address only used for the connection this time, and the specified source interface/source IP address is different from the fixed one, the former will be used for the connection this time.

You may specify only one source interface or source IP address for the TFTP client at one time. That is, only one of the commands tftp source-interfaceand tftp source-ipcan be effective at one time. If both commands are configured, the one configured later will overwrite the original one.

TFTP Configuration Example

Network requirements

As shown in Figure 2-1, the device operates as a TFTP client and a PC as the TFTP server. The configuration file named config.cfg is stored on the PC. Download it to the device through TFTP, and use the startup saved-configurationcommand to specify config.cfg as the main configuration file for next startup.

z

z

The TFTP working directory is configured on the TFTP server.

Configure the IP addresses of a VLAN interface on the device and the PC as 1.1.1.1 and 1.1.1.2 respectively. The port through which the device connects with the PC belongs to the VLAN.

Figure 2-1Network diagram for TFTP configurations

TFTP Client

TFTP Server

Vlan-Int1

1.1.1.2/24

 

 

Network

 

 

1.1.1.1/24

 

 

Switch

 

 

 

 

 

PC

2-3

Page 562
Image 562
3Com WX3000 Tftp Configuration Example, Tftp source-interface, Tftp source-ip ip-address, Display tftp source-ip