Hi I need to simulate a VM that is connected to the public Internet with public IP addresses in VMware Workstation but not sure if I'm using the appropriate steps. What I did was something like this:
Questions:
1.) Unless you need to access the VM from the host's virtual network adapter, you don't even need to create a separate vmnet.
2.) Traffic on a Host-Only network will not be stay internally. However, creating such a vmnet with a host virtual adapter may prevent the host from accessing this specific subnet on the Internet, because traffic is routed internally.
3.) The proper Subnet ID in this case is 109.122.105.88/29 (see e.g. http://www.subnet-calculator.com/)
4.) No, nothing that I would know of.
André
1.) Unless you need to access the VM from the host's virtual network adapter, you don't even need to create a separate vmnet.
2.) Traffic on a Host-Only network will not be stay internally. However, creating such a vmnet with a host virtual adapter may prevent the host from accessing this specific subnet on the Internet, because traffic is routed internally.
3.) The proper Subnet ID in this case is 109.122.105.88/29 (see e.g. http://www.subnet-calculator.com/)
4.) No, nothing that I would know of.
André
I don't know if I'm understanding your title question correctly, but the most simple way of connecting a VM directly to the public internet is just by setting the Network Adapter connection setting to Bridged:
This will have your VM behave as if it were physically connected to your router/switch.
Hi, a.p. thanks for answering. I actually just completed a very throughout test and yes my observations matches what you are saying.
1.) Unless you need to access the VM from the host's virtual network adapter, you don't even need to create a separate vmnet.
I do need to access the VM from the host that is running VMware Workstation. My understanding is that if I don't create a separate VMnet with the correct subnet IP and mask assigned, the VM will not be able to bind the IPs it need and I won't be able to reach it from the host. So for example, if the VM needs to use both 192.168.10.101 and 109.122.105.90, I need to create 2 VMnets, one for 192.168.10.0/24 and one for 109.122.105.88/29.
You want to create a vmnet for each subnet that you need to access form the host. The "Virtual Network Adapter" for the vmnet that's created on the host receives the x.x.x.1 IP address (in a /24 subnet), which actually allows the network communication.
André