linux – FTP’ing大文件时如何防止TCP连接超时?

我无法将大型文件从Internet(FTP)检索到我的 Linux VM.一段时间后它会超时.

实际错误是“无法读取控制连接的回复 – 超时”.
几分钟后,在传输了大量文件后,会发生此错误.

设置是:

FTP Client:  ncftpget running in Linux on VMWare Player 3.0
FTP Server:  somebody else's machine out on the Internet,configuration unkNown
Guest OS:    Ubuntu 8.10 Linux 32-bit,with vmxnet and vmware tools installed.
Host OS:     Vista 64-bit
Network:     Linux VM connects to the Internet via Bridged NIC (also tried NAT)
FTP Mode:    PASV

我确实发现一些论坛帖子提到了某处2分钟的超时.但究竟在哪里以及如何解决它并不清楚.已尝试了一些故障排除步骤

>我已经从VMWare Player 3.0切换到VirtualBox 3.0.x,但没有运气.
>我也从NAT改为Bridged虚拟网卡,但没有运气

UPDATE
Linux VM上的Netstat和DIR-655路由器上的等效管理页面显示连接处于活动状态(tcp’ESTABLISHED’状态). Vista根本看不到连接,如果仅在VM内管理连接状态,我认为这是正常的.

这是netsh界面tcp show global在Vista上的输出,以防它有用:

C:\Users\alex>netsh interface tcp show global
Querying active state...

TCP Global Parameters
----------------------------------------------
Receive-Side Scaling State          : enabled
Chimney Offload State               : disabled
Receive Window Auto-Tuning Level    : highlyrestricted
Add-On Congestion Control Provider  : none
ECN Capability                      : disabled
RFC 1323 Timestamps                 : disabled
** The above autotuninglevel setting is the result of Windows Scaling heuristics
overriding any local/policy configuration.

解决方法

出于故障排除目的,请尝试通过wget或curl下载相同的文件.我怀疑PEra是正确的,NOOP命令会阻止它,并且可能wget或curl会发送它们.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...