RHEL7虚拟机添加新网卡后,网卡无法启动

1.在开启网络时,有错误提示:

# systemctl restart network.service  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.

2.根据提示执行:提示错误日志如下

# systemctl status network.service
network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed (Result: exit-code) since Sat -- :: CST; 13s ago
Process: ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=/SUCCESS)
Process: ExecStart=/etc/rc.d/init.d/network start (code=exited, status=/FAILURE) Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com network[]: RTNETLINK answers: File exists
Jul :: rhce7.example.com systemd[]: network.service: control process exited, code=exited status=
Jul :: rhce7.example.com systemd[]: Failed to start LSB: Bring up/down networking.
Jul :: rhce7.example.com systemd[]: Unit network.service entered failed state.
#

3.用 ip addr 命令查看MAC地址与文件/etc/sysconfig/network-scripts/ifcfg-enp0s8中显示的不一致。

4.修改/etc/sysconfig/netwrok-scripts/ifcfg-enp0s8 中HWADDR= * :*:*:*:*:* (也就是用IP ADDR 命令所查到的MAC)

5.重启系统

04-20 10:53
查看更多