Sie sind auf Seite 1von 14

Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.

htm

Installing a DHCP Server


Introduction
To set up the first server of our network, we had to give an IP address to the server. In the same way, each of the client
workstations and servers of the network needs an IP address to participate in the network. If the network is (very) large
and has many compters (workstations and servers), it can take a lot of work, a big waste of time, and multiple expenses for
the company. What if an application can take care of assigning the IP addresses to the computers that need them. That's
the job of a DHCP server.

A DHCP server is an application, or rather a service, that automatically assigns an IP address to an member of the network
that needs an IP address.

In Microsoft Windows Server 2008 R2, a DHCP server is a role. This means that you must first install Microsoft Windows
Server 2008, and then add the DHCP server.

Preparing a DHCP Server


You don't have to use a DHCP server, especially in a small network where you can easily manage the job of assigning and
maintaining IP addresses. If you decide to use a DHCP server, you should (highly recommended) provide a static IP address
to the computer (the DNS server). We have already seen how:

A Range of IP Addresses
When setting up a DHCP server, you can indicate the number of IP addresses that will be necessary for your network. For
example, imagine you are creating a small network for home or a small business. The maximum number of computers you
will possibly use is 10, 20, or 50. The number of available IP addresses goes from one minimum to a maximum. This is
referred to as the range of IP addresses.

As stated already, the range of IP addresses must start from a certain minimum. Let's take an example of 192.168.1.10. If
you know that you will have at most 50 computers in your network, the possible maximum IP address you would need is
192.168.1.60.

Setting Up a DHCP Server


To install the DHCP server after starting Microsoft Windows Server 2008 R2 and logging in with an account that has
administrative rights:

a. In the Initial Configuration Tasks, click Add Roles.


As an alternative, you could click Start -> Administrative Tools. In the left frame, right-click Roles and click Add Roles

1 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

b. In the first page of the wizard, titled Before You Begin, read the text and click Next
c. In the second page of the wizard, click the check box of DHCP Server

d. Click Next

2 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

e. In the third page of the wizard, click Next


f. The 4th page of the wizard shows the IP address that was assigned to the server during primary configuration:

3 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

Click Next

g. The next page shows the web domain and the DNS IP address(es).
You can accept the default preferred to DNS and click Validate

4 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

If you don't like or don't want that IP address, provide your own and click Validate

h. Click Next. The page allows you to specify a WINS server or not:

5 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

i. After specifying the WINS or to skip it, click Next


j. The next page allows you to optionally specify a range of IP addresses.
If you don't want to specify a range of IP addresses (we will not use it for our small network), click Next:

6 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

If you want to specify a range of IP addresses, click Add...


i. In the Scope Name, type a name (anything using letters and digits), such as LocalizedSegment, and press Tab
ii. In the Starting IP Address text box, type the lowest address of the desired range and press Tab
iii. In the Ending IP Address text box, the highest IP address

iv. Click OK

7 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

v. Click Next
The next page asks you whether you want to use IPv6 or not:

8 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

k. Click Next

9 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

l. Click Next.
The next page asks you to specify what account is used to validate the installation

m. Click Next.
The next page shows a summary of your selections before the actual installation (the contents of the dialog box will
depend on whether you provided a range or IP addresses or not):

10 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

n. Click Install.
The installation will start. This may take a few minutes. When the installation is over, click Close:

11 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

Using a DHCP Server


As stated already, the job of the DHCP server is to automatically assign IP addresses to any
member of the network that needs an IP address.

A DHCP server assigns an IP address to a computer when that computer starts. If the computer
has already started and if the computer was previously given an IP address, if that IP address is
out of the range of allowed IP addresses, the computer may loose connected to the server. In this
case, you must change the IP address of the computer.

To manually change the IP address of a computer:

a. Click Start -> Control Panel


b. Click Network and Internet
c. Click Network and Sharing Center
d. Click Local Area Connection (or Network Connection, depending on your computer)
e. Click Properties.
You may be asked to provide a user name and a password. In this case, start with the name of
the computer, followed by \, followed by an account that has local admin rights, and press
Tab. If the account uses a password, type it. When ready, click Yes
f. In the Networking tab of the Local Area Connection Properties, in the checked list box, click
Internet Protocol Version 4 (TCP/IPv4)

12 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

g. Click Properties
h. Click Obtain An IP Address Automatically
i. Click Obtain DNS Server Address Automatically

j. Click Advanced

13 of 14 11/16/2016 3:57 PM
Computer Networkiing - Lesson 8: Installing a DHCP Server http://www.functionx.com/networking/Lesson08.htm

k. Click OK
l. Click OK
m. Click Close
n. Click Close

To automatically change the IP address of a computer:

a. Click Start, type cmd and press Enter


b. Type ipconfig /renew and press Enter

Previous Copyright © 2012 FunctionX, Inc. Next

14 of 14 11/16/2016 3:57 PM

Das könnte Ihnen auch gefallen