DHCP Server and fixed IP's by MAC Address

I want to setup an Windows 2000  or 2003 DHCP server. But its essential that the clients get fixed IP's by their MAC Address. I tried to edit the dhcp.mdb to add reserved ip's, but I couldn't find any tool to edit this file. I tried dhcmp.exe from the Resource Kit and the DHCP Objects DLL. I don't want to add every IP and MAC Adress by Hand over the Add Reservedip Tab in Windows, because there are up to 2000 MAC adresses which need an IP :))  
Who is Participating?
Rob StoneConnect With a Mentor Commented:
Check out this:

Go to Networking > DHCP > How TO > DHCP Command Line Utilities

Then click on the optimize the command prompt link and then at the bottom is Netshell for DHCP.

Search for add reserv and it will bring up a tool that may help.

DHCP scope commands
The following commands are available to be run from the dhcp server scope>/?, which is rooted at the DHCP server context within the Netshell command environment.

Command Description

Reserves an IP address for use by a specified MAC address in the current scope. For more information, type add reservedip /?
You would have to type in the MAC in one approach or another.  Have you try Access?  .MDB is access data type.

kritopAuthor Commented:
I tried Access, it couldn't be opened, because the DB Engine of the dhcp.mdb is only similar, but not the same like Access!
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

kritopAuthor Commented:
When I could edit the dhcp.mdb I could import the adresses because I got them in a file.
You should be able to use dhcpcmd.exe to script your reservations; it's from NT4, so there's no warranty it'll be running properly on a W2k DHCP server. I used it successfully on a W2k server, though.

How to Use the Dhcpcmd.exe Tool Included with Support Tools
kritopAuthor Commented:
thx Stoner79 this should work with a litte script :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.