网卡报错:Failed to start LSB: Bring up/down networking

简介:

在虚拟化服务器的Cent OS 7系统中重启网络服务时报错:
systemctl restart network.service
faild to start lsb:bring up/down networking

解决如下:
修改网卡配置文件:
HWADDR=80:c1:6e:66:a6:bc  #这是追加的一行,与网卡对应的MAC地址
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp3s0f0
UUID=28cbe2b9-9a34-4f46-bc64-9c575a63f44b
ONBOOT=yes
IPADDR0=192.168.0.168
GATEWAY0=192.168.0.1
PREFIXO0=24
DNS1=202.96.134.133
DNS2=202.96.128.68

然后重启网络服务。

附:
Centos7 开始,网络由 NetworkManager 服务负责管理,相对于旧的 /etc/init.d/network 脚本,NetworkManager是动态的、事件驱动的网络管理服务。旧的 /etc/init.d/network 以及 ifup,ifdown 等依然存在,但是处于备用状态,即:NetworkManager运行时,多数情况下这些脚本会调用NetworkManager去完成网络配置任务;NetworkManager没有运行时,这些脚本就按照network管理网络。


本文转自 zengwj1949 51CTO博客,原文链接:http://blog.51cto.com/zengwj1949/2047187


相关文章
|
Kubernetes Linux 容器
【kubernetes】修复 systemctl status sshd Failed to get D-Bus connection: Operation not permitted
【kubernetes】修复 systemctl status sshd Failed to get D-Bus connection: Operation not permitted
566 0
|
缓存 监控 网络协议
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(一)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data
93 0
|
Linux Docker 容器
Docker提示IPv4 forwarding is disabled. Networking will not work错误
Docker提示IPv4 forwarding is disabled. Networking will not work错误
|
SQL 存储 缓存
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(十)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(十)
356 1
|
缓存 监控 网络协议
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(四)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(四)
132 1
|
缓存 监控 网络协议
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(五)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(五)
193 0
|
存储 缓存 Linux
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(六)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(六)
111 0
|
缓存 监控 Linux
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(九)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(九)
229 0
|
存储 监控 网络协议
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(三)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(三)
143 0
|
存储 缓存 监控
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(二)
译|Monitoring and Tuning the Linux Networking Stack: Sending Data(二)
87 0