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

Previous Previous     Contents     Index     Next Next

Starting and Stopping DHCP Manager

You must run DHCP Manager on a DHCP server system as superuser. If you must run DHCP Manager remotely, you can send the display to your system by using the X Window remote display feature.

ProcedureHow to Start and Stop DHCP Manager

  1. Become superuser on the DHCP server system.

  2. (Optional) If you are logged in to the DHCP server system remotely, display DHCP Manager on your local system as follows.

    1. Type the following on the local system:

      # xhost +server-name

    2. Type the following on the remote DHCP server system:

      # DISPLAY=local-hostname;export DISPLAY

  3. Start DHCP Manager.

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

    The DHCP Manager window opens. If the server is configured as a DHCP server, the window displays the Addresses tab. If the server is configured as a BOOTP relay agent, the window displays with no tabs.

  4. To stop DHCP Manager, choose Exit from the File menu.

    The DHCP Manager window closes.

Setting Up User Access to DHCP Commands

By default, only root or superuser can execute dhcpconfig, dhtadm, and pntadm commands. If you want non root users to use the commands, you can set up role-based access control (RBAC) for those commands.

Roles contain authorizations and privileged commands. For more information about roles, see "Configuring RBAC (Task Map)" in System Administration Guide: Security Services.

You might also find the following man pages helpful: rbac(5), exec_attr(4), and user_attr(4).

The following procedure explains how to assign the DHCP Management profile, which enables the user to execute the DHCP commands.

ProcedureHow to Grant Users Access to DHCP Commands

  1. Become superuser on the DHCP server system.

  2. Edit the file /etc/user_attr to add an entry of the following form. Add one entry for each user or role that should manage the DHCP service.

    username::::type=normal;profiles=DHCP Management

    For example, for user ram, you would add the following entry:

    ram::::type=normal;profiles=DHCP Management

Starting and Stopping the DHCP Service

This section describes starting and stopping the DHCP service by using DHCP Manager and the dhcpconfig command. The DHCP service can also be started and stopped by using the Service Management Facility (SMF) commands. See DHCP Service and the Service Management Facility for more information about using SMF commands with the DHCP service.

Starting and stopping the DHCP service encompasses several degrees of action you can take to affect the operation of the DHCP daemon. You must understand what each action means in order to select the correct procedure to obtain the result that you want. The terms for the actions are as follows:

  • Start, stop, and restart commands affect the daemon only for the current session. For example, if you stop the DHCP service, the daemon terminates but restarts when you reboot the system. DHCP data tables are not affected when you stop the service. You can use DHCP Manager or SMF commands to temporarily start and stop the DHCP service without enabling and disabling the service.

  • Enable and disable commands affect the daemon for current and future sessions. If you disable the DHCP service, the currently running daemon terminates and does not start when you reboot the server. You must enable the DHCP daemon for automatic startup at system boot to occur. DHCP data tables are not affected. You can use DHCP Manager, the dhcpconfig command, or SMF commands to enable and disable the DHCP service.

  • The unconfigure command shuts down the daemon, prevents the daemon from starting on system reboot, and enables you to remove the DHCP data tables. You can use DHCP Manager or the dhcpconfig command to unconfigure the DHCP service. Unconfiguration is described in Chapter 14, Configuring the DHCP Service (Tasks).


Note - If a server has multiple network interfaces but you do not want to provide DHCP services on all the networks, see Specifying Network Interfaces for DHCP Monitoring.


The following procedures help you start, stop, enable, and disable the DHCP service.

ProcedureHow to Start and Stop the DHCP Service (DHCP Manager)

  1. Become superuser on the DHCP server system.

  2. Start DHCP Manager.

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

  3. Select one of the following:

    • Choose Start from the Service menu to start the DHCP service.

    • Choose Stop from the Service menu to stop the DHCP service.

      The DHCP daemon stops until it is restarted, or the system reboots.

    • Choose Restart from the Service menu to stop and immediately restart the DHCP service.

ProcedureHow to Enable and Disable the DHCP Service (DHCP Manager)

  • In DHCP Manager, choose one of the following:

    • Choose Enable from the Service menu to configure the DHCP daemon for automatic startup when the system boots.

      The DHCP service starts immediately when it is enabled.

    • Choose Disable from the Service menu to prevent the DHCP daemon from automatically starting when the system boots.

      The DHCP service immediately stops when it is disabled.

ProcedureHow to Enable and Disable the DHCP Service (dhcpconfig -S)

  1. Log in to the DHCP server system.

  2. 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.

  3. Choose one of the following:

    • To enable the DHCP service, type the following command:

      # /usr/sbin/dhcpconfig -S -e

    • To disable the DHCP service, type the following command:

      # /usr/sbin/dhcpconfig -S -d

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