HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 72

ftp, Related commands

Page 72 highlights

Related commands: ftp client source. Examples # Display the source IP address configuration of the FTP client. display ftp client configuration The source IP address is 192.168.0.123 ftp Syntax View ftp [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] ] User view Default level 3: Manage level Parameters server-address: IP address or host name of a remote FTP server, a string of 1 to 20 characters. service-port: TCP port number of the remote FTP server, in the range of 0 to 65535. The default value is 21. vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the FTP server belongs to. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. source { interface interface-type interface-number | ip source-ip-address } ]: Specifies the source address used to establish an FTP connection. • interface interface-type interface-number: Specifies the source interface by its type and number. The primary IP address configured on this interface is the source address of the transmitted FTP packets. If no primary IP address is configured on the source interface, the connection fails. • ip source-ip-address: Specifies the source IP address of the transmitted FTP packets. This source address must be the one that has been configured on the device. Description Use ftp to log in to the remote FTP server and enter FTP client view. This command applies to IPv4 networks only. If you use this command without specifying any parameters, you will simply enter the FTP client view without logging in to the FTP server. If you specify the parameters, you will be prompted to enter the username and password for accessing the FTP server. Examples # Log in the server 192.168.0.211. The source IP address of sent FTP packets is 192.168.0.212. 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. 65

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

65
Related commands:
ftp client source
.
Examples
# Display the source IP address configuration of the FTP client.
<Sysname> display ftp client configuration
The source IP address is 192.168.0.123
ftp
Syntax
ftp
[
server-address
[
service-port
] [
vpn-instance
vpn-instance-name
] [
source
{
interface
interface-type
interface-number
|
ip
source-ip-address
} ] ]
View
User view
Default level
3: Manage level
Parameters
server-address
: IP address or host name of a remote FTP server, a string of 1 to 20 characters.
service-port
: TCP port number of the remote FTP server, in the range of 0 to 65535. The default value is
21.
vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN that the FTP server belongs to. The
vpn-instance-name
argument is a case-sensitive string of 1 to 31 characters.
source
{
interface
interface-type interface-number
|
ip
source-ip-address
} ]: Specifies the source address
used to establish an FTP connection.
interface
interface-type interface-number
: Specifies the source interface by its type and number. The
primary IP address configured on this interface is the source address of the transmitted FTP packets.
If no primary IP address is configured on the source interface, the connection fails.
ip
source-ip-address
: Specifies the source IP address of the transmitted FTP packets. This source
address must be the one that has been configured on the device.
Description
Use
ftp
to log in to the remote FTP server and enter FTP client view.
This command applies to IPv4 networks only.
If you use this command without specifying any parameters, you will simply enter the FTP client view
without logging in to the FTP server.
If you specify the parameters, you will be prompted to enter the username and password for accessing
the FTP server.
Examples
# Log in the server 192.168.0.211. The source IP address of sent FTP packets is 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.