解決:先停止網(wǎng)卡,
vim /etc/sysconfig/network-scripts/ifcfg-ens33
###添加網(wǎng)卡的名字
DEVICE="ens33"
HWADDR="00:0C:29:6F:AD:F2" #如果沒有則添加,這是mac地址
設(shè)置disable,然后啟動,發(fā)現(xiàn)網(wǎng)卡啟動了
在開機之后,發(fā)現(xiàn)網(wǎng)卡沒有啟動起來,進行了如下操作,還是不行
1、 ifup ens33
錯誤:激活連接失?。篘o suitable device found for this connection.
2、 systemctl start network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details
### 解決、先停止網(wǎng)卡,設(shè)置disable,然后啟動,發(fā)現(xiàn)網(wǎng)卡啟動了
systemctl stop NetworkManager
systemctl disable NetworkManager
service network restart