Configure DHCP on Windows Server 2008


Configure DHCP on Windows Server 2008

How to Configure a DHCP IPv4 Scope

I am going to walk you through configuring an IPv4 scope for the following IP range and settings:
192.168.10.2 – 192.168.10.230
Subnet Mask: 255.255.255.0
Exclusions: 192.168.10.200 – 192.168.10.230
Reservation: 1 client computer at 192.168.10.190
DNS: 192.168.10.200
Gateway: 192.168.10.1
Least Duration: 20 Days
Some of these are standard fare and others will be done under options. Let’s go ahead and start.
1. Go to Start, Administrative Tools, and click on DHCP
Configure DHCP on Windows Server 2008 - 1
2. Expand out the server and right click on IPv4, then left click on New Scope
Configure DHCP on Windows Server 2008 - 2
3. The New Scope Wizard starts up, go ahead and click Next
Configure DHCP on Windows Server 2008 - 3
4. Go ahead and name your scope. For this demo I am going to call it DHCPdemo and leave the Description blank. Fill in your name for the scope and click on Next
Configure DHCP on Windows Server 2008 - 4
5. Now we are going to enter the IP range we are assigning to the scope.
In the Start IP address: I am going to place 192.168.10.2 and in the End IP address: I will place192.168.10.230.
For the subnet mask we are going to use 255.255.255.0, and we can enter this either by using the length 24 or placing the 255.255.255.0 in the fields.
Once you fill in your information click Next
Configure DHCP on Windows Server 2008 - 5
6. Now we are going to setup an exclusion range by entering the Start IP address: as192.168.10.200 and then in the End IP address: place 192.168.10.230.
After that click Add to place your exclusion range in place.
Configure DHCP on Windows Server 2008 - 6
7. Once the exclude range is in place then click Next
Configure DHCP on Windows Server 2008 - 7
8. The Lease Duration window is now up and we are going to change this to 20 days.
You of course should change this to suit your environment, if you have a lot of mobile users you will want to do shorter lease duration, as you will want IPs to free up quicker as the users come and go. After you set your lease time click Next
Configure DHCP on Windows Server 2008 - 8
9. The wizard will now ask if you want to configure DHCP options. There are quite a few options you can send to the DHCP clients, but there are a couple of major ones that make life simple, so select Yes, I want to configure these options now and then click Next
Configure DHCP on Windows Server 2008 - 9
10. The first option to configure is Router (Default Gateway), and we will put in the Router gateway for this subnet 192.168.10.1, click Add and then click Next.
Configure DHCP on Windows Server 2008 - 10
11. Now we will setup the DNS Server; you can leave the Parent Domain blank and then fill in the DNS IP address of 192.168.10.200 and then click Add, then click Next
NOTE: If you followed the Install DHCP Role article there will already be a DNS server in place. I have removed that so I can demonstrate adding it here.
Configure DHCP on Windows Server 2008 - 11
12. If you need WINS Servers then place the information on this next screen and click on Next
Configure DHCP on Windows Server 2008 - 12
13. The next screen asks you if you want to activate the scope. I am going to go ahead and selectYes, but choose what works for you and click then on Next
Configure DHCP on Windows Server 2008 - 13
14. You have successfully completed the New Scope wizard! Click Finish
Configure DHCP on Windows Server 2008 - 14
That’s it, now that you have configured the DHCP scope you should see it in the DHCP Manager:
Configure DHCP on Windows Server 2008 - 15

How toSetup DHCP Reservation

The one thing we did not do in the wizard is setup our DHCP reservation. As I mentioned above, a reservation guarantees the same IP address to a client using their MAC address as the identifier.
I setup an XP client and used the IPconfig /all cmd to find its MAC address of 00-03-FF-2F-95-0C. You can also see from the screen shot that the XP machine was serviced by our DHCP server and received the very first address of 192.168.10.2, we are going to change this with a reservation to receive 192.168.10.1
Configure DHCP on Windows Server 2008 - 16
Now let’s setup the DHCP reservation.
1. Go into DHCP Manager and expand the scope out, then right click on Reservations and left click on New Reservations…
Configure DHCP on Windows Server 2008 - 17
2. In the New Reservation window input the following information then click Add:
Name: Dave’s Test Client
IP Address: 192.168.10.190
MAC Address: 00-03-FF-2F-95-0C
Description: This Space Blank or whatever you want
Note: please use your own data, don’t use the above MAC and expect this to work.
Configure DHCP on Windows Server 2008 - 18
3. In DHCP Manager you now see your reservation under Reservations
Configure DHCP on Windows Server 2008 - 19
4. Now let’s test this on the client by typing Ipconfig /release, then Ipconfig/renew and you will now see that the client received the reserved IP of 192.168.10.190.
Configure DHCP on Windows Server 2008 - 20
Again you would use this for clients or devices that you always wanted to hand out the same IP to, but still mange through DHCP.