1、错误信息
● network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: active (exited) since 三 2020-06-17 14:17:55 CST; 5min ago Docs: man:systemd-sysv-generator(8) Process: 21758 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS) Process: 21912 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS) 6月 17 14:17:54 localhost.localdomain systemd[1]: Stopped LSB: Bring up/down networking. 6月 17 14:17:54 localhost.localdomain systemd[1]: Starting LSB: Bring up/down networking... 6月 17 14:17:54 localhost.localdomain network[21912]: 正在打开环回接口: [ 确定 ] 6月 17 14:17:55 localhost.localdomain network[21912]: 正在打开接口 eth0: 连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/2) 6月 17 14:17:55 localhost.localdomain network[21912]: [ 确定 ] 6月 17 14:17:55 localhost.localdomain systemd[1]: Started LSB: Bring up/down networking.
2、解决方法
①、停掉NetworkManager
service NetworkManager stop
chkconfig NetworkManager off
②、配置文件设置Mac地址
1)、查看IP/Mac
ip addr
2)、配置文件添加/修改Mac
vi /etc/sysconfig/network-scripts/ifcfg-eth0 #添加修改Mac地址 HWADDR=00:15:**:01:**:08
3)、重启网络
systemctl restart network
#查看网络
systemctl status network
4)、运行状态