Sun Cluster Data Service for DHCP Guide for Solaris OS

How to Install and Configure DHCP

Use this procedure to install and configure DHCP.

  1. Install the following packages from the Solaris CD:

    • SUNWdhcsu

    • SUNWdhcsb

    • SUNWdhcm

  2. Mount DHCP Cluster File Systems – Ensure that the Cluster File System for the DHCP network table is mounted.


    Note –

    If a Failover File System is used by the DHCP network table, you must mount this manually.


  3. Install the required DHCP patches.

    Refer to Configuration Requirements for a list of patches that you need to install.

  4. Run the following commands to configure DHCP –


    # /usr/sadm/admin/bin/dhcpmgr
    
    • Choose Configure as DHCP Server.

    • Choose Text files or Binary files.

    • Enter a path for the DHCP network table.

    • Choose which name services to use to store host records.

    • Choose Length of Lease and whether clients can renew their leases.

    • If used, supply a DNS configuration for the DHCP client of this server.

    • Add which network and network mask should provide ip-addresses.

    • Choose LAN as Network Type.

    • If used, supply a NIS configuration for the DHCP clients of this server.

    • If used, supply a NIS+ configuration for the DHCP clients of this server.

    • Create your addresses and macros.

  5. Check whether /etc/inet/dhcpsvc.confhas the following parameters defined.

    • DAEMON_ENABLED is always set to true.

    • PATH points to a Cluster File System.

    • RUN_MODE is always set to SERVER

    • RESOURCE is set to either SUNWbinfiles or SUNWfiles.

  6. make sure /etc/inet/dhcpsvc.conf is consistent on all nodes within Sun Cluster that will host the DHCP service.

    This can be done by either:

    • Copying /etc/inet/dhcpsvc.conf onto each node with Sun Cluster;

    • Moving your edited dhcpsvc.conf to your Cluster File System, and creating a symbolic link from /etc/inet/dhcpsvc.conf to dhcpsvc.conf within the Cluster File System.

  7. Ensure that DHCP is stopped on all nodes.


    # /etc/rc2.d/K21dhcp stop
    
  8. Disable DHCP startup on boot on all nodes.


    # rm /etc/rc3.d/S34dhcp