• 安装黑马配置好的虚拟机,但是虚拟机网络不可用,出现了renetlink answers: file exists问题


    问题如下:

    [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 Tue 2020-08-18 09:43:34 HKT; 11s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 6278 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
        Tasks: 1
       Memory: 11.3M
       CGroup: /system.slice/network.service
               └─856 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-98230ece-15b5-4d6f-8cba-7d406604929f-enp0s3.lease -pf /var/run/dhclient-enp0s3.pid enp0...
    
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
    Aug 18 09:43:34 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
    Aug 18 09:43:34 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
    Aug 18 09:43:34 localhost.localdomain systemd[1]: Unit network.service entered failed state.
    Aug 18 09:43:34 localhost.localdomain systemd[1]: network.service failed.
    [root@localhost network-scripts]# cd /etc/udev/rules.d/70-persistent-net.rules

     解决问题操作了两步:

    第一步:

    关闭NetworkManager

    systemctl stop NetworkManager
    systemctl disable NetworkManager

    第二步:

    ifdown eno16777736
    # eno16777736是网卡的名字(ifconfig能查看到)
  • 相关阅读:
    AFNetWorking 文件上传 By-H罗
    利用系统APP实现导航---By张秀清
    项目 和 需求文档 -- 吴欧
    键盘弹起及lab时的动态计算高度 --董鑫
    NSSet和NSMutableSet
    内联函数 在ios中的运用 --黄仁斌
    iOS 七大手势之轻拍,长按,旋转手势识别器方法-赵小波
    网络技术之BGP
    [手游项目3]-3-golang
    [手游项目3]-2-git
  • 原文地址:https://www.cnblogs.com/sewen-H/p/13544154.html
Copyright © 2020-2023  润新知