Sun Cluster Data Service for DHCP Guide for Solaris OS

ProcedureHow to Install and Configure DHCP

This section contains the procedures you need to install and configure DHCP.

  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Create a cluster file system or highly available local file system for the DHCP files.

    Refer to Sun Cluster Software Installation Guide for Solaris OS for information about creating a cluster file system and to Sun Cluster Data Services Planning and Administration Guide for Solaris OS for information about creating a highly available local file system.

  3. Mount the highly available local file system if used.

  4. Configure DHCP.

    As root, execute /usr/sadm/admin/bin/dhcpmgr.


    # /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. Ensure /etc/inet/dhcpsvc.conf is the same on all cluster nodes.

    This can be done by either.

    • Copying /etc/inet/dhcpsvc.conf to each cluster node.

    • Moving your edited /etc/inet/dhcpsvc.conf to a cluster file system and create a symbolic link from /etc/inet/dhcpsvc.conf to dhcpsvc.conf on the cluster file system.

  6. Ensure DHCP is stopped on all nodes.


    # /usr/sadm/admin/bin/dhcpmgr
    
    1. If running Solaris 9


      # /etc/init.d/K21dhcp stop
      
    2. If running Solaris 10


      # svcadm disable dhcp-server