Installing the DHCP service

DHCP allows you to control the allocations of addresses from a central location, and therefore we can configure the DHCP server to assign IP addresses to a single or multiple subnets. In addition, the DHCP server can assign another IP configuration to clients automatically, i.e. not only management, but also other network configuration parameters.

 

We will install the DHCP server role on our first server.

Before you begin, you will have to disable the DHCP service of our router.

There should be more than 1 DHCP server in a same network segment. Failure to comply with this may result in one of the main attacks on a LAN.

Remember that on servers we never configure your DHCP, but way static (fixed) IP address.

Here are the steps to configure our DHCP server on the computer Server1:

The fastest way is from the "Server Manager" and then click the "Add roles and features" tab:

It will show us home a screen to add all and each one of the functions:

The first step will be the indicate the type of installation:

Select the first option: "Features or roles-based installation".

In the next step asks us where we want to install the service. In the available server.

Since we can install on your physical computer or a virtual hard disk, select which best suits your installation.

We continue and select the DHCP service, the box that must be activated is "DHCP Server".

An additional screen will indicate if any additional component is necessary.

In this case, is the administrative console of the DHCP service that we need to be installed, so we check the option and continue with the button "Add features".

An additional screen will indicate if any additional component is necessary.

In our case, it is not necessary to install any of these features, so we select "Next".


Now we only have to give the "Install" button to get you started the installation.

Once installation is complete we will only have to close the window and the DHCP service is installed.

In the Server Manager, we can see that added a new tab of the DHCP service and the "tools" tab will show the role of DHCP.

From the two sites we reach the administrative console of this service. But if we use the main console we also complete this service state information selected on the left.

The appearance of the console is as follows:

It appears in green so that the service is running properly on the server.

We could add more by clicking with right button on DHCP servers by selecting the "Add Server" option:

The DHCP server authorization

DHCP authorization is the process of registering the DHCP service in an Active Directory domain, with the purpose of supporting DHCP clients. DHCP authorization is only for DHCP servers running Windows Server 2012, 2008, 2003, and Windows 2000 Active Directory.

To authorize a DHCP server in Active Directory, follow the steps:

  1. Open the DHCP console.
  2. Select "Manage authorized servers…" the IPv4 node.
  3. We add to the DHCP server.
  4. To check it check it holds the green arrow in the icon of the server:

We have installed our server. Now we need to configure it according to the needs of our network.

A scope is a range of valid IP addresses that are available to assign to computers on a subnet (we'll talk about subnets because sometimes will be segments of a larger). Configure a scope on the DHCP Server to determine the Group of IP addresses that is assigned to the customer.

The scopes determine IP addresses that are assigned to clients. We can define and activate a scope until customers can use the DHCP server, i.e., we'll first define it and then activate it.

In addition, you can configure as many scopes on the DHCP server as we want or need in our network, although it will usually be one and we can always expand it if we stay without addresses.

To define a DHCP scope we will initiate the DHCP console and follow the following steps, we'll define a new field of IPv4 (New Scope):

It launches a Wizard for the creation of the area.

To define a DHCP scope we will initiate the DHCP console and follow the steps:

The range of addresses we want to grant is from the 192.168.1.1 to 192.168.1.254. As we see, in the subnet mask we have put (255.255.255.0) that corresponds to the IP addresses of type C as our network.

We can make exclusions. In other words, we can define a range of addresses that shall not be assigned to any computer by the DHCP server. In this case the range of exclusions will be 192.168.1.1 to 192.168.1.20.

We give to next and the window appears to us to set the lease time:

Click next and invites us to define the DHCP options:

At this point we are asked the connection parameters that will be assigned to teams within this area, in particular: Gateway address, DNS, WINS, metric, etc.

Firstly our router address (where we leave to the Internet or to the following hierarchical network):

Second, the server or DNS servers that will need the equipment.

Now it is up to the WINS service. This service is very easy to install but it is usually not install unless you have old equipment that meet only (not for DNS) Netbios name

WINS is the Windows Netbios name resolution service. This service maintains a simple list of names of computers and their IP addresses, was used in the old networks with Windows 95 and Windows NT.

If you have or are going to have the WINS service in our Organization, we put the @ipaddr from our server, then click on "Add" to add it to the list and

Then we continue with the wizard in 'Next' which is activated the scope:

We already have our DHCP server configured and active:

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *