网卡报错: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
599 0
|
2月前
|
网络协议 应用服务中间件 Linux
docker常见报错提示WARNING: IPv4 forwarding is disabled. Networking will not work.或/usr/bin/docker-current:
### 故障与解决方法概览 1. **故障现象**:运行 `docker run -d -P httpd:centos` 时提示“IPv4转发已禁用,网络将无法工作”。 - **解决方法**:通过编辑 `/etc/sysctl.conf` 设置 `net.ipv4.ip_forward=1` 并执行 `sysctl -p` 启用路由转发,然后重启 Docker 服务。
100 0
|
Linux Docker 容器
Docker提示IPv4 forwarding is disabled. Networking will not work错误
Docker提示IPv4 forwarding is disabled. Networking will not work错误
|
Docker 容器
docker 内执行 systemctl 报错 解决方案: Failed to get D-Bus connection: Operation not permitted
docker 内部安装 systemctl 工具包的路径非系统路径,拷贝到系统路径 /bin/ 目录下,并且给执行权限即可
594 1
|
关系型数据库 MySQL Docker
Docker报错 WARNING: IPv4 forwarding is disabled. Networking will not work
Docker报错 WARNING: IPv4 forwarding is disabled. Networking will not work
143 0
|
Java jenkins 程序员
jenkins部署的时候WARNING: IPv4 forwarding is disabled. Networking will not work.
jenkins部署的时候WARNING: IPv4 forwarding is disabled. Networking will not work.
|
开发工具 Docker 容器
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
190 0
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
|
Linux 容器 Kubernetes
环境异常解决方案-CentOS 7 网络异常【Failed to start LSB: Bring up/down networking】
问题呈现 今天启动Kubernetes集群的时候发现部署的zookeeper集群有一个节点始终启动不成功,然后查看了一下日志发现报错信息是【getsockopt: no route to host】: error 根据以前的经验,这多半是...
7440 0
failed to start lsb:bring up/down
centos 7 有的时候重启网络报错,failed to start lsb:bring up/down 解决方法: systemctl stop NetworkManager
|
Linux
CentOS系统安装之网络问题(Network is unreachable;name or service not found)
CentOS系统安装之网络问题(Network is unreachable;name or service not found)
1056 0

热门文章

最新文章