Prerequisite
An IP address is configured for an interface on the router and functions as the source IP address
of an FTP connection. In this manner, security checks can be implemented.
The source address of a client can be configured as a source interface or a source IP address.
The interface configuration is possible, only if the system has a loopback interface.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ftp client-source
{
-a
ip-address
}
The source IP address of the FTP client is configured.
or
ftp client-source
{
-i
interface-type interface-number
}
The loopback addresses of the FTP client is configured.
NOTE
Then, run the
display ftp-client
command on the router to view the current configuration of the FTP client.
----End
8.6.3 Connecting to Other Devices by Using FTP Commands
You can run FTP commands to log in to other devices from the router that functions as the FTP
client.
Context
You can log in to the FTP server in the user view or the FTP view.
Do as follows on the router that serves as the client:
Procedure
l
In the user view, establish a connection to the FTP server.
Run:
ftp
[
-a
source-ip-address
|
-i
interface-type
interface-number
]
host
[
port-
number
] [
public-net
|
vpn-instance
vpn-instace-name
]
The router is connected to the FTP server.
l
In the FTP view, establish a connection to the FTP server.
1.
In the user view, Run:
ftp
The FTP view is displayed.
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
8 Accessing Another Device
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
142