How to set up a DHCP server in windows server2016

   DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)是一个局域网的网络协议。指的是由服务器控制一段IP地址范围,客户机登录服务器时就可以自动获得服务器分配的IP地址和子网掩码。DHCP服务器的搭建减少了管理员的工作量,避免了IP地址输入错误的可能,可以避免IP地址冲突,提供了IP地址的利用率,同时也方便了客户端的配置,下面我们就来在Windows server2016上面搭建DHCP服务器。

    准备环境:通过虚拟机打开一台win10客户端,和一台Windows server2016服务器系统,方便我们实验【(VMware14虚拟机下载链接:https://pan.baidu.com/s/1F_DCdgc9l3Qw6ZDNrulh_A  提取码:h5h9)(win10 企业版下载连接:https://pan.baidu.com/s/1EuAQ9RfJ_bThggXwtaG24A  提取码:2u80)(win10 激活软件下载连接:https://pan.baidu.com/s/19ryTFUxJ162kpjFe3HNkiQ  提取码:zuva)(Windows server 2016下载连接:http://www.downcc.com/soft/359376.html)】

I. First, let's open the virtual machine (vmware14), start win10 client and server systems Windows server2016, the client and server systems all check card mode for the host-only mode (Figure 1), and the virtual machine. " virtual machine network editor using a local DHCP server to assign IP addresses "inside" to the virtual machine "checked off (Figure 2 and 3), as if doing so would affect the results, leading the experiment can not be completed.
How to set up a DHCP server in windows server2016
(FIG. 1, the virtual machine system to open the same manner as win10 client selects only host mode)
How to set up a DHCP server in windows server2016
(FIG. 2)
How to set up a DHCP server in windows server2016
(FIG. 3)
Second, the client determines win10 IPV4 network adapter attribute automatically obtain an IP address in a state, as shown:
How to set up a DHCP server in windows server2016
three, Back to Windows server 2016 server system settings add the DHCP server, add a DHCP server: click the bottom left corner of the desktop start menu button, click server Manager (Figure 1), click on the dashboard, select the Add roles and features (Figure 2), Add roles and functions eject guide, according to the installation wizard functionality (3 to 12):
How to set up a DHCP server in windows server2016
(1)
How to set up a DHCP server in windows server2016
(2)
How to set up a DHCP server in windows server2016
(3)
How to set up a DHCP server in windows server2016
(4)
How to set up a DHCP server in windows server2016
(5)
How to set up a DHCP server in windows server2016
(6)
How to set up a DHCP server in windows server2016
(7)
How to set up a DHCP server in windows server2016
(FIG. 8)
How to set up a DHCP server in windows server2016
(9)
How to set up a DHCP server in windows server2016
(10)
How to set up a DHCP server in windows server2016
(11)
How to set up a DHCP server in windows server2016
(12)
Fourth, after installing DHCP, turn off the server Manager, return to the desktop, click on the lower left corner of the desktop start menu, find the windows management tool, click to find the nearest Add the DHCP icon, click open (Figure):
How to set up a DHCP server in windows server2016
Fifth, the DHCP window is open, we can start setting up DHCP. First, click on the left side of our host name (that is, our server), click open we can see the "IPV4 / IPV6" DHCP management, there we want to set up a "IPV4", right-click "IPV4", click on "New scope" we have to create an address pool, as shown:
How to set up a DHCP server in windows server2016
six, click on the "New scope", the setup wizard will pop up, we have to follow the step by step guide to set our DHCP.
1, after the jump setup wizard can directly click Next, as shown:
How to set up a DHCP server in windows server2016
2, this time to give us a look at the scope input name (set your own), and click Next, as shown:
How to set up a DHCP server in windows server2016
3, the following is necessary to set the IP address "start address" and "end address", and note the IP address inside this segment to fill in the IP address we just set in the "network and sharing Center" to be in the same segment, "since we entered start address "and the" end address "is the address of the middle of this scope can be assigned to the address of the client, input is completed, following the" length "and" Subnet Mask "will pop up, and click Next, as Figure:
How to set up a DHCP server in windows server2016
4, the following is to be set excluded IP address range, in the workplace in some of the IP address is to be occupied, we set them excluded so this part of the occupied address will not be assigned to go out, to avoid IP address conflict, and after a good input click Add, will be added into it, and then click Next, as shown:
How to set up a DHCP server in windows server2016
5, the following will set the duration of the lease, no special requirements of a The default unchanged, click Next, as shown:
How to set up a DHCP server in windows server2016
6, then the following is to be set up DHCP configuration options, it is to set the IP address (default gateway), DNS server and WINS settings, select Yes, click Next, as Figure:,
How to set up a DHCP server in windows server2016
7, first set up a gateway, the gateway is we can set their own (in the same network segment can not be set up to set the assigned address), click Add after entering, click Next, as :
How to set up a DHCP server in windows server2016
8, a DNS server settings below, "parent domain" and "server name" Do not fill in, because we do not set up DNS, "IP address" Enter the server set a static address, then help us build the DNS settings After entering the address click the right of the "Add" this time will pop up verification box, click on the authentication complete "yes" to put IP address added to it, and this time we click Next, make the following settings, as shown:
How to set up a DHCP server in windows server2016
9, the following is WINS settings , we would not have this set up, you can just click Next, as shown:
How to set up a DHCP server in windows server2016
10, the last is to activate a scope, we setup is complete is to use this scope, the default selection "Yes", do not change, just click Next . Figure:
How to set up a DHCP server in windows server2016
11, complete the setup, click Finish, so we completed a scoping settings, as shown:
How to set up a DHCP server in windows server2016
12, after the scope is created can be viewed in DHCP Manager, our address pool, address and other data on rent It will be shown on the Manager, as shown:
How to set up a DHCP server in windows server2016
13, we can click on the address pool view information, address the scope of our distribution set, exclude the address range are on the inside, as shown:
How to set up a DHCP server in windows server2016
14, we can see the next address lease data, click on, because there is no connection to the server so clients do not have any information (as shown):
How to set up a DHCP server in windows server2016
15, we can see the "reserved" option, there is no data, this means that retain the option to specify the IP specified client use (the client must connected to the network segment), because there is no set, there is no data, as shown:
How to set up a DHCP server in windows server2016
16, "scope options" in our set of "router (default gateway)" and "DNS server" address, as shown:
How to set up a DHCP server in windows server2016
17, strategy we did not do, and there is no data, it does not matter.
18, take a look at the following DHCP in the "screening item", "Filter item" in the "Allow" "Deny" two options, namely black and white list, "Allow" to allow only those that allow the client to obtain an address, "reject" those that refuse to get the address of the client, the latter need to be added on their own, (adding method, right-click "reject" option, click enable, and then right-click, click New filters added to fill it. "allow" the same is true operation, MCA address how to obtain, the following will say), as shown:
How to set up a DHCP server in windows server2016
How to set up a DHCP server in windows server2016
seven, this time we have established a good scope, and the server is turned on, commonly used options are also introduced, here we come back to the client for verification, can I get the address, open the virtual machine win10 client, click on the lower left corner of the left "search web and Windows" type "cmd" hit enter, open a command prompt, as:
How to set up a DHCP server in windows server2016
eight input ipconfig / renew at the command prompt ( get the new IP address), this time we'll get to find the IP address of the server is what we have just set above DHCP server Addresses assigned address, including the subnet mask, we set the default gateway, as shown:
How to set up a DHCP server in windows server2016
Nine, the above command we get to the IP address, default gateway, DNS address but do not see that we set up, this time we address with another command ipconfig / all (to see all IP addresses) to view the DNS address, etc., this is what we have just set the DNS address on the server, as shown:
How to set up a DHCP server in windows server2016
Ten, thus successfully set up the DHCP server, we return to the virtual server system, open the DHCP management tool, this is when we can see the "Address to rent" list have a client access that we win10 client connections address (FIG. 1). Let us look at the DHCP server settings to specify the client to specify the IP address, click the Hold icon, right-click, and then click the "new reservation", set the pop-up window, enter a reserved name, IP address, MAC address (MAC address: Click the server start menu bar, right-click, click run, type cmd to open a command prompt, enter the command arp -a, carriage returns, this time you can see the connection to this server to a client, the physical path is the client's MAC address, and find replication can (FIG. 2), this method can only see through this connection servers client MAC address, the MAC address of another view of a method is to enable prompt input command in the client ipconfig / all, enter, view the physical path is the MAC address of the client), you can click Add, (FIG. 3):
How to set up a DHCP server in windows server2016
(1)
How to set up a DHCP server in windows server2016
(FIG. 2)
How to set up a DHCP server in windows server2016
(FIG. 3)
XI, here we add to verify whether the address was successfully reserved, open client command prompt, type ipconfig / release (release the current IP address), continue to enter ipconfig / renew to obtain the new address (as shown), We set it is reserved addresses, so that our experiment will be successful. (Filter "Allow" and "reject" I will not, for example, and get to the other side of the MAC address, the new input on it, you can see for yourself).
How to set up a DHCP server in windows server2016

This completes the set up at the windows server2016 DHCP server, hoping to help to you, and then will update the DNS server set up in windows server2016, then we need to be concerned about! ! !

Guess you like

Origin blog.51cto.com/14473285/2425449