A P P E N D I X C

Configuring a DHCP Server

This appendix describes how to configure bootstrap protocol (BOOTP) services in a Sun Solaris and Microsoft Windows environment. It contains the following sections:

- Before You Begin

- Setting Up a Solaris DHCP Server

- Setting Up a DHCP for Windows 2000 Advanced Server

Dynamic IP addresses are assigned through dynamic host control protocol (DHCP) server BOOTP services.

##

Before You Begin

You need each controller’s media access control (MAC) address to configure the DHCP server. The MAC address is located on the bar code label at the back of each controller. Because there are two controller modules per controller tray, you need two MAC addresses.

##

Setting Up a Solaris DHCP Server

The following procedure provides an example of how to set up a DHCP server with the BOOTP option for the Solaris 8, 9, and 10 Operating Systems. Your environment may require different steps.

1. Modify the `netmasks` line of the `/etc/nsswitch.conf` file as shown here:

    #netmasks:   nis [NOTFOUND=return] files
    netmasks:   files nis [NOTFOUND=return]

2. Start the DHCP wizard by issuing the following command at the command line:

`/usr/sadm/admin/bin/dhcpmgr &`

3. Select Configure as DHCP server.

4. Respond to the wizard prompts, as follows:

- Data storage format: `Text files`

- Name service to store host records: `Do not manage hosts records`

- Length of lease:

- Network Address: Network address of Controller A

- Subnet Mask: For example, `255.255.255.0`

- Network Type: `Local-Area (LAN)`

- Router: `Use router discovery protocol`

Your summary page should look similar to the following example:

5. Verify your configuration information, and click Finish.

6. When you are prompted to configure addresses for the server, click Yes.

The Add Address to Network wizard is displayed.

7. Enter the following information:

- Number of IP addresses

- Name of managing server

- Starting IP address

- Configuration macro to be used for configuring the clients

- Lease type

Your summary page should look similar to the following example:

8. Verify your configuration information and click Finish.

9. In the Address Properties window, do the following:

a. In each Client ID field, enter `01` followed by the MAC address that is printed on the back of the controller. For example:

`0100A0E80F924C`

b. Toward the bottom of the window, select Assign only to BOOTP clients.

c. Click OK.

The DHCP manager updates the status and client ID.

10. Go to Modify Service Options, and do the following:

a. Select Detect Duplicate IP addresses.

b. Under BOOTP Compatibility, select Automatic.

c. Select Restart Server.

d. Click OK.

After the configuration process has finished, the DHCP server provides BOOTP services to the MAC address you entered for each controller.

11. To verify that the BOOTP service is running, go to Service >> Restart.

12. After you power on the storage array, ping the address.

If the ping responds with ‘`alive`’, the DHCP server BOOTP operation was successful.

##

Setting Up a DHCP for Windows 2000 Advanced Server

Before you begin, make sure the following requirements are met:

- Windows 2000 server and the storage array are both on the same subnet.

- IP addresses that are assigned to the controllers do not conflict.

- The array is in BOOTP IP addressing mode (the default setting for a new array).

- The Windows 2000 Server setup CD is available.

The following procedure provides an example of how to set up DHCP with the BOOTP option on the Windows 2000 Advanced Server. Your environment might require different steps.

### Installing the DHCP Server for Windows

To install DHCP server on the Windows 2000 Advanced Server:

1. From the Control Panel, go to Administrative Tools >> Configure Your Server.

2. Select DHCP from the Networking drop-down menu on the left.

The wizard instructs you to use the Windows Components wizard to add the DHCP component.

3. Start the Windows Components wizard and double-click Networking Services.

4. Select Dynamic Host Configuration Protocol (DHCP), click the check box to its left, and click OK.

The Windows Components wizard is displayed.

5. Click Next.

6. If Terminal Services Setup is displayed, select Remote administration mode. Click Next.

If your server has obtained an address from a DHCP server for its own address, a warning is displayed.

7. Click OK to accept the warning.

Local Area Connection Properties is displayed.

8. Assign a static IP address to the server, or click Server to keep DHCP addressing for the server. Click OK.

9. Click Finish to exit the Windows Components wizard.

The DHCP server is now installed. The next step is to configure the server.

### Configuring the DHCP Server for Windows

1. From the Control Panel, go to Administrative Tools >> Computer Management >> Services and Application >> DHCP.

2. From the Action menu, select New Scope.

The New Scope wizard is displayed.

3. Enter the following information as prompted:

- Scope name and description:

- IP address range (for example, 192.168.0.170 to `192.168.0.171`)

- Subnet mask (for example, `255.255.255.0`)

- Add exclusions (do not exclude any IP addresses)

- Lease duration (accept the default of 8 days)

- Router (default gateway) of your subnet (for example, `192.168.0.1`)

- Domain name, WINS server (these are not needed)

- Activate Scope? (select “Yes, I want to activate this scope now”)

4. Click Finish to exit the wizard.

The contents of the DHCP server are listed.

5. Right-click Scope [ipaddress] scope-name and select Properties.

6. In the Scope Properties box, click the Advanced tab.

7. Select BOOTP only, set the lease duration to Unlimited, and click OK.

8. Right-click Reservations.

The Controller A Properties box is displayed.

9. Enter the IP address and the MAC address for Controller A. Click Add.

The Controller B Properties box is displayed.

10. Enter the IP address and the MAC address for Controller B. Click Add.

The controllers are added to the right of the Reservations listing.

11. Right-click Scope [ipaddress] scope-name to disable the scope.

12. Click Yes to confirm disabling of the scope.

13. Right-click Scope and select Activate.

The DHCP server is now configured with the BOOTP option for the array network.

14. Power on or power cycle the array modules.

15. Click Address Leases in the left pane to check the DHCP server leases.

The lease expiration displays the following status for each controller:

`Reservation (active)`

If the lease expiration for the controllers is inactive, try refreshing the list. If the lease is still inactive, check the following:

- Are the IP addresses allocated for BOOTP conflicting?

- Were the correct MAC addresses added to the DHCP server for the controllers?

- Are the DHCP server and storage array on the same subnet?

- Is the gateway configured correctly on the DHCP server?

The controllers can gain a lease and an IP address, but they cannot respond out of the subnet for the software if the gateway is not configured properly.

- Are the controllers set up for BOOTP access?

It is possible that they were previously configured to have static IP addresses. You must be sure when you move an array that you change the array’s IP addresses to IP addresses on the new subnet before setting up BOOTP services.

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.