DHCP server for Windows Server 2012

Source: Internet
Author: User

Today is the deployment of DHCP services, first of all, we first understand the DHCP server

DHCP: Dynamic Host Configuration Protocol, the main function is to dynamically allocate network configuration for the host

DHCP working process:
1. The client issues a DHCP DISCOVERY broadcast packet: Looking for a DHCP server
2. DHCP server response: DHCP offer broadcast package: I can provide services to customers
3. Client sends DHCP Request Broadcast packet: request DHCP service (IP address, gateway, DNS, etc.)
4. DHCP server issued: DHCP ACK broadcast packet: Verify that the client can use the network configuration.

Let's take a look at the DHCP service by two examples

First of all, let's talk about today's lab environment: Server01 do domain controllers, Server02 install Dhcp,server05 as a client, such as

650) this.width=650; "title=" 2015-06-04_154706 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_154706 "src=" http://s3.51cto.com/wyfs02/M01/6D/FC/ Wkiom1vwb3ehhrhmaafhs8lylso645.jpg "" 644 "height=" 375 "/>

Example: Dynamic distribution of network configuration for enterprise intranet employees, the specific information is as follows:

Address range: 192.168.10.10----192.168.10.150
Subnet Mask: 255.255.255.0
Default gateway: 192.168.10.1
Preferred dns:192.168.10.101

Step 1: Install the DHCP component

Open Server Manager, click Add Roles and Features

650) this.width=650; "title=" 2015-06-04_151234 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151234 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrpjchynaagy8ia-pgo790.jpg "" 644 "height=" 434 "/>

Check server information for errors

650) this.width=650; "title=" 2015-06-04_151434 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151434 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcrtd4ivvaag4fmfhl6k958.jpg "" 644 "height=" 456 "/>

Select DHCP Service

650) this.width=650; "title=" 2015-06-04_151548 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151548 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrtybmh9aahvyzkbt24409.jpg "" 644 "height=" 457 "/>

Add the functionality you need

650) this.width=650; "title=" 2015-06-04_151614 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151614 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrtytzknaagfg_6j1jg038.jpg "" 644 "height=" 458 "/>

Complete the installation

650) this.width=650; "title=" 2015-06-04_151631 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151631 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcrtxpq-taafilxljvgm950.jpg "" 644 "height=" 458 "/>

Step 2: Configure the DHCP server

Open Server Manager, click Tools, select DHCP

650) this.width=650; "title=" 2015-06-04_151930 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_151930 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrxcylx2aaiswea3tz8898.jpg "" 644 "height=" 436 "/>

Right-click IPV4, select New Scope

650) this.width=650; "title=" 2015-06-04_152017 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152017 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/wKioL1VwCRXh-_ Veaaig_ms8hcu611.jpg "" 644 "height=" 451 "/>

Enter the scope of the domain name, which is the example of DHCP

650) this.width=650; "title=" 2015-06-04_152050 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152050 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcrxbcrlsaaehifs4oay019.jpg "" 562 "height=" 484 "/>

Enter IP address range, subnet mask, etc.

650) this.width=650; "title=" 2015-06-04_152125 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152125 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrwrhqinaagjg8rur-4928.jpg "" 555 "height=" 484 "/>

Here is the IP address to exclude, we do not fill in the first

650) this.width=650; "title=" 2015-06-04_152149 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152149 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrxxzzxtaafq8swlsyc756.jpg "" 561 "height=" 484 "/>

Choose a lease term, usually 8 days, can also change, see the actual situation

650) this.width=650; "title=" 2015-06-04_152204 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152204 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcracww6waaggugv2hum749.jpg "" 557 "height=" 484 "/>

Here is the query time now configure the default gateway, etc., select Yes, click Next

650) this.width=650; "title=" 2015-06-04_152216 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152216 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrbwchbmaagci58wv2a102.jpg "" 557 "height=" 484 "/>

Enter the default gateway and click Add

650) this.width=650; "title=" 2015-06-04_152234 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152234 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrac70wvaaekvt-nu7o169.jpg "" 561 "height=" 484 "/>

Here is the configuration of preferred DNS, because we are in the domain, so the preferred DNS is added automatically, click Next

