Solaris DHCP Administration Guide

How to Configure a DHCP Server (Interactive dhcpconfig)

  1. Select the system you want to use as a DHCP server.

    Use the guidelines in Making Decisions for Server Configuration.

  2. Make decisions about your data store, lease policy, and router information.

    Use the guidelines in Making Decisions for Server Configuration.

  3. Become superuser or a user assigned to the DHCP Management profile.

  4. Type the following command:


    #/usr/sbin/dhcpconfig
    

    The text-based DHCP Configuration menu is displayed as shown in Figure 3–5.

  5. Type 1 and press Return to select Configure DHCP Service.

  6. Answer the prompts as described in the following paragraphs.

    Use the decisions you made after you read Chapter 2, Planning for DHCP Service. Note that the default value for each prompt is displayed in square brackets. If you want to use a default value, press Return at the prompt.


    ###     DHCP Service Configuration      ###
    ###     Configure DHCP Database Type and Location      ###
     
    Enter data store (SUNWbinfiles, SUNWfiles or SUNWnisplus) [SUNWnisplus]:

    Type the name of the data store you have decided to use: SUNWbinfiles, SUNWfiles, or SUNWnisplus.

    See the guidelines in Choosing the Data Store if you need more information about the data store.


    Enter full path to data location [default-for-data-store]:

    Type the path to the directory or NIS+ domain that you want to use for the data store. The default location if you selected SUNWbinfiles or SUNWfiles for the data store is /var/dhcp. If you selected NIS+, the default listed is the NIS+ domain that the server is already using, such as yourcompany.com.


    Enter location for hosts data (none, files, dns, or nisplus) [none]:

    Type the name service that you want DHCP to use to register the host names of DHCP clients. See Client Host Name Registration for more information. If you select none, you must add host names manually to a name service.


    Enter default DHCP lease policy (in days) [3]:

    Type the number of days for the lease time. The default is three days. See Setting a Lease Policy for more information.


    Do you want to allow clients to renegotiate their leases? ([Y]/N):

    The default is Y to allow lease negotiation. See Setting a Lease Policy for more information about lease negotiation. If you type N, clients must give up their IP addresses when the lease expires, and then obtain a new lease and IP address.


    Would you like to specify nondefault daemon options (Y/[N]):

    You can successfully configure the server without specifying nondefault daemon options if you type N at this prompt.

    However, if you type Y here, the following prompts are displayed.


    Do you want to enable transaction logging? (Y/[N]):Y
    

    Type Y if you want to enable transaction logging. See Changing DHCP Logging Options for information about transaction logging. The following prompt appears only if you enable transaction logging.


    Which syslog local facility [0-7] do you wish to log to? [0]:

    See Changing DHCP Logging Options for information about the local facility for transaction logging.


    Would you like to specify nondefault server options (Y/[N]):Y
    

    You can successfully configure the server without specifying nondefault server options if you type N at this prompt.

    However, if you type Y here, the following prompts are displayed.


    How long (in seconds) should the DHCP server keep outstanding OFFERs? [10]:

    Type the number of seconds the server should cache an IP address offer to a client. The default is 10 seconds, which is adequate for most networks. You can increase this time to compensate for slow network performance.


    How often (in minutes) should the DHCP server rescan 
    the dhcptab? [Never]:

    By default, the DHCP server reads the dhcptab only at startup or if signalled by DHCP Manager to read it. DHCP Manager enables you to update the server by reloading the dhcptab after you make a change to the configuration data, so scheduled rescans are not necessary if you use DHCP Manager. Generally, you should use a rescan interval only under the following circumstances:

    • The data store is NIS+ and you have more than one DHCP server on your network. Scheduled rescans guarantee that all servers have the latest information.

    • You use dhtadm instead of DHCP Manager to make configuration changes. The dhtadm utility does not offer you the option of forcing a rescan of dhcptab after you make a change.

    If you decide to use the automatic rescan for dhcptab, type the interval in minutes that the server should wait before it reloads the client configuration information in the dhcptab file.


    Do you want to enable BOOTP compatibility mode? (Y/[N]):

    The default is to not enable BOOTP compatibility. See Supporting BOOTP Clients with DHCP Service if you want to enable BOOTP compatibility.

    After you finish entering information about nondefault daemon and server options, the following prompt is displayed:


    Enable DHCP/BOOTP support of networks you select? ([Y]/N):

    At this point, you can configure the networks that should use DHCP. Refer to the decisions you made after you read Making Decisions for IP Address Management. If you are not ready to configure IP addresses, type N to return to the initial menu. Note that DHCP is not usable until you enable DHCP/BOOTP support of at least one network.

    If you are ready to configure IP addresses, type Y and continue to Step 4.