

The vSphere install (IIRC) should create a vSwitch for you that will be configured for both management (VMkernel) and virtual machine (Virtual Machine Port Group) access. This will give the virtual machines physical acess to the same physical network that the vSphere host is connected to. When you create your vSwitch you'll simply create it with a VMkernel port (for accessing and managing the host) and a Virtual Machine Port Group (for the virtual machines). If you need to forward a single port to multiple virtual machines (port 80 forwarded to two different virtual machines) then you'll need to look into some type of proxy.Īs for using a single NIC in the vSphere host, it's certainly do-able. you can forward a single port to any one of your virtual machines (port 80 for instance). As for forwarding traffic from your public ip address to your virtual machines for inbound access to services such as HTTP, SMTP, FTP, etc. You should be assigning ip addresses to your vSphere host and to your virtual machines from an address space as defined in RFC 1918. I think you're confusing your single public ip address with the internal ip addresses configured on your virtual machines. However, I can see no possible way to set that up without physical access to the machine, so this solution is of limited use. Your management network would go on the private vswitch, and a port pass-through configured on the NAT gateway to allow you to connect to it. You'd then create a VM that bridges the two vswitches that acts as a NAT-gateway between the two. You do this by creating another virtual switch with no physical NICS in it. This may not be doable with your specific situation, but what you're talking about can be done.

This is a very different problem, since one NIC can have thousands of IP addresses behind it. How do I get ESXi5 to work when I only have one IP address to work with. However, you tagged this nat so I'm guessing the actual question here is: It'll complain that they really should be separated, but it'll work. Then afterwords when you connect the client to it, you can configure the VMNET to use the same NIC. When you're going through the setup, you give it an IP address for your Management network. One NIC is very doable, I've done this several times.
