Passive - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Examples
# Establish a control connection with the FTP server whose IP address is 1.1.1.1 in FTP client view.
[ftp]open 1.1.1.1
Trying ...
Press CTRL+K to abort
Connected.
220 FTP service ready.
User(none):abc
331 Password required for abc
Password:
230 User logged in.

passive

Syntax
passive
undo passive
View
FTP client view
Parameters
None
Description
Use the passive command to set the data transfer mode to the passive mode.
Use the undo passive command to set the data transfer mode to the active mode.
By default, the passive mode is adopted.
The differences between the passive mode and the active mode are:
When working in the active mode, an FTP client advertises a random port Port1 to an FTP server
through TCP port 21; upon receiving the advertisement, the FTP server initiates a connection with
Port1 on the client for data transmission.
When working in the passive mode, an FTP client sends a passive request to the FTP server
before data transmission, the FTP server advertises a local random port Port2 to the FTP client,
and the FTP client establishes a connection with Port2 using a local random port.
If an FTP client initiates a connection with an FTP server through a firewall, the firewall may block the
connection request because the FTP server initiates the connection with Port1 through an external
network, and thus data transmission will be affected. Therefore, you are recommended to set the data
transmission mode of the FTP client to passive when accessing the FTP server through a firewall.
Examples
# Set the data transfer mode to the passive mode.
[ftp] passive
% Passive is on
1-14

Advertisement

Table of Contents
loading

Table of Contents