今天开virtualbox ,发现网卡没有起来,做如下操作:
1.ifconfig 只能看到L0
2. lspci 看到有网卡
3. lspci eth0 up
4. /etc/init.d/network restart
5. vim /etc/sysconfig/network-script/ifcfg-eth0 ,修改其中 on boot = "yes"
6.解决
ps : 有网友说这样还是不能解决,那建议修改/etc/rc.d/rc.local ,在其中添加一句 ifconfig eth0 up