linux 找不到eth0设备 启动eth0失败
CCSOY 2018-10-12 11:32:07 ifconfig -a 显示只有lo, venet0 ,venet0:0 没有eth0
在/etc/sysconfig/network-scripts 目录里添加了ifcfg-eth0 并修改内容后 reboot重启后
service network restart 显示
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
[FAILED]
Bringing up interface venet0: [ OK ]
又尝试了 ifup eth0 提示 Device eth0 does not seem to be present, delaying initialization.
/etc/udev/rules.d/ 目录下 只有60-raw.rules
现在发现 cat /proc/net/dev 没有eth0 只有如下内容
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
venet0: 153425 1496 0 0 0 0 0 0 215395 1297 0 0 0 0 0 0
并且cd /sys/devices/virtual/net目录下 也没有eth0 只有如下
drwxr-xr-x 5 root root 0 Oct 12 06:00 lo
drwxr-xr-x 5 root root 0 Oct 12 06:00 venet0
要怎么安装eth0
求大虾指点一下 谢谢了