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

    DHCP Server on pfSense for L3 Switch doing InterVLAN Routing

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 461 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.
    • S
      sebwelch
      last edited by

      Hi,
      This may have been asked and answered elsewhere. If so, my apologies and could you post a link. Thanks in advance.

      Basically in my homelab network design/plan I have a pfSense setup with a Layer 3 switch.
      After a bit of reading, I decided to use the Layer 3 switch to do the InterVLAN routing for a performance increase.
      My question is, can pfSense be a DHCP Server for 4/5 VLANs from the L3 switch, while only having a single LAN NIC to the switch?

      pfSense has an IP of 192.168.10.1
      L3 switch is 192.168.10.2
      VLAN20 Network Address 192.168.20.0
      VLAN30 Network Address 192.168.30.0
      And so on etc...

      I hope this makes sense.

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        You'd have to set up a DHCP relay on the switch. The DHCP solicit packets are broadcasts and not passed by routers.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

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

          So pfSense can have DHCP Scopes even though it doesn't have a physical interface with that range?

          JKnottJ 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @sebwelch
            last edited by

            @sebwelch said in DHCP Server on pfSense for L3 Switch doing InterVLAN Routing:

            So pfSense can have DHCP Scopes even though it doesn't have a physical interface with that range?

            If the routing is done elsewhere, you need a relay agent. If the routing is done with pfSense, then it can directly access the networks and provide DHCP directly.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

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