Virtual Machine IP Addresses

Vmware Workstation 6.0
September 16, 2009 at 18:53:25
Specs: Windows XP, 2/2
I'm running an Ubuntu VM but I suppose this applies to any VM that I would be running. I can get on the internet on my VM but the ip address I'm given is a 192. ip address that is assigned by my computer to the VM. I need my VM to get it's own IP address from the gateway that my actual computer is connected to. How do I do this?

See More: Virtual Machine IP Addresses

Report •

September 17, 2009 at 05:51:13
I haven't got a whole lot of experience working with VM's but from what I do have, I know two things.

In the case of multiple subnets (VLAN's) you either need one Network Interface per network (VM) and one for the physical server itself, or, you need to make the Network Interface a "trunk port" and use a virtual switch in conjunction with the VM.

From what you've written, it sounds like you have an internal VM DHCP server and likely NAT capabilities built into the VM. What's wrong with using that? Why do you need an IP from your gateway instead?

If you have more than one NIC, then I suspect it would be easy enough to assign the second one to the VM and set it up to pick up an IP from your gateway and it's DHCP service.

Report •

September 17, 2009 at 07:15:29
I only have one NIC. I was trying to bridge my wirelesss card with one of the VM adapters that appear in my network connections but it wouldn't let me. I'm doing some software development and I need to use my VM as a test machine but it has to have the same "level" of ip address as my physical machine

Report •

September 17, 2009 at 15:28:21
Telling us which VM you are using would have helped. Basically they all work in a similar fashion on at least one setting.

The VM has a Virtual dhcp server and router built into the VM. A linux guest on a standard install set to dhcp should receive an IP address issued by the VM along with route. In some you may have to use the virtual dns server ip of the VM in your config.

You shouldn't use bridged for most things. Normally there are three choices on how to connect a VM. Local of course would be only for inter-networking between VM's

Playing to the angels
Les Paul (1915-2009)

Report •

Related Solutions

Ask Question