System Administration Guide: IP Services

ProcedureHow to Run the DHCP Client in Debugging Mode

If the client is not an Oracle Solaris DHCP client, refer to the client's documentation for information about how to run the client in debugging mode.

If you have an Oracle Solaris DHCP client, use the following steps.

  1. Become superuser on the DHCP client system.

  2. Kill the DHCP client daemon.


    # pkill -x dhcpagent
    
  3. Restart the daemon in debugging mode.


    # /sbin/dhcpagent -d1 -f &
    

    The -d switch puts the DHCP client in debugging mode with level 1 verbosity. The -f switch causes output to be sent to the console instead of to syslog.

  4. Configure the interface to start DHCP negotiation.


    # ifconfig interface dhcp start
    

    Replace interface with the name of the network interface of the client, such as ge0.

    When run in debugging mode, the client daemon displays messages to your screen while performing DHCP requests. See Output from DHCP Client in Debugging Mode for information about client debugging mode output.