sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next
Chapter 14

Configuring the DHCP Service (Tasks)

When you configure the DHCP service on your network, you configure and start the first DHCP server. Other DHCP servers can be added later and can access the same data from a shared location if the data store supports shared data. This chapter describes tasks that enable you to configure the DHCP server and place networks and their associated IP addresses under DHCP management. This chapter also explains how to unconfigure a DHCP server.

Each task includes a procedure to help you perform the task in DHCP Manager and a procedure for the equivalent task with the dhcpconfig utility. This chapter contains the following information:

If you experience problems configuring the DHCP service, see Chapter 17, Troubleshooting DHCP (Reference).

After you configure the DHCP service, see Chapter 15, Administering DHCP (Tasks) for information about managing the DHCP service.

Configuring and Unconfiguring a DHCP Server Using DHCP Manager

This section includes procedures to help you configure and unconfigure a DHCP server with DHCP Manager. Note that you must be running an X Window system such as CDE or GNOME to use DHCP Manager.

DHCP Manager can be run as superuser with the /usr/sadm/admin/bin/dhcpmgr command. See About DHCP Manager for general information about the utility. See How to Start and Stop the DHCP Service (DHCP Manager) for more detailed information about running DHCP Manager.

When you run DHCP Manager on a server that is not configured for DHCP, the following screen is displayed. You can specify whether you want to configure a DHCP server or a BOOTP relay agent.

Figure 14-1 Choose Server Configuration Dialog Box in DHCP Manager

Dialog box shows options Configure as DHCP server and Configure
as BOOTP relay. Shows OK, Cancel, and Help buttons.

Configuring DHCP Servers

When you configure a DHCP server, DHCP Manager starts the DHCP Configuration Wizard, which prompts you for information that is needed to configure the server. The initial screen of the wizard is shown in the following figure.

Figure 14-2 DHCP Configuration Wizard's Initial Screen

Dialog box shows storage choices, back and forward arrows, and
Cancel and Help buttons.

When you finish answering the wizard prompts, DHCP Manager creates the items that are listed in the following table.

Table 14-1 Items Created During DHCP Server Configuration

Item

Description

Contents

Service configuration file, /etc/inet/dhcpsvc.conf

Records keywords and values for server configuration options.

Data store type and location, and options that are used with in.dhcpd to start the DHCP daemon when the system boots. Do not edit this file manually. You must use dhcpmgr or dhcpconfig to modify DHCP configuration information.

dhcptab table

DHCP Manager creates a dhcptab table if the table does not already exist.

Macros and options with assigned values.

Locale macro (optional), which is named Locale

Contains the local time zone's offset in seconds from Universal time (UTC).

UTCoffst option with assigned number of seconds.

Server macro, which is named to match the server's node name

Contains options whose values are determined by input from the administrator who configured the DHCP server. Options apply to all clients that use addresses owned by the server.

The Locale macro, plus the following options:

  • Timeserv, set to point to the server's primary IP address.

  • LeaseTim, set to the number of seconds for the leases.

  • LeaseNeg, if you selected negotiable leases.

  • DNSdmain and DNSserv, if DNS is configured.

  • Hostname, which must not be assigned a value. The presence of this option indicates that the host name must be obtained from the name service.

Network address macro, whose name is the same as the network address of client's network

Contains options whose values are determined by input from the administrator who configured the DHCP server. Options apply to all clients that reside on the network specified by the macro name.

The following options:

  • Subnet, set to the subnet mask for the local subnet

  • Router, set to the IP address of a router, or RDiscvyF, to cause the client to use router discovery

  • Broadcst, set to the broadcast IP address. This option is present only if the network is not a Point-to-Point network.

  • MTU

    , for the maximum transmission unit

  • NISdmain and NISservs, if NIS is configured

  • NIS+dom and NIS+serv, if NIS+ is configured

Network table for the network

An empty table is created until you create IP addresses for the network.

No content until you add IP addresses.

ProcedureHow to Configure a DHCP Server (DHCP Manager)

Before You Begin

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.

  1. Become superuser on the server system.

  2. Start DHCP Manager.

    #/usr/sadm/admin/bin/dhcpmgr &

  3. Choose the option Configure as DHCP Server.

    The DHCP Configuration Wizard starts, to help you configure your server.

  4. Select options, or type requested information, based on the decisions you made in the planning phase.

    If you have difficulty, click Help in the wizard window to open your web browser and display help for the DHCP Configuration Wizard.

  5. Click Finish to complete the server configuration when you have finished specifying the requested information.

  6. At the Start Address Wizard prompt, click Yes to configure IP addresses for the server.

    The Add Addresses to Network wizard enables you to specify which addresses to place under the control of DHCP.

  7. Answer the prompts according to decisions you made in the planning phase.

    See Making Decisions for IP Address Management (Task Map) for more information. If you have difficulty, click Help in the wizard window to open your web browser and display help for the Add Addresses to Network wizard.

  8. Review your selections, and then click Finish to add the IP addresses to the network table.

    The network table is updated with records for each address in the range you specified.

See Also

You can add more networks to the DHCP server with the Network Wizard, as explained in Adding DHCP Networks.

Configuring BOOTP Relay Agents

When you configure a BOOTP relay agent, DHCP Manager takes the following actions:

  • Prompts you for the IP address for one or more DHCP servers to which requests should be relayed

  • Stores settings needed for BOOTP relay service

The following figure shows the screen displayed when you choose to configure a BOOTP relay agent.

Figure 14-3 Configure BOOTP Relay Dialog Box in DHCP Manager

Dialog box shows input field labeled DHCP Servers, with an Add
button. Shows an empty list, with up and down arrows and Delete button.

ProcedureHow to Configure a BOOTP Relay Agent (DHCP Manager)

Before You Begin

Make sure that you have read Chapter 13, Planning for DHCP Service (Tasks) before you configure your BOOTP relay agent. In particular, you should see Selecting a Host to Run the DHCP Service for help in selecting the system to use.

  1. Become superuser on the server system.

  2. Start the DHCP Manager.

    #/usr/sadm/admin/bin/dhcpmgr &

    If the system has not been configured as a DHCP server or BOOTP relay agent, the DHCP Configuration Wizard starts. If the system has already been configured as a DHCP server, you must first unconfigure the server. See Unconfiguring DHCP Servers and BOOTP Relay Agents.

  3. Select Configure as BOOTP Relay.

    The Configure BOOTP Relay dialog box opens.

  4. Type the IP address or host name of one or more DHCP servers, and click Add.

    The specified DHCP servers must be configured to handle BOOTP or DHCP requests received by this BOOTP relay agent.

  5. Click OK to exit the dialog box.

    Notice that DHCP Manager offers only the File menu to exit the application and the Service menu to manage the server. The disabled menu options are useful only on a DHCP server.

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.