有线 USB 以太网连接偶尔断开

有线 USB 以太网连接偶尔断开

首先,我不是 Linux 专业人士,所以如果我写了一些废话,请原谅我:)

所以我的星座相当不寻常。

我在 Mac Pro 上使用 VMWare Fusion 6 运行 Ubuntu 14.04 虚拟机。因为我必须为路由器上特定且不变的 MAC 地址转发端口(用于 Owncloud 安装),所以我连接了一个 USB 以太网适配器并将其连接到 VM。现在一切都正常工作了好几个小时,但随后以太网接口与交换机的链接断开了。网络管理器告诉我电缆已拔出。将网络设置为禁用并再次启用后,网络重新连接。几个小时后它将再次断开连接。

我尝试了 2 个适配器(均为 ASIX AX88179)、2 个不同的交换机,当然还有不同的电缆。我确信这种方法(将 USB 以太网适配器连接到虚拟机)在 Mac OS X 虚拟机(两年内从未出现过任何网络问题)和 Windows 虚拟机(已完美运行约 6 个月)上都能完美运行。

有人知道这是怎么回事吗?我添加了一些系统日志消息,但从我的角度来看,它看起来像是电缆断开了:

Jul  8 12:39:01 Carbon CRON[3882]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Jul  8 12:45:34 Carbon kernel: [ 1989.296243] ax88179_178a 1-1:1.0 eth1: ax88179 - Link status is: 0
Jul  8 12:45:34 Carbon NetworkManager[914]: <info> (eth1): carrier now OFF (device state 100, deferring action for 4 seconds)
Jul  8 12:45:38 Carbon NetworkManager[914]: <info> (eth1): device state change: activated -> unavailable (reason 'carrier-changed') [100 20 40]
Jul  8 12:45:38 Carbon NetworkManager[914]: <info> (eth1): deactivating device (reason 'carrier-changed') [40]
Jul  8 12:45:38 Carbon kernel: [ 1993.414886] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Jul  8 12:45:38 Carbon avahi-daemon[679]: Withdrawing address record for fe80::a2ce:XXXX:XXXX:XXXX on eth1.
Jul  8 12:45:38 Carbon avahi-daemon[679]: Leaving mDNS multicast group on interface eth1.IPv6 with address fe80::a2ce:XXXX:XXXX:XXXX.
Jul  8 12:45:38 Carbon avahi-daemon[679]: Interface eth1.IPv6 no longer relevant for mDNS.
Jul  8 12:45:38 Carbon avahi-daemon[679]: Withdrawing address record for 192.168.0.XX on eth1.
Jul  8 12:45:38 Carbon avahi-daemon[679]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.0.202.
Jul  8 12:45:38 Carbon avahi-daemon[679]: Interface eth1.IPv4 no longer relevant for mDNS.
Jul  8 12:45:38 Carbon dnsmasq[1447]: setting upstream servers from DBus
Jul  8 12:45:38 Carbon NetworkManager[914]: <warn> DNS: plugin dnsmasq update failed
Jul  8 12:45:38 Carbon NetworkManager[914]: <info> Removing DNS information from /sbin/resolvconf
Jul  8 12:12:59 Carbon whoopsie[1195]: online
Jul  8 12:45:38 Carbon whoopsie[1195]: offline
Jul  8 12:45:39 Carbon NetworkManager[914]: <info> NetworkManager state is now DISCONNECTED
Jul  8 12:45:39 Carbon dbus[606]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jul  8 12:45:39 Carbon dbus[606]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul  8 12:45:40 Carbon ntpd[2009]: Deleting interface #5 eth1, fe80::a2ce:XXXX:XXXX:XXXX#123, interface stats: received=0, sent=0, dropped=0, active_time=1957 secs
Jul  8 12:45:40 Carbon ntpd[2009]: Deleting interface #3 eth1, 192.168.0.XX#123, interface stats: received=151, sent=151, dropped=0, active_time=1957 secs
Jul  8 12:45:40 Carbon ntpd[2009]: 91.189.X.X interface 192.168.0.XX -> (none)
Jul  8 12:45:40 Carbon ntpd[2009]: 217.79.X.X interface 192.168.0.XX -> (none)
Jul  8 12:45:40 Carbon ntpd[2009]: 134.106.X.X interface 192.168.0.XX -> (none)
Jul  8 12:45:40 Carbon ntpd[2009]: 129.70.X.X interface 192.168.0.XX -> (none)
Jul  8 12:45:40 Carbon ntpd[2009]: 109.75.X.X interface 192.168.0.XX -> (none)
Jul  8 12:45:40 Carbon ntpd[2009]: peers refreshed

答案1

值得一提的是,我们在安装了 Windows 7 的 MacPro 上也遇到了同样的问题,即断开了无线连接。其他人都没有遇到与该无线连接的问题。当我们更换无线路由器后,它开始正常工作。仍然不确定原因,但自那以后我们就没有遇到任何问题。可能是时候尝试更换网络交换机并进行测试了。

相关内容