How to set up a DHCP server under Win2000 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 Host Configure Protocol) 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.

Installation of DHCP Service


DHCP 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 assigned by the server. Mask. First, the DHCP server must be a computer with the Windows 2000 Server/Advanced Server system installed. Second, the computer acting as the DHCP server needs to install the TCP/IP protocol and set a static IP address, subnet mask, default gateway, etc. content. By default, DHCP as a service component of Windows 2000 Server will not be automatically installed by the system, you must add it:

1. Click "Start → Settings → Control Panel → Add /Remove Programs → Add /Delete Windows Components", open the corresponding dialog box.



2. Click the "Network Service" item in the "Components" list box of the selected dialog box with the left mouse button and click the [Details] button. A dialog with specific content.

3. In the dialog box "Network Services Subcomponents" list box, select "Dynamic Host Configuration Protocol (DHCP)", click the [OK] button, and follow the on-screen instructions to insert the Windows 2000 installation CD. Copy the required program.

4. After restarting the computer, the “DHCP” item will appear under “Start → Program → Administrative Tools”, indicating that the DHCP service is successfully installed.

Authorization of DHCP Server


For the sake of network security management, it is not directly installed after installing DHCP function in Windows 2000 Server. For authorized operations, the server that is not authorized to operate cannot provide DHCP service. The process of authorizing the operation of the DHCP server is as follows:

1. Click “Start → Programs → Administrative Tools → DHCP” to open the DHCP console window.

2. In the console window, click the selected server name with the left mouse button, then right click and select "Authorize" in the shortcut menu. It takes a few minutes to wait. Note: If the system does not respond for a long time, you can press the F5 key or select “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" in the shortcut menu has changed to "Revocation Authorization", it means that 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.

to add the IP address range


After the DHCP server is authorized, it is also required to set the IP address range. 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. The operation of adding an IP address range is as follows:

1. Click "Start → Programs → 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 the [Next] button in the window that appears, in the event of Enter the relevant information in the dialog box 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. The window shown in Figure 2.

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 and 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 "Configuring DHCP Options" window, if you select "Yes, I want to configure these options now," at this time can be a DNS server, default gateway, WINS server addresses and other settings; if you choose "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 network router IP address (i.e., IP address of the default gateway) server or NAT (network address translation server) IP address, such as WinRoute, SyGate like. 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, and the setting ends. . At this point, you can see the scope we just built in the DHCP Manager.

Note: If your campus network exists in the form of a workgroup, you can select "No, I want to configure these options later" in the "Configure DHCP Options" window in step 6. The setup 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 → WINS Establishment → DNS Establishment → DHCP Establishment, which can reduce a lot of trouble.

test


DHCP services through these settings, DHCP service has been officially launched, we need to test it on the client. Simply set the client's IP address option to "Obtain an IP address automatically" and then restart the client. Type "Ipconfig/all" in the client's Run dialog to see the dynamic IP address assigned to the client.

Copyright © Windows knowledge All Rights Reserved