System Administration Guide: IP Services
Previous Next

Enabling and Disabling a Solaris DHCP Client

To enable the DHCP client on a system that is already running the Solaris OS and is not using DHCP, you must first unconfigure the system. When the system boots, you must issue some commands to set up the system and enable the DHCP client.

If your DHCP client is not a Solaris DHCP client, consult the client documentation for instructions.


Note - Routers, NIS or NIS+ servers, DNS servers, and other hosts that are critical to the network should not be DHCP clients. Hosts that provide services to the network should not rely on the network to obtain their IP addresses. Hosts that are print servers or file servers should have consistent IP addresses as well. However, print servers and file servers can become DHCP clients to receive their network configurations through DHCP. You can configure the DHCP server to provide consistent IP addresses to such DHCP clients, as described in Assigning a Reserved IP Address to a DHCP Client.


How to Enable the Solaris DHCP Client

This procedure is necessary only if DHCP was not enabled during Solaris installation.

  1. Become superuser on the client system.
  2. If this system uses preconfiguration instead of interactive configuration, edit the sysidcfg file. Add the dhcp subkey to the network_interface keyword in the sysidcfg file.

    For example, network_interface=hme0 {dhcp}. See the sysidcfg(4) man page for more information.

  3. Unconfigure and shut down the system.
    # sys-unconfig

    See the sys-unconfig(1M) man page for more information about the configuration information that is removed by this command.

  4. Reboot the system after shutdown is complete.

    If the system uses preconfiguration, the dhcp subkey in the sysidcfg file configures the system to use the DHCP client as the system boots.

    If the system does not use preconfiguration, you are prompted for system configuration information by sysidtool programs when the system reboots. See the sysidtool(1M) man page for more information.

  5. When prompted to use DHCP to configure network interfaces, specify Yes.

How to Disable a Solaris DHCP Client

  1. Become superuser on the client system.
  2. If you used a sysidcfg file to preconfigure the system, remove the dhcp subkey from the network_interface keyword.
  3. Unconfigure and shut down the system.
    # sys-unconfig

    See the sys-unconfig(1M) man page for more information about the configuration information that is removed by this command.

  4. Reboot the system after shutdown is complete.

    If the system uses preconfiguration, you are not prompted for configuration information, and the DHCP client is not configured.

    If the system does not use preconfiguration, you are prompted for system configuration information by sysidtool programs when the system reboots. See the sysidtool(1M) man page for more information.

  5. When prompted to use DHCP to configure network interfaces, specify No.
Previous Next