sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next

ProcedureHow to Import Data on a DHCP Server (dhcpconfig -I)

  1. Log in to the server to which you want to import the data.

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

  3. Import the data by typing a command of the following format:

    # dhcpconfig -I filename

    filename is the name of the file that contains the exported data.

  4. Modify the imported data, if necessary.

    See How to Modify Imported DHCP Data (pntadm, dhtadm).

ProcedureHow to Modify Imported DHCP Data (DHCP Manager)

  1. Start DHCP Manager on the server to which you imported data.

    See How to Start and Stop DHCP Manager for information about DHCP Manager.

  2. Examine imported data for network-specific information that needs modification.

    For example, if you moved networks, you must open the Addresses tab and change the owning server of addresses in the imported networks. You might also need to open the Macros tab to specify the correct domain names for NIS, NIS+ or DNS in some macros.

  3. Open the Addresses, tab and select a network that you imported.

  4. To select all the addresses, click the first address, press and hold the Shift key, and click the last address.

  5. From the Edit menu, choose Properties.

    The Modify Multiple Addresses dialog box opens.

  6. At the Managing Server prompt, select the new server's name.

  7. At the Configuration Macro prompt, select the macro that should be used for all clients on this network, and then click OK.

  8. Open the Macros tab.

  9. Use the Find button to locate the options that are likely to need modified values.

    The Find button is located at the bottom of the window.

    DNSdmain, DNSserv, NISservs, NIS+serv, and NISdmain are examples of options that might need modification on the new server.

  10. Change the options in the appropriate macros.

    See How to Modify DHCP Option Properties (DHCP Manager) for the procedure for changing options.

ProcedureHow to Modify Imported DHCP Data (pntadm, dhtadm)

  1. Log in to the server to which you imported data.

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

  3. Examine the network tables for data that needs to be modified.

    If you moved networks, use the pntadm -P network-address command to print out the network tables for the networks you moved.

  4. Modify IP address information by using the pntadm command.

    You might need to change the owning server and the configuration macro for imported addresses. For example, to change the owning server (10.60.3.4) and macro (dhcpsrv-1060) for address 10.63.0.2, you would use the following command:

    pntadm -M 10.63.0.2 -s 10.60.3.4 -m dhcpsrv-1060 10.60.0.0

    If you have a large number of addresses, you should create a script file that contains commands to modify each address. Execute the script with the pntadm -B command, which runs pntadm in batch mode. See the pntadm(1M) man page.

  5. Examine the dhcptab macros for options with values that need modification.

    Use the dhtadm -P command to print the entire dhcptab table to your screen. Use grep or some other tool to search for options or values that you might want to change.

  6. Modify options in macros, if necessary, by using the dhtadm -M command.

    For example, you might need to modify some macros to specify the correct domain names and servers for NIS, NIS+ or DNS. For example, the following command changes the values of DNSdmain and DNSserv in the macro mymacro:

    dhtadm -M -m mymacro -e 'DNSserv=dnssrv2:DNSdmain=example.net' -g

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.