CX320 Switch Module V100R001 Command Reference 12

ftp server source

ftp server source

Function

The ftp server source command specifies the source IP address for an FTP server to send packets.

The undo ftp server source command restores the default source IP address for an FTP server to send packets.

The default source IP address for the FTP server to send packets is 0.0.0.0.

Format

ftp server source { -a source-ip-address | -i interface-type interface-number }

undo ftp server source

Parameters

Parameter Description Value
-a source-ip-address

Specifies the source IP address for the FTP server to send packets. The loopback IP address is recommended.

-
-i interface-type interface-number

Specifies the loopback interface of the FTP server as the source interface.

The primary IP address of the source interface is the source IP address for sending packets. If no IP address is configured for the source IP address, the FTP connection cannot be set up.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If no source IP address (0.0.0.0 by default) is specified, the FTP server uses the source IP address specified by routes to send packets. The source IP address must be configured for an interface with stable performance, such as the loopback interface. Using the loopback interface as the source IP address simplifies the ACL rule and security policy configuration. This shields the IP address differences and interface status impact, filters incoming and outgoing packets, and implements security authentication.

Precautions

  • After the source IP address is specified for the FTP server, you must use the specified IP address to log in to the FTP server.
  • After running the ftp server-source command, you can only use the specified IP address or loopback interface of the FTP server for login. You need to restart the FTP service to activate the configuration.
  • If the ftp server-source command is not configured, all users can log in to the FTP server by default.
  • If the FTP service has been enabled, the FTP service restarts after the ftp server source command is executed.

Example

# Set the source IP address of the FTP server to LoopBack0.

<HUAWEI> system-view
[~HUAWEI] ftp server source -i loopback0
Warning: To make the server source configuration take effect, the FTP server will be restarted. Continue? [Y/N]: y
Info: Succeeded in setting the source interface of the FTP server to LoopBack0.
Info: Succeeded in starting the FTP server.
Translation
Favorite
Download
Update Date:2024-03-27
Document ID:EDOC1000128405
Views:5211256
Downloads:1651
Average rating:4.75Points

Digital Signature File

digtal sigature tool