Solaris DHCP Administration Guide

Removing Addresses From DHCP Service

At times you might want the DHCP service to stop managing a particular address or group of addresses. The method you use to remove an address from DHCP depends on whether you want the change to be temporary or permanent.

Marking IP Addresses Unusable by the DHCP Service

You can use the pntadm -M command with the -f UNUSABLE option to mark addresses unusable.

In DHCP Manager, you use the Address Properties dialog box, shown in Figure 4–10, to mark individual addresses, and the Modify Multiple Addresses dialog box, show in Figure 4–11, to mark multiple addresses, as described in the following procedure.

How to Mark Addresses Unusable (DHCP Manager)

  1. Select the Addresses tab.

  2. Select the IP address's network.

  3. Select one or more IP addresses you want to mark unusable.

    If you want to mark more than one address unusable, press the Control key while you click with the mouse to select multiple addresses. You can also press the Shift key while you click to select a block of addresses.

  4. Choose Properties from the Edit menu.

    The Modify Addresses dialog box or the Modify Multiple Address dialog box opens.

  5. If you are modifying one address, select the Lease tab.

  6. Select Address is Unusable.

    If you are editing multiple addresses, select Mark All Addresses Unusable.

  7. Click OK.

How to Mark Addresses Unusable (pntadm)

  1. Become superuser or a user assigned to the DHCP Management profile .

  2. Enter a command of the following format:


    # pntadm -M ip-address -f UNUSABLE network-address
    

    For example, to mark address 24.64.3.3 as unusable, type:

    pntadm -M 24.64.3.3 -f UNUSABLE 24.64.3.0

Deleting IP Addresses from DHCP Service

You should delete IP addresses from the DHCP service database if you no longer want the address to be managed by DHCP. You can use the pntadm -D command or DHCP Manager's Delete Address dialog box.

The following figure shows the Delete Address dialog box.

Figure 4–12 Delete Address Dialog Box

Graphic

How to Delete IP Addresses from DHCP Service (DHCP Manager)

  1. Select the Addresses tab.

  2. Select the IP address's network.

  3. Select one or more IP addresses you want to delete.

    If you want to delete more than one address, press the Control key while you click with the mouse to select multiple addresses. You can also press the Shift key while you click to select a block of addresses.

  4. Choose Delete from the Edit menu.

    The Delete Address dialog box lists the address you selected so you can confirm the deletion.

  5. If you want to delete the host names from the hosts table, select Delete From Hosts Table.

    If the host names were generated by DHCP Manager or dhcpconfig, you might want to delete the names from the hosts table.

  6. Click OK.

How to Delete IP Addresses from DHCP Service (pntadm)

  1. Become superuser or a user assigned to the DHCP Management profile .

  2. Type a command of the following format:


    # pntadm -D ip-address
    

    If you include the -y option, the host name is deleted from the name service in which it is maintained.