Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want my VM to be assigned the IP address of the host.

My VM (Ubuntu OS 12.04 LTS) is installed inside my Windows 7 host machine. When I connect the host to the network, it is assigned an IP address by the DHCP. The network does not allow the physical machine to request for more than one IP address; it will lock the LAN connection immediately.

How can I configure the VM to get the network connectivity from the host using the same IP address?

Thank you.

share|improve this question
1  
VMWare and VirtualBox are different products. This question is not a duplicate, just similar. In any case, my answer suggests using port forwarding which isn't addressed in the VMWare reply. –  jlliagre Apr 25 '13 at 20:56

1 Answer 1

You cannot have two machines having the same IP address otherwise traffic would be impossible between them. There are however several ways for your VM to communicate to/from the Internet in your case.

For outgoing traffic, you can use the default network configuration which is NAT, i.e. VirtualBox will translate your internal IP address to the host one.

For incoming traffic, you can configure port forwarding for specific ports to be handled by your VM instead of the host.

Have a look to this blog page for details: https://blogs.oracle.com/fatbloke/entry/networking_in_virtualbox1

share|improve this answer

Your Answer

 
discard

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.