DHCP service settings are used in many local networks. Here we will mainly introduce how to configure the DHCP service on the Server of Windows 2000 Server. We have selected the two most common Server operating systems Windows 2000 Server and Linux as the example to explain, in addition, we will introduce how to configure DHCP on common network devices.
Windows 2000 Server
Windows 2000 Server has made great efforts in DHCP. It not only solves various problems in NT 4.0, but also adds many new features. For example, integration with DNS, enhanced DHCP monitoring and management, DHCP Cluster Server, and DHCP directory authorization.
The following is an instance for configuring the DHCP service in Windows2000:
1. Install the DHCP service. Log on with an administrator account, double-click "Add/delete programs" in the control panel, select "Add/delete Windows components", start the Windows component wizard, and select "Network Services ", click details, select Dynamic Host Allocation Protocol, and click OK to install the DHCP service on the server.
2. To assign an IP address to the client for the newly installed DHCP server, you must first authorize the server in the domain. Log on to the computer with the Administrator account, and open the DHCP console in the "Administrative Tools" menu. In the control tree, right-click the server you want to authorize, and click "authorize" in the pop-up menu ", you can authorize the server.
TIPS: Authorize). This function is very practical and necessary, because any user in the old version of DHCP server can create a DHCP server, the server can also assign an IP address to the user, this may cause address conflicts. In Windows 2000 Server, this problem is effectively solved: Any DHCP Server can assign an IP address to the customer only after being authorized in the directory service, otherwise, even if the server receives a lease request, it cannot assign an IP address to the client.
3. Create and configure the scope. In the control tree, right-click the server to which the address is to be allocated, select "new scope", and in the following wizard, set the domain name, start address of the scope, enter the subnet mask, excluded address or address range, and DHCP lease term information in sequence. The name item is only used as a prompt. You can enter any content. The starting address, ending address, and subnet mask options are available in the IP address range. We can enter 10.0.0.1, 10.20.255.254, 255.0.0.01 respectively ). If necessary, enter the IP address or IP address range to be retained in the following options. The term of lease option can be used to configure the validity period of the IP address allocated by the DHCP server, for example, 8 days. Finally, the DNS and WINS servers are allocated and the scope is activated.
Set IP address range
RedHat Linux
In Linux, the files required for configuring DHCP are/etc/dhcpd. conf,/var/state/dhcp/
Dhcpd. leases, related tools include/etc/rc. d/init. d/dhcpd. The following is an instance for configuring DHCP on RedHat Linux:
1. Configure the FQDN name of the DHCP server
- option domain-name "clinet.com"
2. Set the DNS server address
- option domain-name-servers 10.1.1.1;
3. Set the subnet mask
- option subnet-mask 255.255.0.0;
4. Set the lease time
If the client cannot request a specified lease period, use this parameter to define the lease duration of the address default-lease-time 1200;
If the client can request a lease period, use this command to define the maximum lease time max-lease-time 87600
5. Configure subnet CIDR blocks and related ranges
- Subnet 10.0.0.0 netmask 255.0.0.0;
- {
- Range 10.0.0.2 10.10.10.10; // specify the IP address range of the subnet.
- Option broadcast-address 10.0.0.255; // specify the broadcast address of the subnet.
- Option routers 10.0.0.1; // specify the IP address of the gateway.
- }
6. Bind a static IP address to the customer
- host clinet{
- hardware ethernet 00:50:BA:CA:2E:02;
- fixed-address 10.10.10.10;
- }