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

    Help with DHCP / vLan's from AD

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    9 Posts 2 Posters 973 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
      GrimmSh0t
      last edited by GrimmSh0t

      Issue: Unable to get DHCP IP/Configuration from DC (DHCP)
      Overarching Goal - Utilize the DC / DHCP
      **NOTE: ** - PFSense is on physical hardware

      What does work:

      • If I use the PFSense DHCP I get an IP and everything works

      • If I set a static IP everything works

      What does not work:

      • Turning off PFSense DHCP and enabling DHCP Relay
        (Don't get an IP from the DC/DHCP)

      What is configured:

      • DHCP vLan IP ranges on DC (same as the PFSense's)

      Hopefully someone can help!

      53872dd8-5a98-4cfe-99c4-3345acbeecce-image.png

      bingo600B 1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600 @GrimmSh0t
        last edited by

        @grimmsh0t

        Enabling DHCP forwarder & Select interfaces where it should be active

        I have this setup , and it works excellent.
        I'm still on 2.4.5-p1 though.

        55a898ec-c127-4d44-8a0c-f434a15ae472-image.png

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        G 1 Reply Last reply Reply Quote 1
        • G
          GrimmSh0t @bingo600
          last edited by

          @bingo600
          I actually figured it out...FINALLY

          For anyone else it wasn't Pfsense, it was the TL-SG2218 being miss configured.

          I had to configure the:

          • L3 Features:

            • Routing Config -> Enable IPv4 Routing -> add the interface Config

          b323138d-e8f4-4a33-b485-5c15c82443ea-image.png

          bingo600B 1 Reply Last reply Reply Quote 0
          • bingo600B
            bingo600 @GrimmSh0t
            last edited by bingo600

            @grimmsh0t
            That does NOT sound right.
            The pfSense DHCP forwarder should work excellent on a "pure" L2 lan , provided the pfSense is setup to allow DHCP (UDP 67 & 68) inbound to the pfSense Lan/Vlan interfaces. I have no idea what to enable for IPv6.

            If you have enabled L3 routing on the switch , you have just "bypassed" the pfSense security for those Vlans you have enabled L3 routing on.
            As they can now "speak to each other" without passing pfSense.

            Did you remember in the DHCP forwarder to enable all interfaces that should forward DHCP requests.

            /Bingo

            If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

            pfSense+ 23.05.1 (ZFS)

            QOTOM-Q355G4 Quad Lan.
            CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
            LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

            G 1 Reply Last reply Reply Quote 1
            • G
              GrimmSh0t @bingo600
              last edited by

              @bingo600
              Yes I configured the DHCP Relay:
              NOTE: You mentioned in your replied "DHCP Forwarder" - Is this the same as DHCP Relay?

              58b82c31-5378-429b-be84-b4020825bda1-image.png

              Worth mentioning: Pfsense is on a physical (desktop) device so as an example I am missing (Interface / Switches). Not sure if that's an option I should have!

              afe596d7-0d33-4e6b-b340-24f014958887-image.png

              bingo600B 1 Reply Last reply Reply Quote 0
              • bingo600B
                bingo600 @GrimmSh0t
                last edited by bingo600

                @grimmsh0t
                My bad - I meant DHCP Relay

                Do you see any blocking in pfSense logs ?

                I had to allow UDP 67 & 68 (DHCP) to the pfSense Vlan interface ip , in order for pfSense NOT to block the DHCP requests from clients to the pfSense IF.

                You don't need to enable the Relay on VLAN60 , as that is the Vlan you have your DHCP server on.
                That would just cause requests on that Vlan to be doubled , as the Relay would also send a request.

                Try to enable the Circuit ID / AgentID tick box.
                See: https://docs.netgate.com/pfsense/en/latest/services/dhcp/relay.html

                I'm using ISC-DHCP server on Linux , but would expect a M$ DC to work much the same way.

                /Bingo

                If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                pfSense+ 23.05.1 (ZFS)

                QOTOM-Q355G4 Quad Lan.
                CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                G 1 Reply Last reply Reply Quote 1
                • G
                  GrimmSh0t @bingo600
                  last edited by

                  @bingo600
                  For the rules I have any/any for initial setup and will lock it down once I know its running:

                  VLAN30 and VLAN60 are the same
                  205b72fc-b1fc-4b36-b5c3-1074425de1b5-image.png

                  38d438cc-3c6d-468b-9b42-16d067f16a3e-image.png

                  I'll try this next:

                  • Enable the circuit Id Agent

                  • Add UDP 67 & 68 on the vLan (main lan)

                  • Remove the L3 interfaces from the managed switch.

                  Will let you know and thanks for the responses.

                  1 Reply Last reply Reply Quote 0
                  • G
                    GrimmSh0t
                    last edited by

                    @bingo600

                    SUCCESS!

                    • Not sure if it was the Append Circuit ID /AgentID tick box

                    • Allow UDP 67 & 68 (DHCP) to the pfSense Vlan interface ip

                    • Modified relay only on LAN and vLan30

                    Thanks for all your help!

                    bingo600B 1 Reply Last reply Reply Quote 1
                    • bingo600B
                      bingo600 @GrimmSh0t
                      last edited by bingo600

                      @grimmsh0t

                      Nice to hear it works.

                      Unless you only tested DHCP on Lan interface

                      It has to be the AgentID tickbox that worked.
                      As you already had : allow ip any any on Vlan30

                      /Bingo

                      Ps: Did you notice the šŸ‘ "Thank you" button in the bottom of each post

                      If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                      pfSense+ 23.05.1 (ZFS)

                      QOTOM-Q355G4 Quad Lan.
                      CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                      LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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