3 Replies Latest reply: Apr 25, 2012 9:33 AM by Camelot
mischaadj Level 1 Level 1 (0 points)

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 (46,315 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.

  • mischaadj Level 1 Level 1 (0 points)

    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?

  • Camelot Level 8 Level 8 (46,315 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.