In linux, vmwarecentos cannot configure a fixed ip address for centos cloned under vmware

Source: Internet
Author: User

In linux, vmwarecentos cannot configure a fixed ip address for centos cloned under 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.






Centos54 virtual machine cannot be started after cloning

Have all the vmdk files been copied? How do you feel that you have copied fewer vmdk files on the virtual disk?
A virtual machine may have multiple vmdks. During copy, you only need to copy the full vmdk, and then reference the vmdk in the new method ~

How to clone one CentOS to another CentOS in linux

Copy with dd, but be careful. This command is dangerous.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.