[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: need to disable IPv6
On Thu, Jun 28, 2012 at 04:58:16PM +0900, Takahiro Kambe wrote:
> In message
> on Thu, 28 Jun 2012 11:50:46 +0300,
> Aleksey Cheusov <cheusov%tut.by@localhost> wrote:
> > On Thu, Jun 28, 2012 at 10:48 AM, Takahiro Kambe
> > <taca%back-street.net@localhost> wrote:
> >> What is your case?
> > The following is sent to stderr both with and without -V.
> > Trying 2001:470:1f05:3d::21:21 ...
> > ftp: Can't connect to `2001:470:1f05:3d::21:21': No route to host
> Then, ftp(1) should be fallback to IPv4, but it seems to not.
> I don't have any idea why it is, at least without knowning your
> Internet connection environment.
I checked experimentally. I've deleted the v6 default route:
# route delete -inet6 default
delete net default
# netstat -rnf inet6 | grep default
# ftp -V ftp.netbsd.org
ftp: Can't connect to `2001:470:1f05:3d::21:21': No route to host
Name (ftp.netbsd.org:ignatios): ftp
ftp>  + Suspended ftp -V ftp.netbsd.org
# netstat -nf inet | grep '21 '
tcp 0 0 22.214.171.124.61938 126.96.36.199.21 ESTABLISHED
 + 9204 Suspended ftp -V ftp.netbsd.org
# fstat -p 9204
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W
root ftp 9204 5* internet stream tcp 188.8.131.52:21 <->
so it works as in the code. Something strange is happening on your network;
please check with e.g. tcpdump.
Main Index |
Thread Index |