How to establish a DHCP server

Source: Internet
Author: User
Tags add get ip range window domain client
Server

In a network that uses the TCP/IP protocol, each computer must have at least one IP address in order to communicate with other computers. In order to facilitate the unified planning and management of IP addresses in the network, DHCP (Dynamic Host Configure Protocol, dynamically hosted Configuration Protocol) came into being. This kind of network service is advantageous to manages the client IP address effectively in the campus network, but does not need one one manually to specify the IP address.

Installation of DHCP service

DHCP refers to a range of IP addresses controlled by the server, which automatically obtains the server-assigned IP address and subnet mask when the client logs on to the server. First, the DHCP server must be a computer with a Windows Server/advanced Server system installed, and secondly, the computer that holds the DHCP server needs to install the TCP/IP protocol and set up a static IP address, subnet mask, default gateway, and so on. By default, DHCP as a service component of Windows Server is not automatically installed by the system and must be added in:

1. Click "start → settings → control Panel → add/Remove Programs → add/Remove Windows Components" to open the corresponding dialog box.

2. Click the "Network Services" item in the Components list box of the selected dialog box with the left mouse button and click the Details button to have a dialog box with specific content.

3. Select Dynamic Host Configuration Protocol (DHCP) in the Sub-component list box of the Network Service in the dialog box, click the OK button, put the Windows 2000 installation CD-ROM on the ScreenTip, and copy the program you want.

4. After restarting the computer, a "DHCP" entry appears under start → programs → administrative tools to indicate that the DHCP service was installed successfully.

Authorization of the DHCP server

For network security management, it is not possible to use the DHCP feature when it is installed in Windows Server, and authorization is required, and an unauthorized server cannot provide the DHCP service. The procedure for authorizing a DHCP server is as follows:

1. Click "Start → program → admin tool →dhcp" to open the DHCP console window.

2. In the console window, click to select the server name with the left mouse button, and then click the right button, select "Authorize" in the shortcut menu, it will take a few minutes of waiting time. Note: If the system does not respond for a long time, you can press the F5 key or click "Refresh" under "Action" in the menu tool to refresh the screen, or close the DHCP console first, and right-click on the server name. If authorization on the shortcut menu has changed to revoke authorization, the authorization to the DHCP server is successful. At this point, the most obvious mark is the server name in front of the red up arrow into the green downward arrow. In this way, this authorized DHCP server has the right to assign IP.

Add IP address range when a DHCP server is authorized, you also need to set an IP address range for it. By setting the range of IP addresses to the DHCP server, when the DHCP client requests an IP address from the DHCP server, the DHCP server selects an IP address that is not yet in use from the range of IP addresses that is set up for dynamic allocation. The actions for adding IP address ranges are as follows:

1. Click the "start → program → administrative tools →dhcp" to open the DHCP console window.

2. Select the DHCP server name, right-click on the server name, select New Scope in the shortcut menu that appears, click Next in the window that appears, enter the relevant information in the dialog box that appears, and click the Next button, as shown in Figure 1.

3. In the window shown in Figure 1, set the items according to the actual situation of your network, and then click the Next button to see another window.

4. In this window, enter the range of IP addresses you want to exclude. Because the campus network has a lot of network devices need to specify static IP address (that is, fixed IP address), such as servers, switches, routers, etc., must be assigned to the IP address from the DHCP server IP address range, otherwise it will cause the conflict of IP address, resulting in network failure.

5. Click Next button and in the Lease duration window that appears, you can set the time value for the IP address lease period. Under normal circumstances, if the campus network in the IP address is more tense, you can set a shorter lease period, and the IP address is more relaxed, you can set a longer lease period. When you are finished setting up, click the Next button and the Configure DHCP Options window appears.

6. In the Configure DHCP Options window, if you choose Yes, I want to configure these options now, you can set up the DNS server, the default gateway, the WINS server address, and so on, and if you choose No, I want to configure these options later, you can configure these features when you need them. Here, we select the former and click the Next button.

7. In the window that appears, often enter the IP address of the router in the network (that is, the IP address of the default gateway) or the IP address of the NAT server (the network Address translation server), such as WinRoute, sygate, etc. In this way, the IP information that the client obtains from the DHCP server contains the default gateway settings, allowing access to the Internet.

8. Click the Next button to set the name of the client DNS domain in this dialog box, and enter the name and IP address of the DNS server. , and then click the Add button to confirm. Click the Next button, and in the window that appears, make the WINS server related settings, and then click Next when you are finished.

9. In the window that appears, select Yes, I want to activate this scope now, click the Next button, click the Finish button in the window that appears, and set the end. At this point, you can see the scope that we just built in DHCP Manager.

Note: If your campus network is in the form of a workgroup, you can select "No, I want to configure these options later" in step 6th of the "Configure DHCP Options" window, and the setup process skips 7th, 8 steps. If your campus network is in the form of a domain, it is recommended that your network configuration order: the establishment of the Active Directory →wins the establishment of the →dns build →dhcp, which can reduce a lot of trouble.

The DHCP service has been tested with the above settings, the DHCP service has been officially started, and we need to test on the client. Simply set the client's IP address option to "Get IP address automatically" and then restart the client. You can see the dynamic IP address that the client is assigned to by typing "Ipconfig/all" in the client's Run dialog box.





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.