Problem
How do I set up my Microsoft Windows PC to get a dynamically assigned IP address from a SCO Unix server using DHCP (Dynamic Host Configuration Protocol)?
Solution
The following example shows how to set this up. In this example, only one IP address is set up as available to a single client. In practice, usually a set of IP addresses or pools are assigned. A Windows 95 client is used but it is similar for Windows 98.
(1) First, the SCO Unix DHCP server is set up:
Start the SCOadmin interface, choose "Networking", "DHCP Server Manager", "Edit", "Add", and then add a subnet entry
Set the subnet, in this case the Network address of the IP address we are going to use, 123.456.789.0
Set the Mask, that is, 255.255.255.0Set the pool name, in this case "scotest" (which you will create shortly)
Set the "Description" of this pool for easy identification
Then work down to the next line of options and across and into each one:
Make the Lease "unlimited"Choose "Generic"In the example network, a hardware router was available:
Subnet Generic options configurationFrom the pick list, choose "3 - routers" and Add
Assign the IP address of, for example, "123.456.789.5"Add this to the "Array contents" and click "OK" to finish
Now click on "Address Pools" and you are placed inside the Address Allocation Manager (AAS). Choose "Add" and add the pool "scotest" and the IP address you will use for the client to it, in this case, "123.456.789.11"
Click "OK" when finished. Then choose "Host" and "Return to DHCP Server Manager".
Finally, you will come back to the initial menu. Choose "OK".
(2) Configure the Windows system:Choose "Start", "Settings", "Control Panel", "Network", "Configuration", and highlight the "TCP/IP" network component
Click on "Properties", then choose "IP Address" and toggle the check box to the setting "Obtain an IP address automatically"
Also, within "WINS Configuration", enable the "Use DHCP for WINS Resolution" option at the bottom of the page
DNS is enabled on the client in the "DNS Configuration" option with "Enable DNS" on and the "Host" set to the name of the immediate DNS server. The domain name is set to, for example, "test.sco.com".
On reboot of both systems, the Windows PC client should collect its IP address from the server. If not a message similar to this will appear:
..could not obtain IP address from DHCP serverIf it has obtained the address, you should be able to ping out to other sites or telnet from the MS-DOS prompt window.
You can see routing from the client with the "netstat" command:
C:\WINDOWS>netstat -rThe UnixWare 7 Address Allocation Manager with the Networking utilities inside SCOadmin should show the address that was set up on the server allocated to the client. Choose "View", "Address Allocation" and then double-click on the pool name being used. It should show something similar to:
Pool Name Type Total Usedscotest INET 1 1
123.456.789.11 ALLOCATED DHCP infinite 18:32 02/03/00Click on the line containing the IP address and the title changes to:
Address Status Service Lease Allocated Released123.456.789.11 ALLOCATED DHCP infinite 18:32 02/03/00 See also
The UnixWare 7 online documentation via the UnixWare Desktop or via scohelp or http://uw7doc.com.com and search on "dhcp". Articles include:
"The DHCP Server Manager interface" "How the SCO DHCP server works"
TA 110170, "How to configure DHCP on SCO ...