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

    Limit of DHCP Static Mappings

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 4 Posters 1.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.
    • T Offline
      thuc960
      last edited by

      Because my company need to use dhcp static mappings for 500-600 device. can I use dhcp static mappings for my quantity ?

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        Yes. There aren't any limits there, I've tested up to around 100,000 entries and it works.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thuc960
          last edited by

          @cmb:

          Yes. There aren't any limits there, I've tested up to around 100,000 entries and it works.

          Thanks very much.

          1 Reply Last reply Reply Quote 0
          • D Offline
            danic
            last edited by

            Woha! How do you go about adding 500+ entries, or heck 100k entries? Is there mass import button I don't see?

            1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan
              last edited by

              @danic:

              Woha! How do you go about adding 500+ entries, or heck 100k entries? Is there mass import button I don't see?

              Noop.
              But this is yet another reason to learn some basic scripting tool : PHP, bash, perl, or even a Basic variant if you missed the 1980-boat.
              Learn one ….
              Or retype these 100 000 ;)

              I guess cmb imported these leases into the config.xml file, the one he 'fed' to pfSense afterwards.
              he probably wrote a small script that did the converting.
              The format of this file, and thus the details about a DHCP-static-lease in it, is rather simple.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • C Offline
                cmb
                last edited by

                @Gertjan:

                I guess cmb imported these leases into the config.xml file, the one he 'fed' to pfSense afterwards.
                he probably wrote a small script that did the converting.
                The format of this file, and thus the details about a DHCP-static-lease in it, is rather simple.

                Yep, exactly. A small bit of PHP using our random MAC generation function and incrementing a base IP with ip2long + 1. It was just a scalability test, which doesn't have to match anything real, just have a big populated config.

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