Você está na página 1de 8

How to Install DHCP Server in Windows Server 2003?

Vivek Nayyar March 3, 2011 0 To use any feature in Windows Server 2003 you first need to install the services and then you need to configure it to make it up and running. Same is with DHCP Server. Installing and configuring DHCP server services in Windows Server 2003 are two different processes. This section is precisely dedicated to the process involved in the installation of DHCP server. In order to install DHCP server in Windows Server 2003 you need insert Operating System installation disc in the CD/DVD ROM drive and then follow the steps below: 1. Click on Start button. 2. From the menu go to Control Panel and from its sub-menu select Add or Remove Programs. 3. From the opened window click on Add/Remove Windows Components button present in the left bar of the window. 4. From the Windows Component Wizard box click on Networking Services (do NOT check the check box) and click on Details button. 5. On the Networking Services box check Dynamic Host Configuration Protocol (DHCP) check box and click on Ok button.

6. Installing DHCP 7. Back on Windows Components Wizard box click on Next button to start the installation process. 8. On Completing the Windows Components Wizard page click on Finish button and close Add or Remove Programs page. More Info: DHCP server is used to assign automatic IP address to the client machines which are configured to obtain IP address automatically (default configuration). When a client machine boots it

requests an IP address from DHCP server by sending DHCP Discover packet. DHCP server then replies by offering an IP address to the client through DHCP Offer packet. In return client machine requests DHCP server to assign the offered IP address to it using DHCP Request packet and finally the DHCP server assigns the address to the requesting client machine and sends and acknowledgment through DHCP Acknowledge packet. This entire process is known as DORA.

2 This step-by-step article describes how to configure a new Windows Server 2003-based Dynamic Host Configuration Protocol (DHCP) server on a stand-alone server to provide centralized management of IP addresses and other TCP/IP configuration settings for the client computers on a network. Back to the top How to Install the DHCP Service Before you can configure the DHCP service, you must install it on the server. DHCP is not installed by default during a typical installation of Windows Standard Server 2003 or Windows Enterprise Server 2003. You can install DHCP either during the initial installation of Windows Server 2003 or after the initial installation is completed.

How to Install the DHCP Service on an Existing Server 1. Click Start, point to Control Panel, and then click Add or Remove Programs. 2. In the Add or Remove Programs dialog box, click Add/Remove Windows Components. 3. In the Windows Components Wizard, click Networking Services in the Components list, and then click Details. 4. In the Networking Services dialog box, click to select the Dynamic Host Configuration Protocol (DHCP) check box, and then click OK. 5. In the Windows Components Wizard, click Next to start Setup. Insert the Windows Server 2003 CD-ROM into the computer's CD-ROM or DVD-ROM drive if you are prompted to do so. Setup copies the DHCP server and tool files to your computer. 6. When Setup is completed, click Finish. Back to the top

How to Configure the DHCP Service After you have installed the DHCP service and started it, you must create a scope, which is a range of valid IP addresses that are available for lease to the DHCP client computers on the network. Microsoft recommends that each DHCP server in your environment have at least one scope that does not overlap with any other DHCP server scope in your environment. In Windows Server 2003, DHCP servers in an Active Directory-based domain must be authorized to prevent rogue DHCP servers from coming online. Any Windows Server 2003 DHCP Server that determines itself to be unauthorized will not manage clients.

