The ftp client-source command sets the source interface and source addresses of the FTP client to establish the connection with FTP server.
The undo ftp client-source command cancels the source interface and source address of the FTP client.
By default, the source address contains all 0s.
Parameter | Description | Value |
---|---|---|
-a ip-address |
Specifies the IPv4 address of the local device. |
The value is in dotted decimal notation. |
-a ipv6-address |
Specifies the IPv6 address of the local device. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
-i |
Specifies the source interface type and source interface number. |
All interfaces are supported, except null, stacking port, and SIP interfaces. |
interface-type interface-number |
Specifies the source interface type and source interface number. |
All interfaces are supported, except null, stacking port, and SIP interfaces. |
ipv6 |
Specifies the FTP IPv6 server. |
- |
-vpn-instance ipv6-vpn-instance-name |
Specifies the name of a VPN instance to which the FTP server belongs. Before specifying the parameter vpn-instance ipv6-vpn-instance-name, ensure that a VPN instance has been configured. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
Usage Scenario
Precautions
<HUAWEI> system-view [~HUAWEI] ftp client-source -a 10.1.1.1
<HUAWEI> system-view [~HUAWEI] interface LoopBack 0 [*HUAWEI-LoopBack0] ip address 10.1.1.1 16 [*HUAWEI-LoopBack0] quit [*HUAWEI] ftp client-source -i loopback 0