Navigation

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

    Limit of DHCP Static Mappings

    DHCP and DNS
    4
    6
    596
    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
      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
        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
          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
            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
            • Gertjan
              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.

              1 Reply Last reply Reply Quote 0
              • C
                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

                Products

                • Platform Overview
                • TNSR
                • pfSense
                • Appliances

                Services

                • Training
                • Professional Services

                Support

                • Subscription Plans
                • Contact Support
                • Product Lifecycle
                • Documentation

                News

                • Media Coverage
                • Press
                • Events

                Resources

                • Blog
                • FAQ
                • Find a Partner
                • Resource Library
                • Security Information

                Company

                • About Us
                • Careers
                • Partners
                • Contact Us
                • Legal
                Our Mission

                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                Subscribe to our Newsletter

                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                © 2021 Rubicon Communications, LLC | Privacy Policy