Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have VMware Workstation 7 and Ubuntu Server 10.10 installed on it. When I copied my virtual hard drive to another PC it took same IP address.

Is it possible to somehow receive another IP address for other VM on other PC? I already tryed to do dhclient -r to release and dhclient ro get new, but then new IP address jumps from my network I guess. My IP is for example and VM address is too, but after steps I described before it changes to and even after I restart VM it changes back to the way it was before.

Any suggestions?

VMs do not have same MAC ( HWaddr ) address.

share|improve this question
Is the MAC address the same on both copies? – Zypher Oct 3 '11 at 21:50
No, HWaddr is different. – Eugene Oct 4 '11 at 5:44

Check /etc/networking/interfaces,

it should be set to :

auto eth0
iface eth0 inet dhcp

If it is anything else change it to that (considering eth0 is the device you connect with to the internet)

share|improve this answer
If the dhcp server is intelligent enough it will offer the same IP as before as the NIC has the same MAC address. – mailq Oct 3 '11 at 22:23
Yes but if you read the comments you would notice the HWaddr is different mate. – Lucas Kauffman Oct 4 '11 at 13:59
up vote 0 down vote accepted

Went to /etc/network/interfaces and edited already set static ip. It was the problem. I guess, that when VM setup NAT it configured itself to use one specific static IP or maybe it is designed that way by default. Can't say for sure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.