背景:
物理机35重装系统后,配置网卡。在network-scripts下增加了ifcfg-eth0 ifcfg-eth1 ifcfg-eth2 ifcfg-eth3 ifcfg-bond文件, 重启network失败,systemctl status network查看状态:Failed to start LSB:Bring up/down networking。
ip addr查看网卡信息,如下:
enp2s0f0 68:91:d0:63:8b:e0 UP
eno1 ac:1f:6b:f0:28:2c UP
enp2s0f1 68:91:d0:63:8b:e1 DOWN
eno2 ac:1f:6b:f0:28:21 DOWN
解决方法
第一步:禁用NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
第二步:修改配置文件,添加mac地址
查看网卡信息
# ip addr
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1