在记录系统信息过程中发现ipv6地址未生效,修改完成网卡配置文件后,重启network服务,发现报错如下问题:
[root@localhost network-scripts]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@localhost 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 五 2022-10-28 14:59:11 CST; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 33258 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=6)
`10月 28 14:59:11 localhost systemd[1]: Starting LSB: Bring up/down networking...
10月 28 14:59:11 localhost systemd[1]: network.service: control process exited, code=exited status=6
10月 28 14:59:11 localhost systemd[1]: Failed to start LSB: Bring up/down networking.
10月 28 14:59:11 localhost systemd[1]: Unit network.service entered failed state.
10月 28 14:59:11 localhost systemd[1]: network.service failed.`
解决办法
查阅相关文档,发现是由于缺少/etc/sysconfig/network
文件导致的。
[root@localhost network-scripts]# touch /etc/sysconfig/network
[root@localhost network-scripts]# systemctl restart network