Today, I encountered with a strange error after I cloned CentOS 6 guest machine in Oracle VirtualBox. After logging in to CentOS guest, my network card is disappeared. I can’t SSH to the CentOS guest anymore. I tried to check the IP address using command:

# ifconfig

Sample output:

 lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 config details doesn’t show up. It only displays the loopback interface details.

I tried to restart the network service to sort out the issue.

# service network restart

Nothing! It simply displayed the following error.

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization

Method 1:

To fix this problem, simply remove the file /etc/udev/rules.d/70-persistent-net.rules and reboot your system.

# rm /etc/udev/rules.d/70-persistent-net.rules

Now, you will see the network card is up.

Method 2:

If the problem is still not solved, open up the eth0 config file:

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Note down the MAC id (HWADDR). change HWADDR to your VMWare Network Card Mac address

[...]
HWADDR=08:00:27:DC:33:3F
[...]

最新文章

  1. java 字符串zlib压缩/解压
  2. solr与.net系列课程(一)solr的安装与配置
  3. 去处HTML标签
  4. c编写程序完成m名旅客和n辆汽车的同步程序代写
  5. Android 导出db并查看内容
  6. oracle执行.sql文件
  7. Topas命令详解
  8. DNA Sequence - POJ 2778(AC自动机+矩阵乘法)
  9. Html.ActionLink("linkText","actionName")
  10. 狙杀ES6之开光篇
  11. net start mongodb 服务名无效解决方案
  12. 我的第五个网页制作:pre、html转义、abbr标签的使用
  13. <笔记>三码合一
  14. 背水一战 Windows 10 (104) - 通知(Toast): 纯文本 toast, 短时 toast, 长时 toast, 图文 toast
  15. DHCP服务器的搭建
  16. Spring AOP原理(续)
  17. mongodb数据库集群及sharding分片配置
  18. django_simple_captcha使用笔记
  19. php的几个面试题
  20. jQuery实现鼠标选中文字后弹出提示窗口效果

热门文章

  1. 孵化器使用Office365的场景及收益
  2. LeetCode 96——不同的二叉搜索树
  3. Python3 小工具-UDP发现
  4. 又见CLOSE_WAIT
  5. Lecture Sleep(尺取+前缀和)
  6. 20172330 2017-2018-1 《Java程序设计》第五周学习总结
  7. 团队作业7——第二次项目冲刺(Beta版本)
  8. LintCode-5.第k大元素
  9. Vue于React特性简单对比(一)
  10. idea快捷键操作