Apple Mac OS X Server Network Card User Manual


 
Chapter 14 Working with Network Services 223
Adding a DHCP Static Map
A static DHCP map allows you to map a specific IP address to a computer based on the
Ethernet (MAC) address. You can use the serveradmin tool to add a static map to the
DHCP configuration.
To add a static map:
$ sudo serveradmin settings
dhcp:static_maps:_array_id:
host name
:
mapID
:
static map parameter
About Static Map IDs
In an actual list of settings, <mapID> is replaced with a unique ID code for the map
entry. The IDs generated by the server are just random numbers. The only requirement
for this ID is that it be unique among the static maps defined on the server. The
mapID
parameter is used by the administrative software; it is ignored by the bootpd process
that actually provides the DHCP service.
Note: Be sure to include the special first setting (ending with = create). This is how
you tell serveradmin to create the necessary settings array with the specified map ID.
Also note that the static map for a host is identified with the host name, followed by a
slash, followed by a unique ID.
You can use the serveradmin settings command to add maps to your DHCP
configuration.
Parameter Description
subnetID
A unique number that identifies the subnet. Can be any number
not already assigned to another subnet defined on the server. Can
include embedded hyphens (
-).
dns-server-n
To specify additional DNS servers, add additional
dhcp_name_server settings, incrementing _array_index:
n
for
each additional value.
Other parameters The standard subnet settings described under “DHCP Subnet
Settings Array” on page 220.
Static Map Parameter Description
ip_address
IP address of host
name
Host’s DNS name
en_address
Host’s Ethernet address