CentOS 7/RHEL 7 网卡启动错误

在 CentOS 7/RHEL 7 下关闭 NetworkManager 服务导致网卡启动失败,在Disabling NetworkManager on RHEL 7 找到相同问题并解决。

一、关闭并移除开机启动 NetworkManager

systemctl stop NetworkManager
systemctl disable NetworkManager

二、启动 network 错误输出如下:

# systemctl restart network
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
# systemctl status network
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Tue 2015-01-20 20:23:34 CST; 15s ago
  Process: 1659 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 2588 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 network[2588]: RTNETLINK answers: File exists
Jan 20 20:23:34 docker1 systemd[1]: network.service: control process exited, code=exited status=1
Jan 20 20:23:34 docker1 systemd[1]: Failed to start LSB: Bring up/down networking.
Jan 20 20:23:34 docker1 systemd[1]: Unit network.service entered failed state.

三、解决方法

对应网卡配置文件添加 MAC 地址行,即:

# /etc/sysconfig/network-scripts/ifcfg-eth0 
... ...
HWADDR=00:xx:xx:xx:xx:xx
... ...

--EOF--

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值