• Failed to start LSB: Bring up/down networking


    1.查看

    [root@centos7 network-scripts]# 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 三 2021-02-24 17:25:25 CST; 34min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 9525 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
    
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 systemd[1]: network.service: control process exited, code=exited status=1
    2月 24 17:25:25 153-37-216-21 systemd[1]: Failed to start LSB: Bring up/down networking.
    2月 24 17:25:25 153-37-216-21 systemd[1]: Unit network.service entered failed state.
    2月 24 17:25:25 153-37-216-21 systemd[1]: network.service failed.
    

    2.问题排查

    # 1.如果是启动的network的话,可以是下面多个网卡配置文件,启动的话会顺序检查,可以将用不到的ifcfg-eth*删掉
    [root@centos7 network-scripts]# ll
    总用量 248
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth0
    -rw-r--r--  1 root root    62 2月  24 16:47 ifcfg-eth1
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth2
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth3
    # 2.可以停用network启用NetworkManager
    [root@153-37-216-21 network-scripts]# systemctl status NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
       Active: active (running) since 三 2021-02-24 17:26:15 CST; 35min ago
         Docs: man:NetworkManager(8)
     Main PID: 9781 (NetworkManager)
       CGroup: /system.slice/NetworkManager.service
               ├─9781 /usr/sbin/NetworkManager --no-daemon
               ├─9788 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.leas...
               └─9790 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/NetworkManager/dhclient-9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04-eth1.leas...
    
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5450] dhcp4 (eth1):   address 192.168.103.102
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5450] dhcp4 (eth1):   plen 24 (255.255.255.0)
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5451] dhcp4 (eth1):   lease time 4294967295
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5451] dhcp4 (eth1): state changed unknown -> bound
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5464] device (eth1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5473] device (eth1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5476] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5505] device (eth1): Activation: successful, device activated.
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5509] manager: startup complete
    2月 24 17:26:15 153-37-216-21 dhclient[9790]: bound to 192.168.103.102 -- renewal in 2147483648 seconds.
    注:两者有时会冲突
    
  • 相关阅读:
    使用jquery插件操作哈希表Hashtable的应用
    学用 ASP.Net 之 "字符串" (1): 基础
    敬告
    jQuery 练习[一]: 准备工作
    学用 ASP.Net 之 "字符串" (2): string.Format
    jQuery 练习[二]: 获取对象(1) 基本选择与层级
    学用 ASP.Net 之 "字符串" (3): string 类的非扩展方法
    jQuery 练习[二]: 获取对象(2) 定位子对象
    一个分割文本文件的小程序 回复 "jellyang" 的问题
    Delphi 7 类库继承关系表
  • 原文地址:https://www.cnblogs.com/Applogize/p/14442977.html
Copyright © 2020-2023  润新知