Solaris DHCP Administration Guide

How to Remove a DHCP Network (pntadm)

Note that this procedure deletes the addresses on the network before removing the network. This ensures that the host names are removed from the hosts file or database.

  1. On the server system, become superuser or a user assigned to the DHCP Management profile .

  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 address 188.25.52.1, type the following command:

    # pntadm -D -y 188.25.52.1

    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 do this 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 188.25.52.0, type the following command:

    # pntadm -R 188.25.52.0

    See the pntadm man page for more information about using pntadm.