Set up a VMware virtual machine so that the original IP address is fixed after the virtual machine is copied

Source: Internet
Author: User

VMware has installed and set up a virtual machine in the copy to someone else, the original automatically acquired IP address will change, then the original settings based on the IP address will be invalidated, but also need to reset, more trouble, after Baidu query can be the original virtual machine IP fixed, After you set a fixed IP address, copy the virtual machine to someone else and simply set up VMware's network configuration to use the original IP address configuration without changing the IP address, which is hereby recorded.

Operating Environment:
Windows8.1 the VMware 11 installation RHEL5.6 in 64-bit environments.

Setup steps:

First, set up the network configuration of the virtual machine before the virtual machine starts, set the fixed subnet IP;

1, open the VMware, click on the menu bar "edit-Virtual Network Editor" menu, pop Up "virtual network editor";

2, select "VMnet8" in the network card list, in the following subnet IP field of the system has been randomly assigned network segment, I am here by default is assigned "192.168.101.0";

3, according to personal preferences, set the network segment you want, in Win7 above environment to change the settings need to run this tool as an administrator;

4, click "OK" button to complete the configuration after the update is complete.

Second, enter the virtual machine, set the virtual machine's network card as a fixed IP address;

1. After the virtual machine is started, the virtual machine defaults to pick an IP as its own IP address in the subnet IP segment just set up.

2, using the SSH connection tool to connect to the operating system, modify the virtual IP address is a fixed IP address;

IP address configuration file path under Linux environment:

/etc/sysconfig/networking/devices/ifcfg-eth0

[[Email Protected]_plat devices]#Catifcfg-eth0# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICE=Eth0bootproto=Noneonboot=yeshwaddr=xx: 0c: in: the: -:WuyiNETMASK=255.255.255.0ipaddr=192.168.101.133TYPE=Ethernetuserctl=Noipv6init=Nopeerdns=yes[[email Protected]_plat devices]#pwd/etc/sysconfig/networking/devices

Set the IPAddr property to a fixed IP address in the virtual subnet IP address segment with a subnet mask of 255.255.255.0

Save and restart the network after exiting;

Service Network restart

Third, copy the virtual machine to another computer, and then set the network information to open the virtual machine Discovery IP address or the original IP address.

Note: The subnet IP set by the other computer is consistent with the subnet IP of the original virtual machine.

Set up a VMware virtual machine so that the original IP address is fixed after the virtual machine is copied

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.