How to set up a DHCP server

  

In a network using the TCP/IP protocol, each computer must have at least one IP address to communicate with other computers. In order to facilitate the unified planning and management of IP addresses in the network, DHCP (Dynamic HostConfigureProtocol) has emerged. This network service facilitates efficient management of client IP addresses in the campus network without the need to manually specify an IP address.

安装HCP Service Installation

牐燚HCP refers to the range of IP addresses controlled by the server. When the client logs in to the server, it can automatically obtain the IP address and subnet mask assigned by the server. . First, the DHCP server must be a computer with the Windows 2000 Server/Advanced Server system installed. Secondly, the computer serving as the DHCP server needs to install the TCP/IP protocol and set a static IP address, subnet mask, default gateway, and so on. By default, DHCP as a service component of Windows2000Server will not be automatically installed by the system, you must add it:

牐1. Click “Start →Set →Control Panel →Add/Remove Program → add /remove Windows components & rdquo;, open the corresponding dialog box.

2. Use the left mouse button to click on the "Network Service" option in the "Components" box of the dialog box. Click the [Details] button to display the dialog with specific content. frame.

牐 3. In the dialog box, select the “Dynamic Host Configuration Protocol (DHCP)” box in the “Sub-components of the Network Service” box, click the [OK] button, and insert the Windows2000 installation CD according to the screen prompts. , copy the required program.

牐 4. After restarting the computer, under “Start → Program & Rarr; Management Tools”, “DHCP” will appear, indicating that the DHCP service is successfully installed.

授权HCP server authorization

Network security management considerations are not directly installed after the DHCP function is installed in Windows2000Server, and must be authorized. Unauthorized servers cannot provide DHCP services. The process of authorizing the DHCP server is as follows:

牐 1. Click “Start → Programs & Rarr; Management Tools & Rarr; DHCP”, open the DHCP console window.

牐 2. In the console window, use the left mouse button to click to select the server name, then right click and select “authorize" in the shortcut menu, which takes a few minutes to wait. Note: If the system does not respond for a long time, you can press F5 or select “Refresh” under “Actions” in the menu tool to refresh the screen, or close the DHCP console first, right click on the server name. . If the "authorization" in the shortcut menu has changed to "Revocation Authorization", the authorization to the DHCP server is successful. At this point, the most obvious mark is that the red arrow in front of the server name turns into a green down arrow. In this way, this authorized DHCP server has the right to assign IP.

牐犔砑覫P address range

After the HCP server is authorized, you need to set the IP address range for it. After setting the IP address range to the DHCP server, when the DHCP client requests an IP address from the DHCP server, the DHCP server dynamically selects an IP address that has not been used from the set IP address range. Adding an IP address range is as follows:

牐1. Click “Start → Programs & Rarr; Management Tools & Rarr; DHCP”, 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 the [Next] button in the window that appears. Enter the relevant information in the dialog box that appears, 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, the window shown in Figure 2 appears.

牐 4. In the window shown in Figure 2, enter the range of IP addresses that need to be excluded. Since there are many network devices in the campus network that need to specify static IP addresses (that is, fixed IP addresses), such as servers, switches, routers, etc., these IP addresses must be excluded from the IP address range of the DHCP server. Otherwise, This can cause a conflict in the IP address and cause a network failure.

牐 5. Click the [Next] button to set the time value of the IP address lease in the “Lease Term” window that appears. Under normal circumstances, if the IP address in the campus network is relatively tight, you can set the lease period to be shorter, and when the IP address is looser, you can set the lease period longer. After setting, click the [Next] button and the “Configure DHCP Options” window appears.

牐 6. In the “Configure DHCP Options” window, if you select “Yes, I want to configure these options now”, this can be the DNS server, default gateway, WINS server address, etc. Make settings; if you select &# no; I want to configure these options later, you can configure them 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 (network address translation server), such as WinRoute, SyGate, etc. . In this way, the IP information obtained by the client from the DHCP server contains the default gateway settings, so that it can access the Internet.

牐 8. Click the [Next] button, set the name of the client DNS domain in this dialog box, and enter the name and IP address of the DNS server. , then click the [Add] button to confirm. Click the [Next] button to perform the relevant settings of the WINS server in the window that appears. Click the [Next] button after setting.

牐 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. , the setting ends. At this point, you can see the scope we just built in the DHCP Manager.

牐犠(14)猓 猓 Your campus network is in the form of a working group. You can select it in the “Configure DHCP Options” window in step 6. “No, I want to configure it later. These options & rdquo;, the setting process skips steps 7 and 8. If your campus network exists in the form of a domain, it is recommended that your network configuration order be: Active Directory Establishment & Rarr; WINS Establishment & Rarr; DNS Establishment & Rarr; DHCP Establishment, which can reduce a lot of trouble.

牐燚HCP Service Test

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

Copyright © Windows knowledge All Rights Reserved