Specifications
226 Chapter 14 Configuring and Managing Network Services
Adding a DHCP Subnet
To add other subnets to your DHCP configuration, use the serveradmin settings
command.
You might already have a subnet for each port you enabled when you installed and set
up the server. You can use the serveradmin settings command to check for subnets
the server set up for you (see “Viewing DHCP Service Settings” on page 222).
Note: Include the special first setting (ending with = create). This is how you tell
serveradmin to create the settings array with the specified subnet ID.
To add a subnet:
$ sudo serveradmin settings
dhcp:subnets:_array_id:
subnetID
= create
dhcp:subnets:_array_id:
subnetID
:WINS_NBDD_server =
nbdd-server
dhcp:subnets:_array_id:
subnetID
:WINS_node_type =
node-type
dhcp:subnets:_array_id:
subnetID
:net_range_start =
start-address
dhcp:subnets:_array_id:
subnetID
:WINS_scope_id =
scope-ID
dhcp:subnets:_array_id:
subnetID
:dhcp_router =
router
dhcp:subnets:_array_id:
subnetID
:net_address =
net-address
dhcp:subnets:_array_id:
subnetID
:net_range_end =
end-address
dhcp:subnets:_array_id:
subnetID
:lease_time_secs =
lease-time
dhcp:subnets:_array_id:
subnetID
:dhcp_ldap_url:_array_index:0 =
ldap-server
dhcp:subnets:_array_id:
subnetID
:WINS_secondary_server =
wins-server-2
dhcp:subnets:_array_id:
subnetID
:descriptive_name =
description
dhcp:subnets:_array_id:
subnetID
:WINS_primary_server =
wins-server-1
dhcp:subnets:_array_id:
subnetID
:dhcp_domain_name =
domain
dhcp:subnets:_array_id:
subnetID
:dhcp_enabled = (yes|no)
dhcp:subnets:_array_id:
subnetID
:dhcp_domain_name_server:_array_index:0 =
dns-server-1
dhcp:subnets:_array_id:
subnetID
:dhcp_domain_name_server:_array_index:1 =
dns-server-2
dhcp:subnets:_array_id:
subnetID
:net_mask =
mask
dhcp:subnets:_array_id:
subnetID
:selected_port_name =
port
Control-D
Parameter Description
subnetID
A unique number that identifies the subnet. Can be any number
not assigned to another subnet on the server. Can include
embedded hyphens (
-).
dns-server-n
To specify additional DNS servers, add dhcp_name_server
settings, incrementing
_array_index:
n
for each additional
value.
Other parameters The standard subnet settings described in “DHCP Subnet Settings
Array” on page 224.