DHCP Server Question
Greetings:
I have the following challenge ahead of me. I need to get a FreeBSD machine to handle the dhcp requests on my network. I'm currently using windows server t do this, but I would like to move from windows. Many will say, well, and what is the problem, is fairly easy to configure dhcpd. Just follow the handbook. Yes, I already searched the handbook and yes it gave me some answers, but the problem arises here: What I would like to do is create a pool of addresses and assign them against my hosts MAC addresses. In other words, create a table of MAC addresses, and when any client request the dhcpd, it will check the MAC address; if the client mac address exist in the table, the dhcpd assign an IP address and all related information, and if it does not exist, well, obvious, the client won't get IP. There is nothing about it in the handbook, right now I'm reading the dhcpd man pages looking for some answers, but I also decided to post here for any guidance, link to documentation or any kind of tips that could be of use. I thank you all in advance, have a nice day. |
How many clients are we talking about here? And do you want static ips for each computer (this is probably the easiest way)?
|
Okay, I have been playing with this a little and decided to make a little script which could turn a little table into a complete dhcpd.conf file for use.
First the script: Code:
#!/bin/sh Code:
ff:07:6b:32:d2:55,10.0.0.23,fnord Code:
deny unknown-clients; Any other changes you would make or differences you want can be done by just editing the script for your needs. |
All times are GMT -5. The time now is 11:18 AM. |