环境:centos7,重启网络,报以下错误:

ifup em2     ##启动em2网卡时报错

Error: Connection activation failed: The connection is not for this device.

解决方法:

systemctl stop NetworkManager.service

systemctl disable NetworkManager

再启动过em2网卡,就可以了

ifup em2