問題描述:
虛擬機(jī)中的eth33網(wǎng)卡沒有啟動(dòng),執(zhí)行systemctl status network.service啟動(dòng)報(bào)錯(cuò)。
報(bào)錯(cuò)信息如下:
[root@zeppelin network-scripts]# systemctl status network.service ● network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2019-06-21 03:22:10 PDT; 27s ago Docs: man:systemd-sysv-generator(8) Process: 5948 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS) Process: 6074 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE) Jun 21 03:22:09 zeppelin.zetyun.com systemd[1]: Starting LSB: Bring up/down networking... Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up loopback interface: [ OK ] Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up interface ens33: Error: Connection activation failed: No suitable device found for this connection. Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: [FAILED] Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service: control process exited, code=exited status=1 Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Failed to start LSB: Bring up/down networking. Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Unit network.service entered failed state. Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service failed.
(推薦教程:centos教程)
解決辦法:
與系統(tǒng)自帶的NetworkManager這個(gè)管理套件有關(guān)系,關(guān)閉并重啟網(wǎng)絡(luò)服務(wù)即可。
關(guān)閉:
systemctl stop NetworkManager systemctl disable NetworkManager
重新啟動(dòng)網(wǎng)絡(luò):
systemctl start network.service
相關(guān)視頻教程推薦:linux視頻教程