VMware Communities
wmx55
Contributor
Contributor

Assigning an external ip address to a virtual machine

Basically I have a few external IP addresses and I want to assign one of them to a vmware workstation virtual machine so it can be accesed directly from the internet .

How can I do this ?

0 Kudos
13 Replies
vmroyale
Immortal
Immortal

Hello and welcome to the forums.

Do you have internet connectivity to the host? If so, assign the IP to the VM and use a bridged connection to the NIC that has direct internet access.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
wmx55
Contributor
Contributor

Can you give me some step by step instructions please ? I don't have advanced knowledge in this domain.

The computer is running windows server 2008 .

In network connection I have Local Area Connection , VMware Network Adapter VMnet1, VMware Network Adapter VMnet8 .

Local area connection is for the network card and I added there all the external IP-s (Properties / TCP/IP / Advanced). I want to assign only one of them to a virtual machine.

0 Kudos
vmroyale
Immortal
Immortal

You will want to remove one of those IP addresses from the host and instead assign it directly to the VM. Think of the network adapter in the host as a switch at this point. The virtual machine will use the physical network adapter to pass traffic, but it will need an IP address to do that. If you have internet access to this network adapter, then this should be all you will need.

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
wmx55
Contributor
Contributor

What option for the virtual machine network should I choose ? Bridge,NAT, host only or custom ?

To witch adapter should I assign the Ip address ? VMware Network Adapter VMnet1 or VMware Network Adapter VMnet8 ?

Sorry for all the questions .I never used vmware before and I've spent the last 3 hours trying to figure this out , without success .

0 Kudos
vmroyale
Immortal
Immortal

What option for the virtual machine network should I choose ? Bridge,NAT, host only or custom ?

Try Bridged first.

To witch adapter should I assign the Ip address ? VMware Network Adapter VMnet1 or VMware Network Adapter VMnet8 ?

None of these. You assign the IP address to the network adapter INSIDE the virtual machine.

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
wmx55
Contributor
Contributor

I did that but it's still not working .

While I was trying to do this a while ago , I set VMware Network Adapter VMnet8 to Obtain an IP address automatically . Is this the problem and how can I fix it ?

0 Kudos
vmroyale
Immortal
Immortal

How is your virtual machine set up? Look at "Edit Virtual Machine Settings" and report back what is shown under the summary column for Network Adapter. It should be either Bridged, NAT, Host-Only or Custom.

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
wmx55
Contributor
Contributor

I attached a screenshot.

0 Kudos
vmroyale
Immortal
Immortal

OK, now can you post a screenshot of the Virtual Network Editor? Start -> All Programs -> VMware -> Virtual Network Editor

Can you also post a screenshot of the physical network adapter properties that the bridged connection is using?

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
admin
Immortal
Immortal

Giving an external IP address to a bridged VM should be basically the same as for a physical machine on your network, although you might need to open some holes in any firewall software on the host.

Have you been able to do this with a physical machine? Are your machines behind a router that uses NAT?

0 Kudos
wmx55
Contributor
Contributor

I disabled firewall and it's still not working .

0 Kudos
vmroyale
Immortal
Immortal

In the virtual network editor, change the "Bridged to:" pull down selection from "Automatic" to "Broadcom NetXtreme Gigabit Ethernet".

Can you post the output (or screenshot) of "ipconfig /all" from within the guest OS?

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
wmx55
Contributor
Contributor

It worked . Thank you .

0 Kudos