以太网上的互联网连接经常断开

以太网上的互联网连接经常断开

我的有线局域网 (以太网) 网络连接经常中断,但无线网络工作正常,没有任何问题。这不是互联网速度的问题,因为互联网在 Windows 中工作正常。

ifconfig 输出

$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 44:1e:a1:db:95:d9  
          inet addr:192.168.28.127  Bcast:192.168.31.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31254 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1922 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2729623 (2.6 MiB)  TX bytes:228959 (223.5 KiB)
          Interrupt:41 Base address:0x4000  

ethtool 输出

$ ethtool eth0
Settings for eth0:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    MDI-X: Unknown
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: yes

lspci 输出

$ lspci -kd 10ec:8136
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
    Subsystem: Hewlett-Packard Company Device 1670
    Kernel driver in use: r8101

dmesg 输出 http://pastebin.com/5rWAuFkH

我试过:

但问题仍然存在。有人能帮我解决这个问题吗?


编辑 完整的 ifconfig 输出

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 44:1e:a1:db:95:d9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:153899 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10625 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16405299 (15.6 MiB)  TX bytes:3355393 (3.1 MiB)
          Interrupt:41 Base address:0x4000 

eth1      Link encap:Ethernet  HWaddr 94:39:e5:51:81:49  
          inet addr:192.168.235.102  Bcast:192.168.235.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4213 errors:0 dropped:0 overruns:0 frame:59354
          TX packets:4797 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2795494 (2.6 MiB)  TX bytes:712585 (695.8 KiB)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1400 (1.3 KiB)  TX bytes:1400 (1.3 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:c0:00:01  
          inet addr:172.16.222.1  Bcast:172.16.222.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:c0:00:08  
          inet addr:172.16.31.1  Bcast:172.16.31.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

编辑2

VmWare 网络配置

笔记:这些是默认配置,我没有更改它们。我只是添加了 VM。

vmnet0 vmnet0

虚拟机网卡 虚拟机网卡

虚拟机网卡8 虚拟机网卡8

答案1

你的以下言论引起了我的怀疑消息输出:

[  112.906696] bridge-eth0: disabling the bridge on dev down
[  112.906765] bridge-eth0: down
[  112.906779] bridge-eth0: detached
[  113.106574] userif-3: sent link down event.
[  113.106584] userif-3: sent link up event.
[  114.910231] r8101: eth0: link up
[  114.910591] /dev/vmnet: open called by PID 3068 (vmnet-bridge)
[  114.910628] /dev/vmnet: hub 0 does not exist, allocating memory.
[  114.910697] /dev/vmnet: port on hub 0 successfully opened
[  114.910724] bridge-eth0: up
[  114.910759] bridge-eth0: attached

我会尝试以下操作:这只是一次尝试,如果没有产生预期的结果,只需关闭电脑然后再次打开,您就会遇到与试用前相同的情况。

  1. 阻止虚拟机,彻底杀死 VMWare。
  2. 阻止网络管理器(sudo service network-manager stop);
  3. 手动连接(sudo dhclient eth0)。
  4. 尝试导航一段时间,看看是否会出现同样的问题。

让我们知道。

相关内容