Skip navigation

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

1533 Views 3 Replies Latest reply: Apr 25, 2012 9:33 AM by Camelot RSS
mischaadj Calculating status...
Currently Being Moderated
Apr 19, 2012 9:22 AM

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)
  • Camelot Level 8 Level 8 (45,680 points)

    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.

  • Camelot Level 8 Level 8 (45,680 points)

    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.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.