新安装Linux network起不来

Linux新安装的,发现网络不通

提示: # [解决报错Failed to start LSB: Bring up/down networking:MAC地址导致]

[root@localhost ~]# 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 Sun 2021-10-31 21:42:55 CST; 4min 20s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3041 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain network[3041]: RTNETLINK answers: File exists
Oct 31 21:42:55 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
Oct 31 21:42:55 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
Oct 31 21:42:55 localhost.localdomain systemd[1]: Unit network.service entered failed state.
Oct 31 21:42:55 localhost.localdomain systemd[1]: network.service failed.

解决办法

  • 关闭NetworkManager
[root@localhost ~]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-10-31 21:38:53 CST; 9min ago
     Docs: man:NetworkManager(8)
 Main PID: 892 (NetworkManager)
    Tasks: 3
   CGroup: /system.slice/NetworkManager.service
           └─892 /usr/sbin/NetworkManager --no-daemon

Oct 31 21:38:54 localhost.localdomain NetworkManager[892]: <info>  [1635687534.1149] manager: (virbr0-nic): n.../4)
Oct 31 21:39:18 localhost.localdomain NetworkManager[892]: <info>  [1635687558.8731] agent-manager: req[0x562...red
Oct 31 21:42:18 localhost.localdomain NetworkManager[892]: <info>  [1635687738.1397] settings-connection[0x56...ess
Oct 31 21:42:18 localhost.localdomain NetworkManager[892]: <info>  [1635687738.1398] audit: op="connection-up...ss"
Oct 31 21:42:23 localhost.localdomain NetworkManager[892]: <info>  [1635687743.9781] agent-manager: req[0x562...red
Oct 31 21:42:23 localhost.localdomain NetworkManager[892]: <info>  [1635687743.9802] audit: op="connection-ac...ed"
Oct 31 21:42:25 localhost.localdomain NetworkManager[892]: <info>  [1635687745.9155] agent-manager: req[0x562...red
Oct 31 21:42:25 localhost.localdomain NetworkManager[892]: <info>  [1635687745.9161] audit: op="connection-ac...ed"
Oct 31 21:42:55 localhost.localdomain NetworkManager[892]: <info>  [1635687775.7537] agent-manager: req[0x562...red
Oct 31 21:42:55 localhost.localdomain NetworkManager[892]: <info>  [1635687775.7547] audit: op="connection-ac...)."
Hint: Some lines were ellipsized, use -l to show in full.
  • 关闭后重启network
[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl restart network
[root@localhost ~]# systemctl status network
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: active (exited) since Sun 2021-10-31 21:49:01 CST; 16s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3416 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)

Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain network[3416]: RTNETLINK answers: File exists
Oct 31 21:49:01 localhost.localdomain systemd[1]: Started LSB: Bring up/down networking.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容