Specifying the source interface and source IP address for an FTP client

You can specify the source interface and source IP address for the device acting as an FTP client, so that it can connect to a remote FTP server.

Follow these steps to specify the source interface and source IP address for an FTP client:

 

To do…

Use the command…

Remarks

 

 

Specify the source interface

ftp { cluster remote-server }

Optional

 

 

source-interface

 

 

used for the current connection

 

 

interface-type interface-number

 

 

 

 

 

 

 

 

 

 

 

 

Specify the source IP address

ftp { cluster remote-server }

Optional

 

 

used for the current connection

source-ip ip-address

 

 

 

 

 

 

 

 

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Specify an interface as the

 

 

 

 

source interface the FTP client

ftp source-interface

 

 

 

uses every time it connects to

interface-type interface-number

 

 

 

an FTP server

 

Use either command

 

 

 

 

Not specified by default

 

 

Specify an IP address as the

 

 

 

source IP address the FTP

ftp source-ip ip-address

 

 

 

client uses every time it

 

 

 

 

 

 

 

connects to an FTP server

 

 

 

 

 

 

 

 

 

Display the source IP address

 

 

 

 

used by an FTP client every

display ftp source-ip

Available in any view

 

 

time it connects to an FTP

 

 

 

 

 

 

server

 

 

 

 

 

 

 

 

 

 

 

 

 

zThe specified interface must be an existing one. Otherwise a prompt appears to show that the configuration fails.

zThe value of the ip-addressargument must be the IP address of the device where the configuration is performed. Otherwise a prompt appears to show that the configuration fails.

zThe 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 an FTP client and an FTP server, if you specify the source interface/source IP address 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.

zOnly one fixed source interface or source IP address can be set for the FTP client at one time. That is, only one of the commands ftp source-interfaceand ftp source-ipcan be valid at one time. If you execute both of them, the new setting will overwrite the original one.

Configuration Example: The Device Operating as an FTP Server

Network requirements

As shown in Figure 1-3, the switching engine operates as an FTP server and a remote PC as an FTP client. The configuration file config.cfg of the switching engine is stored on the PC. Upload the configuration file to the remote switching engine through FTP and use the startup

1-8

Page 548
Image 548
3Com WX3000 operation manual Configuration Example The Device Operating as an FTP Server