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 192.168.119.xxx and VM address is too 192.168.119.xxx, but after steps I described before it changes to 192.168.85.xxx and even after I restart VM it changes back to the way it was before.

Any suggestions?

UPD:
VMs do not have same MAC ( HWaddr ) address.

link|improve this question

3  
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
feedback

2 Answers

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)

link|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
feedback
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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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