How to Create a New Scope 1. Click Start, point to Programs, point to Administrative Tools, and then click DHCP. 2. In the console tree, right-click the DHCP server on which you want to create the new DHCP scope, and then click New Scope. 3. In the New Scope Wizard, click Next, and then type a name and description for the scope. This can be any name that you want, but it should be descriptive enough so that you can identify the purpose of the scope on your network (for example, you can use a name such as "Administration Building Client Addresses"). Click Next. 4. Type the range of addresses that can be leased as part of this scope (for example, use a range of IP addresses from a starting IP address of 192.168.100.1 to an ending address of 192.168.100.100). Because these addresses are given to clients, they must all be valid addresses for your network and not currently in use. If you want to use a different subnet mask, type the new subnet mask. Click Next. 5. Type any IP addresses that you want to exclude from the range that you entered. This includes any addresses in the range described in step 4 that may have already been statically assigned to various computers in your organization. Typically, domain controllers, Web servers, DHCP servers, Domain Name System (DNS) servers, and other servers, have statically assigned IP addresses. Click Next. 6. Type the number of days, hours, and minutes before an IP address lease from this scope expires. This determines how long a client can hold a leased address without renewing it. Click Next, and then click Yes, I want to configure these options now to extend the wizard to include settings for the most common DHCP options. Click Next. 7. Type the IP address for the default gateway that should be used by clients that obtain an IP address from this scope. Click Add to add the default gateway address in the list, and then click Next. 8. If you are using DNS servers on your network, type your organization's domain name in the Parent domain box. Type the name of your DNS server, and then click Resolve to make sure that your DHCP server can contact the DNS server and determine its address. Click Add to include that server in the list of DNS servers that are assigned to the DHCP clients. Click Next, and then follow the same steps if you are using a Windows Internet Naming Service (WINS) server, by adding its name and IP address. Click Next. 9. Click Yes, I want to activate this scope now to activate the scope and allow clients to obtain leases from it, and then click Next. 10. Click Finish.

11. In the console tree, click the server name, and then click Authorize on the Action menu. Back to the top Troubleshooting The following sections explain how to troubleshoot some of the issues that you may experience when you try to install and configure a Windows Server 2003-based DHCP server in a workgroup. Clients Cannot Obtain an IP Address If a DHCP client does not have a configured IP address, this typically indicates that the client was not able to contact a DHCP server. This can be caused by a network problem, or because the DHCP server is unavailable. If the DHCP server started and other clients can obtain valid addresses, verify that the client has a valid network connection and that all the related client hardware devices (including cables and network adapters) are working properly.

The DHCP Server Is Unavailable If a DHCP server does not provide leased addresses to clients, it is frequently because the DHCP service did not start. If this is the case, the server may not be authorized to operate on the network. If you were previously able to start the DHCP service, but it has since stopped, use Event Viewer to check the System log for any entries that may explain why you cannot start the DHCP service. To restart the DHCP service: 1. Click Start, and then click Run. 2. Type cmd, and then press ENTER. 3. Type net start dhcpserver, and then press ENTER. -or1. Click Start, point to Control Panel, point to Administrative Tools, and then click Computer Management. 2. Expand Services and Applications, and then click Services. 3. Locate and then double-click DHCP Server. 4. Verify that Startup is set to Automatic and that Service Status is set to Started. If not, click Start. 5. Click OK, and then close the Computer Management window.

How to install a active directory in window 2003 server

Creating the Active Directory After you have installed Windows Server 2003 on a stand-alone server, run the Active Directory Wizard to create the new Active Directory forest or domain, and then convert the Windows Server 2003 computer into the first domain controller in the forest. To convert a Windows Server 2003 computer into the first domain controller in the forest, follow these steps: 1. 2. 3. 4. 5. 6. Insert the Windows Server 2003 CD-ROM into your computer's CD-ROM or DVD-ROM drive. Click Start, click Run, and then type dcpromo. Click OK to start the Active Directory Installation Wizard, and then click Next. Click Domain controller for a new domain, and then click Next. Click Domain in a new forest, and then click Next. Specify the full DNS name for the new domain. Note that because this procedure is for a laboratory environment and you are not integrating this environment into your existing DNS infrastructure, you can use something generic, such as mycompany.local, for this setting. Click Next. Accept the default domain NetBIOS name (this is "mycompany" if you used the suggestion in step 6). Click Next. Set the database and log file location to the default setting of the c:\winnt\ntds folder, and then click Next. Set the Sysvol folder location to the default setting of the c:\winnt\sysvol folder, and then click Next. Click Install and configure the DNS server on this computer, and then click Next. Click Permissions compatible only with Windows 2000 or Windows Server 2003 servers or operating systems, and then click Next. Because this is a laboratory environment, leave the password for the Directory Services Restore Mode Administrator blank. Note that in a full production environment, this password is set by using a secure password format. Click Next. Review and confirm the options that you selected, and then click Next. The installation of Active Directory proceeds. Note that this operation may take several minutes. When you are prompted, restart the computer. After the computer restarts, confirm that the Domain Name System (DNS) service location records for the new domain controller have been created. To confirm that the DNS service location records have been created, follow these steps: a. Click Start, point to Administrative Tools, and then click DNS to start the DNS Administrator Console. b. Expand the server name, expand Forward Lookup Zones, and then expand the domain. c. Verify that the _msdcs, _sites, _tcp, and _udp folders are present. These folders and the service location records they contain are critical to Active Directory and Windows Server 2003 operations.

