
我在 VirtualBox 4.2.18 的 Mavericks 主機上使用 centos 6.2 guest。
客人在大約幾十個睡眠/醒來週期內工作良好。但隨後網路連線神秘消失。它在多次額外的睡眠/喚醒後沒有再次返回。
這是網路資訊:
Linux localhost.localdomain 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[cloudera@localhost ~]$ ifconfig -a
eth1 Link encap:Ethernet HWaddr 08:00:27:EB:4E:4D
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:600745 errors:0 dropped:0 overruns:0 frame:0
TX packets:454956 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:424847635 (405.1 MiB) TX bytes:46180137 (44.0 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:44851827 errors:0 dropped:0 overruns:0 frame:0
TX packets:44851827 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:60169754058 (56.0 GiB) TX bytes:60169754058 (56.0 GiB)
更新 停止虛擬機器並重新啟動後網路又恢復了。但是..有沒有辦法在不重新啟動的情況下恢復網路連線?
答案1
無需重啟即可獲得網路可用性的可靠方法是:
sudo service network restart