How make static all dhcp clients?
-
Hi
How i can make static all clients at dhcp lease(2k client).
like script. -
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.
-
Thank a lot.
How manually static mapping 2k client? -
What do you mean by a "2k" client ?
-
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.
-
pfSense might not be the right DHCP server for your use case.
-
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…
-
I have 2000 client in several VLANs.
-
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.
-
I would want something directory- or database-backed for something like that.
-
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.