Tag Archives: zzw

The unknown host problem of FTP IPv6 in zZW Linux

I encountered unknown host problem when ftp with ipv6 in linux

1.[a4_csbdc@bdc8165 ~]$ cat /etc/issue
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

in Red Hat Enterprise Linux Server release 5.5 (Tikanga)  FTP

[a4_csbdc@bdc8165 ~]$ rpm -qa |grep ftp
ftp-0.17-37.el5
lftp-3.7.11-4.el5
tftp-server-0.49-2
vsftpd-2.0.5-24.el5

[a4_csbdc@bdc8165 ~]$ ftp [2001:202:32:0:250::XXXX:XXXX:57c0]
ftp: [2001:202:32:0:250:XXXX:XXXX:57c0]: unknown host

[a4_csbdc@bdc8165 ~]$ lftp bdcuser:bdcuser\!35tt436w@[2001:202:32:0:250::XXXX:XXXX:57c0]:21 # Change to lftp command, then you can log in. Note that the backslash in the password bdcuser\!35tt436w is an escape character that is used to escape the ! sign is used.
lftp bdcfff@2001:202:32:0:250:XXXX:XXXX:57c0:~> ls
drwxrwxr-x 6 505 505 4096 Sep 20 11:50 BDC_FTP
-rw-r–r– 1 505 505 212 Oct 23 11:52 SUMMARY_FILE_20181023211157.verf
-rw-r–r– 1 505 505 150 Oct 24 11:45 SUMMARY_FILE_20181024210500.verf
-rw-r–r– 1 505 505 103 Oct 25 11:45 SUMMARY_FILE_20181025210500.verf

2.Change to another machine

[csbdc@sv0379 ~]$ cat /etc/issue
Red Hat Enterprise Linux Server release 6.0 (Santiago)
Kernel \r on an \m

[csbdc@sv0379 ~]$ rpm -qa |grep ftp
ftp-0.17-51.1.el6.x86_64
vsftpd-2.2.2-6.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
gvfs-obexftp-1.4.3-9.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
tftp-0.49-5.1.el6.x86_64
lftp-4.0.9-1.el6.x86_64

[csbdc@sv0379 ~]$ ftp 2001:202:32:0:250:XXXX:XXXX:57c0 #可以成功
Connected to 2001:202:32:0:250:XXXX:XXXX:57c0 (2001:202:32:0:250:XXXX:XXXX:57c0).
220 (vsFTPd 2.2.2)
Name (2001:202:32:0:250:XXXX:XXXX:57c0:csbdc): bdcuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (3000|).
150 Here comes the directory listing.
drwxrwxr-x 6 505 505 4096 Sep 20 11:50 BDC_FTP
-rw-r–r– 1 505 505 212 Oct 23 11:52 SUMMARY_FILE_20181023211157.verf
-rw-r–r– 1 505 505 150 Oct 24 11:45 SUMMARY_FILE_20181024210500.verf
-rw-r–r– 1 505 505 103 Oct 25 11:45 SUMMARY_FILE_20181025210500.verf
226 Directory send OK.

3. Initially, I think it is the version of the FTP client that comes with linux, but I didn’t find any information about it.

ftp-0.17-37 does not support IPV6 (below Red Hat Enterprise Linux version 6)

ftp-0.17-51.1 can support IPV6 (for Red Hat Enterprise Linux version 6 and above)