报错信息:
执行 service network restart 时,出现以下错误
systemctl restart netuork.service Job for network.service failed because the control process exited with error code.
See "sustemctl st atus network.service" and "journalctl -xe"for details.
根据提示,执行systemctl status network.service 输出以下信息:
解决方法
修改ifcfg-ens33文件中的Mac地址(由于centos7中没有70-persistent-net.rules这个文件,复制出来的虚拟机(vmware)需要修改mac地址) 执行ip addr 命令,获取Mac地址:
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33:
link/ether00:0c:29:10:12:9a brd ff:ff:ff:ff:ff:ff
inet 192.168.38.135/24 brd 192.168.38.255 scope global dynamic ens33
valid_lft 1681sec preferred_lft 1681sec
inet6 fe80::20c:11aa:ae11:4fe4/64 scope link
valid_lft forever preferred_lft forever
注意上面 00:0c:29:10:12:9a 就是新的mac地址。 修改ifcfg-ens33文件了,只修改HWADDR部分就可以了。 HWADDR=00:0c:29:10:12:9a 最后重启网络:systemctl restart network
|