Virtual machine for a lot of test or in the study of the people in the test is a frequent, often use, but after the virtual machine restarts, many people encounter virtual machine IP changes, is a headache, I also encountered this problem in the learning process, Baidu a lot of ways, some methods for the network knowledge Small white is a little difficult, There are some sharing experience has not worked, after trying, summed up two simple rude, pro-test effective method, shared out, meet the person can do a reference, especially to small white, can quickly solve this problem, not in this small problem waste too much time, the big God can be ignored.
First of all, make sure you're in . Nat mode, this time by the VM8 virtual network card to provide the virtual machine IP allocation , the equivalent of a small DHCP server , unless you change the network connection of the virtual machine , or the Virtual network card service Properties , then the virtual machine When the IP lease expires , the IP is automatically assigned
Programme one:
This can keep the same IP for a long time, but the lease expires and is updated to the new IP
Ps: Longer found on the Web the direct cancellation of the use of the local DHCP service to assign IP addresses to the virtual machine can be fixed IP, after the trial is invalid, and not connected to the network, guess may be the version cause
Scenario Two:
After creating the virtual machine, nothing to change, directly query the current IP (using ifconfig instructions to prevent yourself setting up the network error, so that some insurance), then the current network editing can
After this setting, theIP is fixed, once and for all
Ps: Of course, there are some instructions to modify the IP, gateway, etc., for small Bailai said complex, difficult, this is two simple rough fixed IP approach, for reference only
Simple brute-fixed IP in VMware virtual machines