Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    pfSense in ESXi Design

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 6 Posters 872 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      giyahban
      last edited by giyahban

      Hello hope all is well
      Recently I colo a server in a dc installed esxi as hypervisor on it.
      It has a 4 port nic, one of them is connected to dc network with a /28 public IP range
      I want to create multiple vms and different subnet on my server
      Im gonna give the physical port to the pfsense as WAN but Im facing a design choice here :

      1. Create one vswitch on esxi with vlan 4095 as trunk and every other interface as vlan in pfsense and vlan-portgroup in esxi
      2. Create vswitch for every subnet in esxi and attach them to pfsense

      Which one is better from design standpoint ? Which one give better performance ?

      Thanks for your kind replies
      Regards

      P 1 Reply Last reply Reply Quote 0
      • P
        pokrifchakd @giyahban
        last edited by pokrifchakd

        @giyahban It really depends on how many VLANs you're planning on using. For the VM version of pfSense, you can install a maximum of 10 NICS, however you can subdivide those with VLANs. On the ESXi side, there's really no limitation on the number of VLANs your able to create.

        Personally, I start with 10 NICs on the VM, with each mapped to a port group in ESXi. If I need more, I'll add the VLAN to one of the VM's NICs, then change the port group configuration to a trunk in ESXi.

        G stephenw10S 2 Replies Last reply Reply Quote 1
        • G
          giyahban @pokrifchakd
          last edited by

          @pokrifchakd
          Wow I didnt know there is a limit for maximum NICs
          Is there any performance gain with more NICs instead of VLAN ?
          Because it is way more easier with VLAN
          and I read some posts about ESXi becomes crazy with more than 5NICs per VM

          P 2 Replies Last reply Reply Quote 0
          • P
            pokrifchakd @giyahban
            last edited by

            @giyahban Not that I'm aware of, or that I've experienced. I use a VM as the gateway from my production environment to my lab environment. With the lab environment, it isn't uncommon for me to have all 10 NICs assigned to various ESXi port groups. If I'm testing something larger, I've had to add additional VLANs on the NICs, but didn't experience any problems with routing performance.

            I've got a 10G backbone, and all the VMs connect at 10G, so if there was a hit in performance, I really couldn't tell.

            1 Reply Last reply Reply Quote 1
            • P
              pokrifchakd @giyahban
              last edited by

              @giyahban said in pfSense in ESXi Design:

              Is there any performance gain with more NICs instead of VLAN ?

              Just ease of configuration, especially if I'm integrating physical hardware into the lab environment. It's a 1:1 mapping from the port group to the NIC.

              1 Reply Last reply Reply Quote 1
              • stephenw10S
                stephenw10 Netgate Administrator @pokrifchakd
                last edited by

                @pokrifchakd said in pfSense in ESXi Design:

                For the VM version of pfSense, you can install a maximum of 10 NICS

                What limit is that? Something in ESXi? There's no such limit in pfSense itself.

                Steve

                P 1 Reply Last reply Reply Quote 0
                • P
                  pokrifchakd @stephenw10
                  last edited by

                  @stephenw10 It's a limitation in the ESXi VM. This provides a good breakdown of the various maximums for VMs and Hosts: https://www.virten.net/vmware/vmware-vsphere-esx-and-vcenter-configuration-maximums/

                  1 Reply Last reply Reply Quote 2
                  • U
                    unsichtbarre
                    last edited by

                    I go with 4095 and VLAN - primary reason is that you can add interfaces without shutting down pfSense, moreover the ESXi limit of 10 NICs.

                    -JB

                    1 Reply Last reply Reply Quote 1
                    • Cool_CoronaC
                      Cool_Corona
                      last edited by

                      You need to NICS....

                      One for WAN and one for LAN.

                      Add the VLAN's on the LAN parent interface.

                      That the way (best practice).

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sandy2314
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.