FTP commands can be used to log in to other devices from an FTP client.
Commands can be run in the user or FTP client view to establish connections to remote FTP servers.
Before logging in to the FTP server, you can run the set net-manager vpn-instance command to configure a default VPN instance. After a default VPN instance is configured, it will be used for FTP operations.
Perform either of the following operations on the FTP client based on the type of the server's IP address:
View |
Operation |
---|---|
User view |
Run the ftp [ -a source-ip-address | { -i interface-type interface-number | interface-name } ] host-ip [ port-number ] [ public-net | vpn-instance vpn-instance-name ] command to establish a connection to the FTP server. |
FTP client view |
Run the open [ -a source-ip | { -i interface-type interface-number | interface-name } ] host-ip-address [ port-number ] [ public-net | vpn-instance vpn-instance-name ] command to establish a connection to the FTP server. |
View |
Operation |
---|---|
User view |
Run the ftp ipv6 [ -a source-ip6 ] host-ipv6-address [ [ vpn-instance ipv6-vpn-instance-name ] | public-net ] [ -oi { interface-type interface-number | interface-name } ] [ port-number ] command to establish a connection to the FTP server. |
FTP client view |
Run the open ipv6 [ -a source-ip6 ] host-ipv6-address [ -oi { -i interface-type interface-number | interface-name } ] [ port-number ] [ vpn-instance vpn-instance | public-net ] command to establish a connection to the FTP server. |