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

    Assign different DHCP ranges depending on MAC address / vendor code?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 4 Posters 3.9k 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
      gthornock
      last edited by

      Is it possible in pfSense to assign DHCP addresses from different ranges depending on MAC address / vendor code?

      As an example of what I mean, if I were doing this in a recent ISC DHCP server, the relevant sections of dhcpd.conf would go something like this:

      class "polycom" {
        match if substring (binary-to-ascii (16, 8, ":", hardware), 2, 6) = "0:4:f2";
      }
      
      shared-network internal {
        subnet 10.67.0.0 netmask 255.255.240.0 {
      
          # Polycom Phones
          pool {
            range 10.67.12.50 10.67.12.200;
            allow members of "polycom";
          }
      
          # Everyone else
          pool {
            range 10.67.0.50 10.67.1.200;
            deny members of "polycom";
          }
      
        }
      }
      
      1 Reply Last reply Reply Quote 0
      • T
        torontob
        last edited by

        hmmm no answers? I am interested in this as well.

        1 Reply Last reply Reply Quote 0
        • dotdashD
          dotdash
          last edited by

          Sounds like a feature request for >2.0
          IIRC, the DHCP server is still ISC, so it might just be a matter of adding the option to the GUI.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            There is already a similar enhancement request in redmine for "future" - it should be possible, though generally if you have separate subnets they are on separate interfaces so doing exactly what you propose isn't necessary.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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