System Administration Guide: IP Services

ProcedureHow to Modify the Configuration of a DHCP Network (dhtadm)

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

  2. Determine which macro includes information for all clients of the network.

    The network macro's name matches the network IP address.

    If you don't know which macro includes this information, you can display the dhcptab table to list all macros by using the command dhtadm -P.

  3. Type a command of the following format to change the value of the option you want to change:

    # dhtadm -M -m macro-name -e 'symbol=value' -g

    See the dhtadm(1M) man page for more information about dhtadm command-line options.

Example 15–2 Using the dhtadm Command to Modify a DHCP Macro

For example, to change the macro's lease time to 57600 seconds and the NIS domain to, you would type the following commands:

# dhtadm -M -m -e 'LeaseTim=57600' -g

# dhtadm -M -m -e '' -g

The -g option causes the DHCP daemon to reread the dhcptab table and put the changes into effect.