Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a ESXi server that has just one ip, which is assigned to the host. Is there a way to map certain host ports to the vm's that it runs, or should I just order extra ip's at my hoster?

Thanks.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

No, you'll have to order more IPs.

share|improve this answer
    
Thanks, done, but now having routing issues. In case you're interested: serverfault.com/questions/534213/… –  Nick Kusters BC Aug 27 '13 at 17:22

You can set up a router VM and confiure NAT to masquerade all the traffic with your IP.

Apparently there's a cisco product called Cisco Cloud Services Router 1000V, which can do that. There's a free limited version of that. Or you can do it with almost any OS you like.

Of course you should keep in mind that in case router VM will be switched off - you won't have an access to ESXi host to bring it back up. And in datacenter environment it's really tricky to remove the IP from esxi host to put it to router.

share|improve this answer
    
But he'll need the management interface to have an IP, in his case the ONLY IP, sure if you've got two IP you could setup a router (pfsense?) and assign that second IP to the external interface of the router and NAT the internal address space but he will need at least two IPs, there's no way to get the management interface of the host to act as a router. –  Chopper3 Aug 26 '13 at 11:53
    
I see no problem in using external ip for management and NAT in the same time. Of course one would need a private subnet between router and other VMs. –  DukeLion Aug 26 '13 at 11:54
3  
Sorry but you're wrong - if you think you're right tell me EXACTLY how you'd use a single IP for management and NAT. –  Chopper3 Aug 26 '13 at 11:59
    
ok, let me make it clear. There's at least 2 management IPs - let's say IP1 is external interface of router and IP2 is for esxi management console. IP2 could be also in private subnet behind the router. Not the best way to do it, but stil feasible. –  DukeLion Aug 26 '13 at 12:05
    
So you're admitting that you were wrong and you can't do this with a single IP right? if so then perhaps you might want to remove your downvote to my correct answer? –  Chopper3 Aug 26 '13 at 12:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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