首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我如何诊断这个scp暂时冻结的网络问题?

问我如何诊断这个scp暂时冻结的网络问题?
EN

Ask Ubuntu用户
提问于 2019-05-28 05:08:10
回答 1查看 134关注 0票数 0

更新:切换到使用网络virtio驱动程序似乎已经修复它。

我试图通过scp将文件从虚拟机复制到远程主机。

经过大量的努力,我发现如果我使用一个Ubuntu云映像,scp命令会在这个状态中停留大约一分钟左右:

代码语言:javascript
复制
ubuntu@ubuntu:~$ scp -i foo.pem logo-60263262.mp4 ubuntu@target.example.com:.
logo-60263262.mp4                               0%    0     0.0KB/s   --:-- ETA

在突然完成转移之前:

代码语言:javascript
复制
ubuntu@ubuntu:~$ scp -i foo.pem logo-60263262.mp4 ubuntu@target.example.com:.
logo-60263262.mp4                             100%  645KB   6.9KB/s   01:33

注意上面的传送花了1分33秒。

而在Centos云映像上,传输时间为2秒:

代码语言:javascript
复制
[centos@localhost ~]$ scp -i foo.pem logo-60263262.mp4 ubuntu@target.example.com:.
logo-60263262.mp4                                                                                                                                                                  100%  645KB 322.3KB/s   00:02

我没有办法诊断这两个系统之间的不同之处,而这正是Ubuntu上的问题所在。

有人能建议我能做些什么吗?这是Centos 7和Ubuntu 19的最新版本,我也试用了Ubuntu 18

:

代码语言:javascript
复制
ubuntu@ubuntu:~$ ifconfig
ens2: flags=4163  mtu 1500
        inet 192.168.1.115  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5054:ff:fee7:974d  prefixlen 64  scopeid 0x20
        ether 52:54:00:e7:97:4d  txqueuelen 1000  (Ethernet)
        RX packets 3988  bytes 1623170 (1.6 MB)
        RX errors 0  dropped 3  overruns 0  frame 0
        TX packets 2435  bytes 3468401 (3.4 MB)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 11541

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 204  bytes 16944 (16.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 204  bytes 16944 (16.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ubuntu@ubuntu:~$

Centos ifconfig:

代码语言:javascript
复制
[centos@localhost ~]$ ifconfig
ens2: flags=4163  mtu 1500
        inet 192.168.1.114  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5054:ff:fe69:6aa1  prefixlen 64  scopeid 0x20
        ether 52:54:00:69:6a:a1  txqueuelen 1000  (Ethernet)
        RX packets 3324  bytes 933660 (911.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2465  bytes 2877907 (2.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 6  bytes 416 (416.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 416 (416.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[centos@localhost ~]$
EN

回答 1

Ask Ubuntu用户

发布于 2019-05-28 05:48:05

查看ifconfig输出,在Ubuntu上检测到冲突。

代码语言:javascript
复制
TX errors 0  dropped 1 overruns 0  carrier 0  collisions 11541

重复IP?

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1146722

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档