71
source
{
interface
interface-type interface-number
|
ip
source-ip-address
}: Specifies a source address for
outgoing FTP packets.
•
interface
interface-type interface-number
: Specifies a source interface. The primary IP address of
this interface will be used as the source address for outgoing FTP packets. If no primary IP address
is configured on the source interface, the connection cannot be established.
•
ip
source-ip-address
: Specifies a source IP address. This source address must be the one of the
device's IP addresses.
Usage guidelines
This command applies to only IPv4 networks.
If no parameters are specified, this command enters the FTP client view without logging in to the FTP
server.
If the server parameters are specified, you are prompted to enter the username and password for
accessing the FTP server.
Examples
# Log in to FTP server 192.168.0.211, specifying the source IP address for outgoing FTP packets as
192.168.0.212.
<Sysname1> ftp 192.168.0.211 source ip 192.168.0.212
Trying 192.168.0.211 ...
Press CTRL+K to abort
Connected to 192.168.0.211.
220 FTP Server ready.
User(192.168.0.211:(none)):abc
331 Password required for abc
Password:
230 User logged in.
[ftp]
ftp client dscp
Use
ftp client dscp
to set the DSCP value for IPv4 to use for outgoing FTP packets on an FTP client.
Use
undo ftp client dscp
to restore the default.
Syntax
ftp client dscp
dscp-value
undo ftp client dscp
Default
IPv4 uses the DSCP value 0 for outgoing FTP packets on an FTP client.
Views
System view
Default command level
2: System level