/sbin/ifup: configuration for eth0 not found解决

/sbin/ifup: configuration for eth0 not found.
Usage: ifup <device name>

那么应该是在/etc/sysconfig/network-scripts/这个文件夹下没有ifcfg-eth0文件,若在/etc /sysconfig/networking/devices目录下存在一个ifcfg-eth0文件,则只要把这个文件拷到/etc /sysconfig/network-scripts/这个文件夹下就行了,再点激活eth0网卡时就ok了!

 

经查询及参考/etc/sysconfig/network-scripts/ifup-eth文件,

     if is_bonding_device ${DEVICE} ; then

            for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do

            is_ignored_file "$device" && continue

            /sbin/ifup ${device##*/}

            done

     fi

你可能感兴趣的:(configuration)