Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
10.  Administering DHCP (Task) Adding, Modifying, and Removing DHCP Networks (Task Map) How to Modify Configuration of a DHCP Network (DHCP Manager)  Previous   Contents   Next 
   
 

How to Modify Configuration of a DHCP Network (dhtadm)

  1. 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 database to list all macros by using the command dhtadm -P.

  2. 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'

    For example, to change the 10.25.62.0 macro's lease time to 57600 seconds and NIS domain to sem.example.com, type the following commands:

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

    # dhtadm -M -m 10.25.62.0 -e 'NISdmain=sem.example.com'

  3. Type the following command as root to make the DHCP daemon reread dhcptab:

    # pkill -HUP in.dhcpd

Removing DHCP Networks

DHCP Manager enables you to remove multiple networks at once. You have the option to automatically remove the hosts table entries associated with the DHCP-managed IP addresses on those networks as well. The following figure shows DHCP Manager's Delete Networks dialog box.

Figure 10-7 Delete Networks Dialog Box

The pntadm command requires you to delete each IP address entry from a network before you delete that network. You can delete only one network at a time.

How to Remove a DHCP Network (DHCP Manager)

  1. Select the Addresses tab.

  2. Choose Delete Networks from the Edit menu.

    The Delete Networks dialog box opens.

  3. In the Keep Networks list, select the networks you want to delete.

    Press the Control key while you click with the mouse to select multiple networks, or press the Shift key while you click to select a range of networks.

  4. Click the right arrow button to move the selected networks to the Delete Networks list.

  5. If you want to remove the host table entries for the DHCP-managed addresses on this network, select Delete Host Table Entries.

    Note that this does not delete the host registrations at the DNS server for these addresses. It affects only the local name service.

  6. Click OK.

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

    # pntadm -D -y 10.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 10.25.52.0, type the following command:

    # pntadm -R 10.25.52.0

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

Supporting BOOTP Clients with DHCP Service (Task Map)

To support BOOTP clients on your DHCP server, you must set up your DHCP server to be BOOTP compatible. You can register BOOTP clients in the DHCP server's network table or reserve a number of IP addresses for allocation to BOOTP clients, depending how you set up BOOTP compatibility.


Note - BOOTP addresses are permanently assigned, whether or not you explicitly assign them a permanent lease.


The following task map lists tasks you may need to perform to support BOOTP clients and the procedures used to carry them out.

Task

Description

Instructions

Set up automatic BOOTP support

Provide IP address for any BOOTP client on a DHCP-managed network, or on a network connected by a relay agent to a DHCP-managed network.

This requires you to reserve a pool of addresses for exclusive use by BOOTP clients. This option may be more useful if the server must support a large number of BOOTP clients.

"How to Set Up Support of Any BOOTP Client (DHCP Manager)"

Set up manual BOOTP support

Provide IP address for only those BOOTP clients that have been manually registered with the DHCP service.

This requires you to bind a client's ID to a particular IP address that has been marked for BOOTP clients. This option is useful for a small number of BOOTP clients, or in the event that you want to restrict the BOOTP clients that can use the server.

"How to Set Up Support of Registered BOOTP Clients (DHCP Manager)"

How to Set Up Support of Any BOOTP Client (DHCP Manager)

  1. Select Modify from the Service menu.

    The Modify Service Options dialog box opens.

  2. In the BOOTP Compatibility section of the dialog box, select Automatic.

  3. Select Restart Server, if it is not already selected.

  4. Click OK.

  5. Select the Addresses tab in DHCP Manager.

  6. Select addresses that you want to reserve for BOOTP clients.

    Select a range of addresses by clicking the first address, pressing the Shift key, and clicking the last address.

    Select multiple non-concurrent addresses by pressing the Control key while clicking each address.

  7. Select Properties from the Edit menu.

    The Modify Multiple Addresses dialog box opens.

  8. In the BOOTP section, select Assign All Addresses Only to BOOTP Clients.

    All other options should be set to Keep Current Settings.

  9. Click OK.

    Any BOOTP client can now obtain an address from this DHCP server.

 
 
 
  Previous   Contents   Next