Failed_to_start_LSB_Bring_up/down_networking

今天启动虚拟机的时候,发现网络不通了。

查看了下,ip和网卡等的配置都是合适的。

1 事故现场

1
2
[[email protected] ~]# 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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[[email protected] ~]# systemctl status network
● 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 四 2020-09-10 08:39:43 CST; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 7314 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test systemd[1]: network.service: control process exited, code=exited status=1
9月 10 08:39:43 test systemd[1]: Failed to start LSB: Bring up/down networking.
9月 10 08:39:43 test systemd[1]: Unit network.service entered failed state.
9月 10 08:39:43 test systemd[1]: network.service failed.

关键信息

1
Failed to start LSB: Bring up/down networking.

2 解决方案

我是方案一解决问题的

2.1 方案一:禁用NetworkManager

1
2
3
systemctl stop NetworkManager
systemctl disable NetworkManager
reboot

2.2 方案二:修改mac地址

ip addr show查看当前mac地址

修改/etc/sysconfig/network-scripts/下以ifcfg开头的网络链接文件

添加或修改下面语句

1
HWADDR="00:50:56:3a:f9:77"

Finally 躺板板

红伞伞白杆杆,吃完一起躺板板

躺板板埋山山,亲朋都来吃饭饭

饭饭里有红伞伞,吃完全村埋山山,来年长满红伞伞

联系博主,加入【羊山丨交流社区】

联系博主


本博客所有文章除特别声明外,均为原创。版权归博主小马所有。任何团体、机构、媒体、网站、公众号及个人不得转载。如需转载,请联系博主(关于页面)。如其他团体、机构、媒体、网站、博客或个人未经博主允许擅自转载使用,请自负版权等法律责任!