问题描述: ping出现Network is unreachable
解决过程: 重启网卡:service network restart ,报错
Job
for network.service failed because the control process exited with error code. See
"systemctl status network.service" and
"journalctl -xe" for details.
状态为failed
sudo 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
)
Docs: man:systemd-sysv-generator
(8
)
Process: 3253 ExecStart
=/etc/rc.d/init.d/network start
(code
=exited, status
=1/FAILURE
)
解决方案:
systemctl disable NetworkManager