Configure a fixed ip address for centos in vmware
1. clone a centos from vmware
2. Go to centos and open the command line and enter ifconfig. After the command is executed, no eth0 is found.
3. Execute the NIC startup command ifconfig eth0 up and then execute ifconfig
4. Configure the fixed ip, run vi/etc/sysconfig/network-scripts/ifcfg-eth0 to edit the file (HWADDR is not edited, is the mac address of the last cloned centos System)
5. restart the configuration file to make it take effect./etc/init. d/network restart
6. re-edit the configuration file vi/etc/sysconfig/network-scripts/ifcfg-eth0
7. restart the configuration file to make it take effect./etc/init. d/network restart
8. fixed ip address configured
9. Conclusion
After cloning the centos System in vmware, the mac address of the NIC of the new system is still the mac address of the NIC of the cloned system. You must specify the mac address of the NIC of the new system correctly.