Sign in to follow this  
Followers 0
Fahim S.

Running my router as a VM inside ESXi

10 posts in this topic

Hi -

Got a question that I hope someone can help me with.

I want to run my server with ESXi, running a bunch of VMs (pfSense, FreeNAS, a linux server or two) but am a little confused as to how the network will work, or even if it can.

I want to have a NIC dedicated to a pfSense VM connected my FTTC modem over PPOE.

The other NIC will be connected into my LAN (essentially a switch), which is where everything else will connect - including my TV, Sonos boxes, Laptops, Desktop, Phones, Tablets, Access Point for WiFi etc

I want pfSense to not just be my router but also provide services such as DHCP.

If pfSense boots after the ESXi server does, how do I get the ESXi server onto the same network?

How do I configure it all in the first place if there is nothing providing DHCP before the pfSense installation is done?

Hope this makes sense...

Share this post


Link to post
Share on other sites

Its the same as deploying a tmg server, You need two NIC's the external network nic you only add to the router vm none of the other computers should have it.

As for the internal lan you need static addressing (for the virtualization server, routers internal nic etc) As long as they are on the same subnet they can communicate when the vm boots up

Additional services must listen on the internal NIC and if you have a DNS server you should make sure the external servers ip address isn't registered in dns because you don't want clients on the internal lan to try to connect via the external nic ip address.

Share this post


Link to post
Share on other sites

Its the same as deploying a tmg server, You need two NIC's the external network nic you only add to the router vm none of the other computers should have it.

As for the internal lan you need static addressing (for the virtualization server, routers internal nic etc) As long as they are on the same subnet they can communicate when the vm boots up

Additional services must listen on the internal NIC and if you have a DNS server you should make sure the external servers ip address isn't registered in dns because you don't want clients on the internal lan to try to connect via the external nic ip address.

Sorry - a TMG server?

Share this post


Link to post
Share on other sites

Another secure gateway/router the setup for both is similar, two nics internal/external etc

Share this post


Link to post
Share on other sites

Thanks.

But how do I give the 'empty' ESXi server a static IP address in the first place?

Is that something that needs to be done during the installation of ESXi?

Share this post


Link to post
Share on other sites

You'll configure the static IP as part of the installation of pfSense.

Share this post


Link to post
Share on other sites

I see what your getting at, Especially if the DHCP server is a VM and it comes up AFTER the ESXi Host. It should never be designed like that anyway just give it a static if you can then it doesn't need to change. Also you can set your VM's to power on automatically so that would work. ESXi Hosts are designed to very rarely go down ;-)

Share this post


Link to post
Share on other sites

Sorry - a TMG server?

TMG is a threat management gateway, MS makes Forefront TMG, which use to be ISA Server

Share this post


Link to post
Share on other sites

As ChuckFinley stated, just give the ESXi box a static address. Once it's running, at the console, there is an option to assign the IP address. Then restart the networking. I believe it prompts to do that anyway.

Then your router distro will handle all the DHCP addressing for everyone else.

Share this post


Link to post
Share on other sites

I run my pfsense as VM on my esxi host.

Your esxi host vmk IP would be STATIC, why would you ever use on your esxi host in the first place?

post-14624-0-66847200-1366290450.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.