DHCP configuration in Two Systems

Source: Internet
Author: User

We usually use Windows and Linux systems. So how do I configure DHCP in these two systems? The following describes the settings in detail. I hope it will be useful to you.

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,, 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

The files required for configuring DHCP in Linux include/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 in RedHat Linux:

1. Configure the FQDN name of the DHCP server in Linux

  1. option domain-name "clinet.com" 

2. Set the DNS server address

  1. option domain-name-servers; 

3. Set the subnet mask

  1. option subnet-mask; 

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

  1. Subnet netmask;
  2. {
  3. Range; // specify the IP address range of the subnet.
  4. Option broadcast-address; // specify the broadcast address of the subnet.
  5. Option routers; // specify the IP address of the gateway.
  6. }

6. Bind a static IP address to the customer

  1. host clinet{  
  2. hardware ethernet 00:50:BA:CA:2E:02;  
  3. fixed-address;  

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.