 |
» |
|
|
 |
To support IPv6 functionality, you must modify the /etc/inetd.conf file as follows: ftp stream tcp6 nowait root /usr/bin/ftpd ftpd -l |
However, if you specify tcp instead of tcp6, FTP operates in the IPv4 mode. Following are the features that support IPv6: Implementation of RFC 2428 (FTP Extensions for IPv6 and NATs) This RFC specifies a method by which FTP clients and server exchange data connection information, such as port, host address, and type of protocol family, for both IPv4 and IPv6 addresses. FTP uses EPRTand EPSV instead of PORTand PASV, respectively, for IPv6 connections. EPRT - Extended Port This command specifies a host port for both IPv4 and IPv6 connections. Example 2-11 ERPT Command Output for IPv6 and IPv6 Connections The following displays the output for the EPRT command for both IPv6 and IPv6 connections. For IPv4: ------> EPRT │1│132.235.1.2│50934│ |
For IPv6: ------> EPRT │2│fe80::260:b0ff:fec1:7b2f│50934│ |
EPSV - Extended Passive This command requests a server to listen on a data port and wait for a connection. The response to this command includes only the TCP port number of the listening connection. Example 2-12 EPASV Command Output An example for the EPASV command is as follows: ftp> passive
Passive mode on.
------> EPSV
229 Entering Extended Passive Mode (│││9495│). |
Implementation of RFC 1639 (FTP Operation Over Big Address Records (FOOBAR)) This RFC describes a convention for specifying an address other than the default data port for the connection over which data is transferred. The commands to accommodate FTP operations over network and transport protocols are specified as follows: LPRT This command allows you to specify a long address for the transport connection. Example 2-13 LPRT Command Output The following displays the output for the LPRT command: ------> LPRT
6,16,254,128,0,0,0,0,0,0,2,96,176,255,254,193,123,47,
2,198,244
200 LPRT command successful |
LPSV This command requests a server to listen on a data port other than its default port and to wait for a connection rather than initiate one upon the receipt of a transfer command. Example 2-14 LPASV Command Output The following displays the output for the LPASV command: ftp> passive
Passive mode on.
-------> LPSV
228 Entering Long Passive Mode (6,16,254,128,0,0,0,0,0,0,
2,96,176,255,254,193,123,47,2,134,7) |
 |  |  |  |  | NOTE: The FTP client must use the -l option to use the LPSV and LPRT commands. |  |  |  |  |
The FTP session command longaddr toggles the use of the LPRT (extended port) and LPSV (extended passive) commands. For more information on the -l option, type man 1 ftp at the HP-UX prompt.
|