I have a ESXI 5.1 which comes with a /29 Block IP (EX. and the ESXi management address is frist usable addres, also i have a secondary /27 IP block ( which is static routed to the primary (first usable) IP address of /29 (statically routed to , I need to run VM and give them the IP from secondary IP block but i do not know how to do IP forwading in ESXI ! (i already did in KVM virtualization but there is no option like that in ESXI) anyone could help with this ? Thanks

  • VMware is not really intended to be a router in this fashion. Is this a hosted ESXi server? Do you have an option to install a small firewall/router appliance? – ewwhite Dec 27 '15 at 15:24
  • Yes this is a hosted ESXI , if the only option is an router appliance , i will, but i do not have any idea how to do . – Reza Bagh Dec 27 '15 at 17:48
  • 1
    I never used KVM and I don't have a reference of how you did the IP forwarding you are saying, but usually what is done in an ESXi environment when you need to connect to multiple network on the same NIC is to have vLAN Tagging or IEEE 802.1Q, it works in layer 2 and logically separates networks, and you can add that in the vNIC of the VM you want in another vLAN, that is usually provided by your network administrator once you ask for it, since you say this is a hosted ESXi I'm guessing you shold ask the company that is hosting it if they can do that. – AnGut_IT Dec 28 '15 at 7:20

ESXi is meant to only do switching, that's why you have vSwitches. So in a normal application, you'd do the routing externally and just pipe in all networks as tagged traffic to the pNICs, and then assign port groups in the vSwitches with different VLAN tagging. vmkernel adapters are then a different thing, they are the Hypervisors own network adapters inside the virtual network, and these can be assigned to corresponding port groups. What I usually do in cases where I need a router is to install for example pfSense on a VM on the host and do the required L2 plumbing to get what I want. So in your case you'd need to assign a different IP to the host, assign to a router/fw of some sort, virtual or otherwise, and have that VM/physical box do the routing between the networks. For a really basic setup, you could actually use a Windows VM even.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.