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

How make static all dhcp clients?

Scheduled Pinned Locked Moved DHCP and DNS
11 Posts 7 Posters 896 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.
  • R
    reza.mnp
    last edited by Jan 13, 2018, 6:50 AM

    Hi
    How i can make static all clients at dhcp lease(2k client).
    like script.

    1 Reply Last reply Reply Quote 0
    • J
      JKnott
      last edited by Jan 13, 2018, 12:11 PM

      I think you mean you want a device to always get the same IP address.  If so, you'd configure static mappings on the DHCP server page.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • R
        reza.mnp
        last edited by Jan 13, 2018, 2:00 PM

        Thank a lot.
        How manually static mapping 2k client?

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan
          last edited by Jan 13, 2018, 6:30 PM

          What do you mean by a "2k" client ?

          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
          • G
            Grimson Banned
            last edited by Jan 13, 2018, 7:44 PM

            @Gertjan:

            What do you mean by a "2k" client ?

            I guess he wants to add static leases for 2k (2000) clients, that will be quite some work.

            1 Reply Last reply Reply Quote 0
            • D
              Derelict LAYER 8 Netgate
              last edited by Jan 13, 2018, 10:28 PM

              pfSense might not be the right DHCP server for your use case.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Jan 13, 2018, 11:19 PM

                For starters your going to have 2,000 devices on the same network?  Or you have 2,000 some devices across a few networks and you want them all to have reservations for their IP?

                So you have a list of their mac and the IPs you want them to have in a csv file already?  With Derelict pfsense dhcp prob not the best idea if you have that many clients you want to manage with dhcp reservations..

                https://blogs.technet.microsoft.com/teamdhcp/2012/11/20/bulk-load-dhcp-reservations-using-dhcp-powershell/

                Simple how to do it with powershell and windows dhcp server..

                But if you really want to do feed it into pfsense - set a few of them up by hand in pfsense.. Then export the xml file dhcp and put in all your info via what your seeing in the

                
                <staticmap></staticmap>
                
                

                Sections for all your other 2,000 clients and then load that xml back in…

                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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • R
                  reza.mnp
                  last edited by Jan 14, 2018, 4:32 AM

                  I have 2000 client in several VLANs.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JKnott
                    last edited by Jan 14, 2018, 5:42 PM Jan 14, 2018, 12:02 PM

                    Regardless of there they are, you will have to configure each and every one for MAC address and IP address.  Since you have multiple networks, you'll have to do it for each network.  What happens if you move a device from one network to another?  If you want it to have a mapped address there, then you'll need another entry for that MAC, but I have no idea how the DHCP server will handle having the same MAC on different networks.

                    PfSense running on Qotom mini PC
                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                    UniFi AC-Lite access point

                    I haven't lost my mind. It's around here...somewhere...

                    1 Reply Last reply Reply Quote 0
                    • D
                      Derelict LAYER 8 Netgate
                      last edited by Jan 14, 2018, 5:05 PM

                      I would want something directory- or database-backed for something like that.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • C
                        curtisgrice
                        last edited by Feb 11, 2018, 2:45 PM

                        I'm with Derelict on this. While I would love to seem better/more options for managing DHCP in pfSense, if your managing 2000+ clients, you should be running redundant DHCP servers dedicated for the task.

                        You would need to setup your DHCP servers and configure the DHCP Relay/helper on your pfSense router/switch gear. On that note, I did just check and I see you cant configure the pfSense DHCP Relay agent when DHCP is enabled on ANY interface… Odd. So if you wanted to use pfSense DHCP anywhere, you would need to configure the DHCP relay/helper on the switches.

                        Slow code? Sounds like a good reason to buy more hardware!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          [[user:consent.lead]]
                          [[user:consent.not_received]]