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

    Configuring multiple instances of DHCP and vlan subinterfaces

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 5 Posters 2.0k 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.
    • J
      jerekyox
      last edited by

      Hi all,

      I am relatively new to PfSense, but I have managed to set up a PfSense server. I would like to know if it is possible to configure DHCP to issue different subnets to different vlans in a LAN set up. How would one go about that? I haven’t seen anything in the documentation but maybe I haven’t looked hard enough?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Uhm… you configure DHCP server per interface. VLAN is no different here from any other physical interface.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          once you create your interface for your vlan, you will see dhcp that you can enable on that interface.. Just like you see dhcp on your default lan interface.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • J
            jerekyox
            last edited by

            Ok. Is it possible to create virtual interfaces on, say, the LAN interface and tag them with various vlans? Then have different dhcp instances for those?

            1 Reply Last reply Reply Quote 0
            • J
              jerekyox
              last edited by

              I think I have figured it out. Should be on under Interfaces>assign>VLANs. Thanks.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                Yes once you create a vlan, and assign it to a physical interface you will then have dhcp server for those vlans that you setup for whatever IP ranges you put on those vlans

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • N
                  ndutyme
                  last edited by

                  Hey jerekyox,

                  Did this work for you?

                  I am curious because I am trying to do something similar, but I'm afraid it's not supported on pfSense.
                  Let me know if it is similar to what I describe below.

                  Here is what I'm trying to do:
                  I have multiple subnets between routed gateways that I want pfSense to answer DHCP requests for.
                  This is done now by a Linux server, with one NIC, no vLANs,  running isc dhcpd6. I'd like to get rid of this Linux box.
                  All the network routers/gateways are configured with a DHCP-helper. This causes the gateways to send all DHCP requests to the single DHCP server. Then the DHCP server replies with an IP for the subnet pool that matches the gateway that made the request.

                  Thanks for any info (from anybody).

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    Multiple scopes on one interface is currently not supported on pfSense.

                    Pretty sure it's supported just fine on the DHCP server, there's just no GUI to config it. I think there was a bounty for this a while back that got some of the work done. Check the bounties forum.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      what your doing is not anywhere close to what the OP is doing.. Pfsense does not running dhcp scopes for networks it does not have an interface in..  While the dhcp server is running might support it - its not part of the dhcp build as derelict mentions - just run a different dchp server if you want a central dhcp server..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

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