System Administration Guide: IP Services

ProcedureHow to Remove a DHCP Network (pntadm)

Note that this procedure deletes the network's IP addresses from the DHCP network table before removing the network. The addresses are deleted to ensure that the host names are removed from the hosts file or database.

  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. Type a command following this format to remove an IP address and its host name from the name service:

    # pntadm -D -y IP-address

    For example, to remove IP address, you would type the following command:

    # pntadm -D -y

    The -y option specifies to delete the host name.

  3. Repeat the pntadm -D -y command for each address in the network.

    You might want to create a script to run the pntadm command if you are deleting many addresses.

  4. After all addresses are deleted, type the following command to delete the network from the DHCP service.

    # pntadm -R network-IP-address

    For example, to remove network, you would type the following command:

    # pntadm -R

    See the pntadm(1M) man page for more information about using the pntadm utility.