Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where can I find the file where the static mapping allocations of the DHCP server are stored?

In our company we are using DHCP to assign static ip addresses to our clients.

Now we are forced to change the ip address range. To prevent changing each allocation

of mac-address to ip-address manually with the admin tool i would like to change the allocation

in the file where the allocations are saved. The reason ist that i just have to use copy & paste for all

the allocations.

So how is the file named and where can I find the file where

the static mapping allocations of the DHCP server are stored? Is it just an ASCII file?

Must i note anything when i change the file manually?

Mac mini, Mac OS X (10.5.8)

Posted on Apr 19, 2012 9:22 AM

Reply
Question marked as Best reply

Posted on Apr 20, 2012 1:12 PM

From man bootpd:


BOOTP/DHCP STATIC BINDINGS

Static IP address to ethernet address bindings are stored in the /etc/bootptab file and in Open Directory. Bindings specified in the /etc/bootptab file take precedence over those in Open Directory.


See bootptab(5) for more information about the /etc/bootptab file.


For Open Directory, bootpd looks at the /Computers records for the following properties:


/etc/bootptab is a standard text file, while the records in Open Directory can be manipulated either through the command line, or via Workgroup Manager.

3 replies
Question marked as Best reply

Apr 20, 2012 1:12 PM in response to mischaadj

From man bootpd:


BOOTP/DHCP STATIC BINDINGS

Static IP address to ethernet address bindings are stored in the /etc/bootptab file and in Open Directory. Bindings specified in the /etc/bootptab file take precedence over those in Open Directory.


See bootptab(5) for more information about the /etc/bootptab file.


For Open Directory, bootpd looks at the /Computers records for the following properties:


/etc/bootptab is a standard text file, while the records in Open Directory can be manipulated either through the command line, or via Workgroup Manager.

Apr 25, 2012 6:41 AM in response to Camelot

Ok, thanks for the quick answer. I've looked into the bootpd file and the ip address to

ethernet address bindings are stored in Open Directory.

Since i am a beginner with Mac OS X Servers i've to ask how i can manipulate the records in Open Directory

via command line? I have looked in a few manuals but I was only able to find out how to add a static map via command line.

So how can I gain access to the relevant file?

Apr 25, 2012 9:33 AM in response to mischaadj

So how can I gain access to the relevant file?


To which file? The Open Directory data file?

Use Workgroup Manager, or the dscl command line utility.


Open Directory stores its data in a database format, not plain text. Therefore there's no way to just edit a file to make the changes you want.


If you want to make the changes in /etc/bootptab file you can do, though. That's just a plain text file - you'll just need to make sure you follow the appropriate format.

Where can I find the file where the static mapping allocations of the DHCP server are stored?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.