In this section, the source server refers to a supported OES server and the target server refers to an OES 2015 SP1 server.
Make sure your setup addresses the following requirements before you migrate DHCP to the new platform.
An eDirectory integrated DHCP server installed and configured on the target machine. This takes care of the schema extension on the target server tree and creation of the dhcpLocator and DHCPGroup objects.
If the target server is in different subnet, ensure that you create a subnet in the target server before migration.
To migrate DHCP to the new platform, you can use the Java Management Console. During migration, the configuration details as well as the data are migrated to the destination platform.
NOTE:To enable DHCP to autostart after a successful migration, execute the chkconfig -a dhcpd command on the source server.
Launch Java Console.
Select the service container object that you want to migrate to the target DHCP server.
From the Default DHCP Server list in the General Tab, select the DHCP server object of the target machine.
Click the Save button.
Migrate the DHCP leases from OES 2 SPx to OES 2015 SP1. To migrate the DHCP leases, copy the /var/lib/dhcp/db/dhcpd.leases file from the source OES 2 server to the corresponding location in the OES 2015 SP1 server.
Perform Transfer ID. For more information, see Section IV, Transfer ID Migration.
On successful migration, proceed to perform service specific proxy migration. For more information, see Migrating Proxy users to OES 2015 SP1.
To migrate servers across eDirectory trees, you need to export the source server’s DHCP configuration and import the DHCP configuration to the target server.
The import and export operation is used to transfer the DHCP service configuration from files into eDirectory or from eDirectory to a text file in a dhcpd.conf format respectively. Only Linux DHCP configuration files should be used to import or export the DHCP configuration.
NOTE:Before importing a DHCP configuration file, check the syntax of the file with the rcnovell-dhcpd check-syntax command. The command reads /etc/dhcpd.conf and checks the syntax.
The file is exported in a dhcpd.conf format. These files can be imported anywhere and can also be imported back to eDirectory by using the DNS/DHCP Java-based Management Console Utility.
Click the DHCP (OES Linux) tab of the Java Management Console.
Click Export DHCP Database on the toolbar to open the Export - DHCP window.
Specify the name of a destination file or browse to select a filename from the dialog box, then click Next.
Select the services by using the Export DHCP - Service List window.
Click Export to store your information in a file.
Click Finish to complete the export.
If the export program encounters any error, the Details button is enabled in the error window. Click Details to view the error details.
The configuration file to import should be in DHCP V3 format. Importing the Linux DHCP configuration file overwrites the associated DHCP server's settings.
To import the DHCP files:
Click the DHCP (OES Linux) tab of the Java Management Console.
Click Import DHCP Database on the toolbar.
Click Browse to select or specify the path for the DHCP database file.
Click Next to open the Import - File Input window.
Specify the service name in the Service Name text box.
In the Select NDS Context text box, browse to select or enter specify the context where the service is to be created.
(Optional) Select a Default DHCP Server from the drop-down list.
Click Import.
Click Finish to complete the import operation.
If the import program encounters any error, the Details button is enabled in the error window. Click Details to view the error details.
To migrate the DHCP leases from a supported OES server to OES 2015 SP1, copy the /var/lib/dhcp/db/dhcpd.leases file from the source OES 2 server to the corresponding location in the OES 2015 SP1 server.
In the /etc/dhcpd.conf file, change ldap-base-dn to reflect the context of the migrated DHCP Server and change ldap-dhcp-server-cn to reflect the name of the migrated DHCP Server.
Check the syntax of the dhcp configuration file with the rcnovell-dhcpd check-syntax command. The command reads /etc/dhcpd.conf and checks the syntax.
Start the target server dhcp server using the following command:
rcnovell-dhcpd start
Verify the /var/log/dhcp-ldap-startup.log file to check the dhcp configuration of the migrated server.