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

    Two DHCP servers

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 1.3k 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.
    • B
      Balanga
      last edited by

      I'd like to install a second DHCP server for test purposes. Is there any way to tell pfSense to ignore dhcp requests from certain macs?

      If not how should I go about testing the second server?

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

        What is the point of the 2nd server?  Are you wanting to setup failover for dhcp or something?

        If your wanting to test a different dhcp server, best would be to put it on a different layer 2.

        You could check the "Only the clients defined below will get DHCP leases from this server."  But in that case you would need to have reservations setup for all your clients..

        But sure you can deny specific clients based on mac in the mac control section of the dhcp server

        macdeny.png
        macdeny.png_thumb

        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
        • B
          Balanga
          last edited by

          Thanks for your advice. I wouldn't have noticed MAC address control if you hadn't pointed it out.

          The reason for a second DHCP server is to set up and test a backup PXE server.

          1 Reply Last reply Reply Quote 0
          • P
            pwood999
            last edited by

            Why not simply use the pfsense DHCP to point relevant clients at the PXE server ?

            1 Reply Last reply Reply Quote 0
            • B
              Balanga
              last edited by

              Is there an option to direct clients a particular TFTP server based on MAC address?

              Or even to use a different bootfile depending on the client…

              I believe that DHCP options 66 and 67 can direct clients in various paths, but have never set these up, and I don't know if this can be done in pfSense.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                You can add specific DHCP options using the 'Additional BOOTP/DHCP Options' in the DHCP config page (Services/DHCP Server/LAN).

                To specify TFTP servers by MAC addresses you can create a static mapping for that MAC in DHCP and use the Advanced field in the TFTP heading.

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