Make sure that you have read Chapter 13, Planning for DHCP Service (Tasks) before you configure your DHCP server. In particular, you should use the guidelines in Making Decisions for Your DHCP Server Configuration (Task Map) to help you perform the following tasks:
Select the system that you want to use as a DHCP server.
Make decisions about your data store, lease policy, and router information.
Log in to the system on which you want to configure the DHCP server.
Become superuser or assume a role or user name that is assigned to the DHCP Management profile.
For more information about the DHCP Management profile, see Setting Up User Access to DHCP Commands.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Configure the DHCP server by typing a command of the following format:
#/usr/sbin/dhcpconfig -D -r datastore -p location
datastore is one of the following: SUNWfiles, SUNWbinfiles, or SUNWnisplus.
location is the data-store-dependent location where you want to store the DHCP data. For SUNWfiles and SUNWbinfiles, the location must be an absolute path name. For SUNWnisplus, the location must be a fully specified NIS+ directory.
For example, you might type a command similar to the following:
dhcpconfig -D -r SUNWbinfiles -p /var/dhcp
The dhcpconfig utility uses the host's system files and network files to determine values used to configure the DHCP server. See the dhcpconfig(1M) man page for information about additional options to the dhcpconfig command that enable you to override the default values.
Add one or more networks to the DHCP service.
See How to Add a DHCP Network (dhcpconfig) for the procedure to add a network.