This section provides details on using the Java Management Console for DHCP (OES Linux) to manage objects in eDirectory.
IMPORTANT:Make a forced exit from Java Management console if you observe any of the following three scenarios:
Unable to reach eDirectory after establishing a connection.
If there is any network interruption.
Viewing of leases takes more time than usual.
Install the Java Management Console on client computers to administer DNS and DHCP services.
Download Java Console for windows from the Client Software Link in the welcome page.
The filename for 32-bit Windows is DNSDHCP_SA.zip and for 64-bit Windows is DNSDHCP_SA-x64.zip.
NOTE:You can view the Welcome Page by using http://IP_or_DNS/welcome to access the server.
After downloading the required file, extract or unzip the files.
For 32-bit windows, run setup.exe from the extracted files. Follow the on-screen instructions. The InstallShield guides you through the rest of the setup process.
For 64-bit windows, launch Java Console using the DNSDHCP.exe file in the unzipped folder.
NOTE:Java Console is not supported on Windows XP SP3 64-bit platform.
IMPORTANT:Java Runtime Environment (JRE 1.5 or later) is required for running Java Console on Windows. Download JRE from the web if it is not available on your Windows.
Download Java Console for Linux appropriately from the Client Software Link in the welcome page.
The zip file name for 32-bit linux is dnsdhcp-jc-i586.tar.gz and for 64-bit linux is dhsdhcp-jc-x86_64.tar.gz
After downloading the required file, untar these files using the tar -xzvf <filename> command.
The appropriate RPMs for these files are untarred. The 32-bit RPM is novell-dnsdhcp-jc-1.0.1-0.6.i586.rpm and the 64-bit RPM is novell-dnsdhcp-jc-1.0.1-0.6.x86_64.rpm.
Install the Java Console with the rpm -ivh <rpm name> command.
Starting the Console on Windows: Double-click the dnsdhcp icon on the desktop or click Start > All Programs > DNS-DHCP Management Console > DNSDHCP to launch the login window.
Starting the Console on Linux (Gnome): In Gnome, double-click the in Computer > Applications > More Applications > DNSDHCP to launch the login window.
Starting the Console on Linux (KDE): In KDE, double-click the icon in System > Network > DNSDHCP Management Console.
Launch the Java Console login window. The following window is displayed for Windows:
A similar login window is displayed for Linux.
Specify the IP address of the server in the Server Address field.
Specify the User Name and Password to log in to this server.
For a secured login, select the Use SSL check box.
(Optional) Click Add to specify the command line options in the Parameters field.
The following are the command line options that can be specified while launching the Java Management console:
Table 7-1 Command Line Options
Option |
Use |
---|---|
-c |
Specifies the context in which the DNS/DHCP locator object is present. When you use this option, you can eliminate the search for the DNS/DHCP Locator object and obtain a quicker startup for the DNS/DHCP Java Management Console. For example, if the context in which the locator object is present is ou=wgp,o=novell, then using -c option you can specify the following: -c ou=wgp,o=novell. -c ou=wgp,o=novell The -c option is used to specify the netware tree context in which the locator object is present. |
-s |
Limits the administrative scope of the DNS Java Management console. If you manage only objects under the ctp.novell context, you can set the option as –s ctp.novell and launch the Management Console. With this option set, you can view only those DNS objects that are under the ctp.novell eDirectory context. Using this option might improve the server performance because not all DNS objects are read. If you do not set this option, all the DNS objects in the tree are displayed. |
-l |
Specifies the Locator context. The -l option is used to specify the linux tree context in which locator object is present. For example, if the context in which the locator object is present is ou=wgp,o=novell, then using -l option you can specify the following: -l ou=wgp,o=novell. -l ou=wgp,o=novell |
-p |
Specifies the Port. |
The Service object acts as a container object for subnet, shared network, host, zone, class, and TSIG key.
Click the DHCP (OES Linux) tab of Java Management Console window main panel.
Click Create on the toolbar to open the Create New DHCP Object window.
Select Service in the Create New DHCP Object window, then click OK. The Create Service window opens.
Specify the service name.
Specify the eDirectory context or use the browse button to select the context.
Select the default DHCP server from the drop-down list.
Click Create. The DHCP (OES Linux) Service object is created on the left pane of Java Management Console.
You can manage the DHCP (OES Linux) Service on the right pane of the Java Management Console by using the General, Settings, and Configured Options tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
The Dynamic Host Configuration Protocol (DHCP) uses the client/server structure to allocate network addresses to a host. The DHCP server reads its configuration information from eDirectory and stores the information in its cache.
Click the DHCP (OES Linux) tab of the Java Management Console.
Click Create on the toolbar to open the Create New DHCP Object window.
Select DHCP Server in the Create New DHCP Object window, then click OK. The Create Server window opens.
Specify the server name.
Specify the eDirectory context or browse to select the context.
Click Create.
The server is now created and added to the Default DHCP Server list.
You can manage the DHCP (OES Linux) server on the right pane of the Java Management Console by using the General and Settings tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
Click Start/Stop Service on the toolbar.
Depending on the state of the DHCP Server, one of the following operations occurs:
Start action: If the DHCP Server is in Stop mode, the Server is started.
Stop action: If the DHCP Server is in Start mode, the Server is stopped.
You must ensure that you have configured the IP address of a DHCP server to start or stop the server. To configure the IP address of the DHCP server, select the General tab of the server object, then click Add to specify the IP address.
All subnets that share the same physical network can be grouped under a Shared Network object.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the service for which the shared network needs to be created.
Click Create on the toolbar to open the Create New DHCP Object window.
Select shared network from the Create New DHCP Object window, then click OK.The Create Shared Network window opens.
Specify the name of the Shared Network object.
Click Create.The Shared Network is now created.
You can manage the DHCP (OES Linux) Shared Network on the right pane of the Java Management Console by using the General, Settings, and Configured Options tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
The Subnet object is the most fundamental DHCP object. It enables you to distribute IP addresses and DHCP options to each network.
The Subnet object acts as a container object for Host and Pool objects.
A Subnet object's specific DHCP options and configuration parameters apply to the entire subnet and override global options.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the shared network or the service for which the subnet needs to be created.
Click Create on the toolbar to open the Create New DHCP Object window.
Select Subnet from the Create New DHCP Object window, then click OK.
Specify a unique Subnet Address and Subnet Mask in the fields provided.
Click Create.
The Subnet is created.
You can manage the DHCP (OES Linux) Subnet on the right pane of the Java Management Console by using the General, Lease, Settings, Configured Options, and IP Address Utilization tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
A Pool is a designated range of IP addresses used to specify a range type assignment.
The Pool object represents a range of addresses for dynamic address assignment or for exclusion from the address assignment.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select a service or a shared network from the list where you want to create a pool. All of the subnets created under the service and the service or shared network hierarchy are displayed. Select the subnet under which you want to create the pool.
Click Create on the toolbar to open the Create New DHCP Object window.
Select pool from the Create New DHCP Object window, then click OK. The Create Pool window opens.
Specify the name of the pool.
Specify the Start Address.
Specify the End Address.
Click Create.
The pool is created.
You can manage the DHCP (OES Linux) Pool on the right pane of the Java Management Console by using the General, Settings, Configured Options, and IP Address Utilization tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
Hosts are a system of domain names in the network. They are used to identify DHCP clients. Host objects have an associated IP address.
For clients with statically assigned addresses or for installation where only known clients are served, each client must have a host.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the service or the subnet where you want to create the host.
Click Create on the toolbar to open the Create New DHCP Object window.
Select host from the Create New DHCP Object window, then click OK. The Create Host window opens.
Specify the name by which you want to identify the host in the Host Name field.
Specify the IP address of the host in the Host IP Address field.
Specify the client identifier. This uniquely identifies the client.
Select the MAC type from the drop-down list.
Specify the hardware address of the NIC (Network Interface Card) in the MAC Address field.
Click Create. The host is now created below the required service.
You can manage the DHCP (OES Linux) host on the right pane of the Java Management Console by using the General, Lease, Settings, and Configured Options tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
The Class object helps in segregating clients into classes. These clients are treated differently depending on the class they are in.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the service for which the class needs to be created.
Click Create on the toolbar to open the Create New DHCP Object window.
Select Class from the Create New DHCP Object window, then click OK. The Create Class window opens.
Specify the name of the class in the Class Name field.
Click Create.
The Class is created for the specified Service.
You can manage the DHCP (OES Linux) Class on the right pane of the Java Management Console by using the General, Settings, and Configured Options tabs.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
The DHCP Zone object defines the Domain Name System (DNS).
A DHCP server uses this information to perform dynamic updates for the zone objects. A DNS server must be configured to allow updates for the zone that the DHCP server is updating.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the service for which the Zone needs to be created.
Click Create on the toolbar. The Create New DHCP Object window opens.
Select the zone from the Create New DHCP Object window, then click OK. The Create Zone window opens.
Specify the name of the zone in the Zone Name field.
In the DNS Server IP Address field, specify the IP address of the DNS server that will receive updates from an authorized DHCP server.
Click Create.
The zone is created for the specified service.
You can manage the DHCP (OES Linux) zone on the right pane of the Java Management Console by using the General tab.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
TSIG key can be used to secure DDNS updates between DNS and DHCP servers. For a successful secure DDNS update between DNS and DHCP servers, you must ensure the following:
Zones (both forward and reverse) are assigned TSIG key.
Both DNS and DHCP key name and it's secret must be the same.
Click the DHCP (OES Linux) tab of the Java Management Console.
Select the service for which the TSIG key needs to be created.
Click Create on the toolbar. The Create New DHCP Object window opens.
Select TSIG from the Create New DHCP Object window, then click OK. The Create TSIG Key window opens.
Specify the name of the TSIG key in the TSIG Key Name field.
Specify the name of the algorithm in the Algorithm field.
Specify the Secret key.
NOTE:The number of characters in the secret key must be in multiples of 4.
Click Create.
The TSIG key is now created below the specified service.
You can manage the DHCP (OES Linux) TSIG key on the right pane of the Java Management Console by using the General tab.
For more information on managing objects, see Section 7.1.13, Managing DHCP (OES Linux) Objects in the Java Management Console.
The Failover Peer protocol allows only two DHCP servers to share a common address pool. This ensures continuous availability. The process defines a role of a Primary Server and a Secondary Server.
Each server has about half of the available IP addresses in the Pool at any given time for allocation. During a prolonged failure of the primary server, the secondary server recovers all the addresses that the primary server had available for allocation, and begins to reuse them.
Click the DHCP (OES Linux) tab of the Java Management Console.
Create a Service To create a service. For example, myService1. Assign the service to one of the two DHCP servers in the tree.
Create a second Service. For example, myService2. Assign the service to the second DHCP server in the tree.
Create two identical subnets (one for each Service) To create a Subnet. When you create a subnet, a drop-down menu allows you to select the service to be assigned to the each subnet.
Create two identical pools (one under each Subnet) To create a Pool. When creating the pool, select the appropriate service.
Create a Failover object under each service. The name of the Failover object under each service must be identical. For example, if a failover object named FailOver1 is created under service DHCPService1, then under DHCPService2, the failover object created should also be named as FailOver1. If the failover object names are not identical, DHCP server will fail to start.
The same port can be used for the primary and secondary servers. As the RFC does not currently specify a reserved port for DHCP Failover Peer setups, specify the port(s) of your choice that is unused
On the left pane of the Java Management Console, select the Service for which you want to create the Failover.
Click Create on the toolbar. The Create New DHCP Object window opens.
Select Failover Peer, then click OK.
Specify a name to identify the Failover.
Specify the Primary Server IP Address.
Specify the port number of the primary server in the Primary Port field.
Specify the Secondary Server IP Address.
Specify the port number of the secondary server in the Secondary Port field.
Specify the Max Client Lead Time. This is the length of time for which a lease may be renewed by either server without contacting the other. (Specify this on the Primary Server; it cannot be specified on the Secondary Server).
Specify the Failover Split. This specifies the split between the Primary and Secondary Servers for the purpose of load balancing.
Click Create. The Failover Peer is now created.
Edit each pool involved in the failover and choose the Failover Peer from the drop down list.
Restart DHCP and monitor /var/log/message for any errors.
You can manage the Failover Peer by using the General tab in the right pane of the Java Management Console:
Primary Server IP Address: Modify the primary server IP Address appropriately if required.
Primary Port: Modify the port number of the primary Server if required.
Secondary Server IP Address: Modify the secondary server IP Address appropriately if required.
Secondary Port: Modify the port number of the secondary server if required.
Failover Split: Specify the split between the primary and secondary for the purpose of load balancing.
Max Client Lead Time: The length of time for which a lease can be renewed by either server without contacting the other. (Specify this on the primary; and it cannot be specified on the secondary).
Unacked Updates: Notifies the primary server of the number of messages it can send before it receives from the Failover secondary server.
Response Delay: Refers to the amount of information that needs to be processed.
Load Balance Time: Refers to the time (seconds) set so that if one of the failover peers is in a state where it responds to the failover messages but does not respond to some client requests, the other failover peer takes over its client load automatically as the clients retry.
Comments: Specify comments if any.
You can manage the DHCP (OES Linux) objects by using the tabs on the right pane of the Java Management Console. The following description provide more information about the tabs:
Use the General tab to select the preferred Server object and add comments for the DHCP (OES Linux) object. This tab must be used to manage a Service.
Select a server from the default DHCP drop-down list. The selected server is now associated with the service.
Type your comments about the service in the Comments field.
Click OK to save the settings.
These settings are used to define the configuration for an object.
To add or modify a setting:
Click Modify. The Modify DHCP Settings dialog box opens.
Select a setting from the Settings Name list.
Click Add. To add the entire list, Click Add All.
Click OK to add the settings.
To remove setting name:
Select the setting from the Settings Name list, then click Remove.
or
To remove all the settings, click Remove All.
To delete a setting:
Select the setting from the list, then click Delete.
or
To remove multiple settings, use Ctrl+Shift to select the settings you want to remove, then click Delete.
You can define values for the predefined options that are declared in the Available Option list.For example, Time Offset is a predefined option in the Available DHCP Option list. Use the Configured Options task to set a value for the Time Offset option.
To add a configured option:
Click Modify. The Modify DHCP Options dialog box is displayed.
Select an option from the Option Name list.
Click Add.To add the entire list, Click Add All.
Click OK.
To remove a setting:
Select the option from the Option Name list, then click Remove.
or
To remove all the options, click Remove All.
To delete a setting:
To delete an option, select the option from the list, then click Delete.
or
To remove multiple options, use Ctrl+Shift to select the options you want to remove, then click Delete.
The Lease Type specifies the length of time for an address assignment. A lease type can be either permanent or timed. This tab must be used to manage the subnet and host objects.
Permanent leases never expire; the client is assigned an IP address for an indefinite period.
Timed leases are defined in days, hours, or minutes. Timed leases expire, unless the client renews the lease.
Select this option to specify the Server Address, Server Name, and Boot File Name for the BOOTP service. This information is provided at boot time. If the Boot Parameter option is selected, you need to specify the entire boot sequence.
The IP Address Utilization tab displays the details for IP addresses in a subnet or a pool.
Percentage Utilization: The IP addresses that are in use as a percentage of the total IP addresses available in the subnet or pool.This value is equal to (Utilized IP Addresses / Total IP Addresses) * 100.
Total IP Addresses: The total number of IP addresses available in the subnet or pool, including the subnet or pool start and end addresses.
Utilized IP Addresses: The number of IP addresses that are currently assigned to static hosts and dynamic hosts from this subnet. Or, for a pool, the number of IP addresses that are currently assigned to dynamic hosts.
Available IP Addresses: The total number of IP addresses that are currently available for assignment in the network.This value is equal to (Total IP Addresses - Utilized IP Addresses).
You can view the details either by selecting a particular subnet or by selecting a server object which serves one or more subnets.
In the DHCP (OES Linux) tab, select the subnet for which you want the utilization details.
In the Subnet property pages, click the IP Address Utilization tab.
Click Get Details to view the IP address utilization details of the subnet.
In the DHCP (OES Linux) tab, select the appropriate DHCP server.
On the DHCP server property page, click the General tab.
From the subnets displayed under the Subnets Serviced by This Server list, select one or more subnets to view the IP address utilization details:
Select the Select All option to view the details for all of the subnets or select Clear All option to clear the selection.
Check the following boxes to view only those subnets whose percentage utilization is more than or less than a particular value:
Show only subnets with percentage utilization more than
Show only subnets with percentage utilization less than
When the option is selected and a value is configured, only those subnets whose percentage utilization is more than or less than the configured value are displayed.
Click Show Utilization.
The IP address utilization details of the selected subnets are displayed.
You must wait for the complete details of all subnets to be loaded into the table. The status bar displays Done when the complete subnet details are loaded.
The details of the summarized utilization are also displayed. The summary details are sum of the values of all the subnets (except the percentage utilization).
Click Save to save the utilization details to a file.
In the DHCP (OES Linux) tab, select the pool for which you want the utilization details.
In the Pool property pages, click the IP Address Utilization tab.
Click Get Details to view the IP address utilization details of the pool.
The import or 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 configuration file to import should be in DHCP V3 format. Importing the Linux DHCP configuration file overwrites the associated DNS 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.
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.
A DHCP-enabled client obtains a lease for an IP address from a DHCP server. Before the lease expires, the DHCP server must renew the lease for the client or the client must obtain a new lease.
Configure the following parameter to view leases:
Configure omapi-key
Create a TSIG Key with service object as the container.
Select the server object which is associated with the service.
Select the Settings tab of the server object.
Click Modify. The Modify DHCP Settings dialog box displays. From the list of available settings select omapi-key.
From the drop-down, select the new TSIG key and click OK.
Configure omapi-port
Select the Settings tab of the server object.
If omapi-port setting is not added to the server object, select it from the list of available settings and set it to the value of 7911 (Default omapi port or any other port).
Make sure that 7911 (or any other port configured as omapi-port) is added in the list of allowed services in firewall.
Configure DHCP Server IP address
Select the General tab of the server object.
Click Add.
Add the DHCP server IP address in the dialog box.
Restart the DHCP Server. You can now view the Active/Abandoned leases under the Pool object, in Java Management Console. The Active leases are blue in color and the Abandoned leases are red in color.
To determine the lease data, select the appropriate IP address of the lease displayed below the pool. The following details are displayed:
IP Address: The IP address leased to the client by the DHCP server.
Hostname: The hostname of the leased client.
MAC Address: The MAC address of the network interface on which the lease is used. It is specified as a series of hexadecimal octets, separated by colons.
Client Identifier: An arbitrary value that is used to identify a client instead of the hardware type and client hardware address. The client identifier is recorded as a colon-separated hexadecimal list or as a quoted string.
MAC Type: MAC types such as Ethernet, FDDI, and token ring.
State: Lists the state of the lease as Active or Abandoned. Active leases are colored blue and the abandoned leases are colored red.
Start Time: The date and time when the client lease begins.
End Time: The date and time when the lease expires.
NOTE:Lease times are specified in Universal Coordinated Time (UTC).
Click the DHCP (OES Linux) tab of the Java Management Console.
Under the pool object, select the lease that you want to delete.
Click the Delete button.
Click Yes to confirm the deletion.
Release the lease from the client machine:
On Windows: # ipconfig /release
On Linux: # ifconfig eth0 down