650) this.width=650; "title=" 2015-06-04_152248 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152248 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcrbhknu0aaggdeff9ty652.jpg "" 561 "height=" 484 "/>

Here is the configuration of the WINS service, which is a Microsoft private protocol, has not been used, we do not configure it, directly next

650) this.width=650; "title=" 2015-06-04_152303 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152303 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrbwhxcaaaggelhdrpm613.jpg "" 558 "height=" 484 "/>

Here to inquire whether the activation action is, we choose to be

650) this.width=650; "title=" 2015-06-04_152314 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152314 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrbizak4aad6l4dfxwa373.jpg "" 562 "height=" 484 "/>

Configuration complete

650) this.width=650; "title=" 2015-06-04_152326 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152326 "src=" http://s3.51cto.com/wyfs02/M00/6D/F8/ Wkiol1vwcrezevuvaafdx4-zm9q358.jpg "" 560 "height=" 484 "/>

Just configured DHCP, is not working, we need to give him authorization, in order to work properly

Let's give DHCP authorization, right-click the server name, select authorization

650) this.width=650; "title=" 2015-06-04_152400 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152400 "src=" http://s3.51cto.com/wyfs02/M01/6D/F8/ Wkiol1vwcrfr7vt-aaegg9wjina590.jpg "" 644 "height=" 416 "/>

When the authorization is complete, let's test it.

650) this.width=650; "title=" 2015-06-04_152430 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_152430 "src=" http://s3.51cto.com/wyfs02/M02/6D/F8/ Wkiol1vwcrfhs9dkaaduyp9vcfg573.jpg "" 644 "height=" 418 "/>

Test: Does the DHCP server work correctly
The IP Address acquisition method of the server05 is changed to automatically obtain

650) this.width=650; "title=" 2015-06-04_154024 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_154024 "src=" http://s3.51cto.com/wyfs02/M02/6D/FC/ Wkiom1vwb3vshbguaahzoj-xw-8456.jpg "" 432 "height=" 484 "/>

View information such as IP address from the command line

650) this.width=650; "title=" 2015-06-04_154124 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_154124 "src=" http://s3.51cto.com/wyfs02/M00/6D/FC/ Wkiom1vwb3vxhmz2aafkvqwsjiu551.jpg "" 644 "height=" 423 "/>

We found that the IP address of the client is exactly in the address segment we allocated, so the DHCP server's working state is normal

Here's the point, why is the IP address obtained by the client 192.168.10.105?

That's because, before you choose automatic Acquisition, The address of the client is 192.168.10.105, when the DHCP server assigns an IP address when it is automatically acquired, the default IP address assigned to it by the client's most recent use, so his IP address is 192.168.10.105, and if not recently used, it is allocated from the beginning

Below we say the following, the address that you just saw to keep the problem

The address reserved here refers to the reservation of a specific IP address, because there are some machines that cannot change the IP address, in this case, it involves the address reservation

Example: DHCP address retention

Open DHCP, right-click under the name of the server, under IPv4, under Scope, reserved

650) this.width=650; "title=" 2015-06-04_160018 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_160018 "src=" http://s3.51cto.com/wyfs02/M01/6D/FC/ Wkiom1vwb3vg3fyeaafi4pbqpkq993.jpg "" 644 "height=" 418 "/>

Enter reserved name, IP address, MAC address, etc., support protocol Select both, click Add to

650) this.width=650; "title=" 2015-06-04_160255 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_160255 "src=" http://s3.51cto.com/wyfs02/M02/6D/FC/ Wkiom1vwb3uq0taxaae8j-ihmn4563.jpg "" 459 "height=" 484 "/>

New reservation, can be viewed in Server name--ipv4--action-on-hold

650) this.width=650; "title=" 2015-06-04_160326 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" 2015-06-04_160326 "src=" http://s3.51cto.com/wyfs02/M00/6D/FC/ Wkiom1vwb3vcby0raaffxlrrezm544.jpg "" 644 "height=" 420 "/>

After the reservation is created, the reserved IP address will never be assigned by the DHCP server.

Hey, Finish ~byebye!.

DHCP server for Windows Server 2012

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.