7. 8. 9. 10. 11. 12.

13. 14. 15.

Back to the top

Adding Users and Computers to the Active Directory Domain After the new Active Directory domain is established, create a user account in that domain to use as an administrative account. When that user is added to the appropriate security groups, use that account to add computers to the domain. 1. To create a new user, follow these steps: a. Click Start, point to Administrative Tools, and then click Active Directory Users and Computers to start the Active Directory Users and Computers console. b. Click the domain name that you created, and then expand the contents. c. Right-click Users, point to New, and then click User. d. Type the first name, last name, and user logon name of the new user, and then click Next. e. Type a new password, confirm the password, and then click to select one of the following check boxes:

Users must change password at next logon (recommended for most users) User cannot change password Password never expires Account is disabled

Click Next. f. Review the information that you provided, and if everything is correct, click Finish. 2. After you create the new user, give this user account membership in a group that permits that user to perform administrative tasks. Because this is a laboratory environment that you are in control of, you can give this user account full administrative access by making it a member of the Schema, Enterprise, and Domain administrators groups. To add the account to the Schema, Enterprise, and Domain administrators groups, follow these steps: . On the Active Directory Users and Computers console, right-click the new account that you created, and then click Properties. a. Click the Member Of tab, and then click Add. b. In the Select Groups dialog box, specify a group, and then click OK to add the groups that you want to the list. c. Repeat the selection process for each group in which the user needs account membership. d. Click OK to finish. 3. The final step in this process is to add a member server to the domain. This process also applies to workstations. To add a computer to the domain, follow these steps: . Log on to the computer that you want to add to the domain. a. Right-click My Computer, and then click Properties. b. Click the Computer Name tab, and then click Change. c. In the Computer Name Changes dialog box, click Domain under Member Of, and then type the domain name. Click OK. d. When you are prompted, type the user name and password of the account that you previously created, and then click OK.

A message that welcomes you to the domain is generated. e. Click OK to return to the Computer Name tab, and then click OK to finish. f. Restart the computer if you are prompted to do so. Back to the top Troubleshooting You Cannot Open the Active Directory Snap-ins After you have completed the installation of Active Directory, you may not be able to start the Active Directory Users and Computers snap-in, and you may receive an error message that indicates that no authority can be contacted for authentication. This can occur if DNS is not correctly configured. To resolve this issue, verify that the zones on your DNS server are configured correctly and that your DNS server has authority for the zone that contains the Active Directory domain name. If the zones appear to be correct and the server has authority for the domain, try to start the Active Directory Users and Computers snap-in again. If you receive the same error message, use the DCPROMO utility to remove Active Directory, restart the computer, and then reinstall Active Directory. For additional information about configuring DNS on Windows Server 2003, click the following article numbers to view the articles in the Microsoft Knowledge Base: 323380 How To Configure DNS for Internet Access in Windows Server 2003 324259 How To Configure DNS in a New Workgroup Environment in Windows Server 2003 323418 How To Integrate DNS with an Existing DNS Infrastructure If Active Directory Is Enabled in Windows Server 2003 323417 How To Integrate Windows Server 2003 DNS with an Existing DNS Infrastructure in Windows Server 2003 324260 How To Configure DNS Records for Your Web Site in Windows Server 2003 323445 How To Create a New Zone on a DNS Server in Windows Server 2003 Back to the top Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Você também pode gostar