System Administration Guide, Volume 3

How to Remove a DHCP Network (Command Line)

Note that this procedure deletes the addresses on the network before removing the network. This ensures that the hostnames are removed from the hosts file.

  1. Become superuser on the server system.

  2. Type a command following this format to remove an IP address and its hostname from the name service:


    # pntadm -D -yIP-address
    

    For example, to remove address 172.25.52.1, type the following:


    # pntadm -D -y 172.25.52.1
    

    The -y option specifies to delete the hostname.

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

    You might want to create a script to do this is you are deleting many addresses.

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


    # pntadm -R network-IP-address
    

    For example, to remove network 172.25.52.0, type the following:


    # pntadm -R 172.25.52.0