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

    Bulk upload of Mac addresses for DHCP?

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 2.1k 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
      stramato
      last edited by

      We have a list of people's computer (laptops, phones, etc.) MAC addresses. They get "registered" and stickered first before they are able to use it inside the premises.

      I want to upload it to pfSense's DHCP Service, so Unknown MACs will be refused to get IP's. Perhaps I can also link it to Active Directory sometime.

      I can do that 1 by 1 in WebGUI, but there are about 300+ MACs to encode.

      Is there a file somewhere where I can edit directly?

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

        Add an example address or two, then download a config backup from Diagnostics > Backup/Restore.

        Edit that config.xml file and you'll see where they go and what format they need to be in, and then you can script something (perl, php, some other macro language) to put in your list in the proper format.

        When you're done, restore the backup and it should have all the entries.

        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.