Monday, May 18, 2009

Set up a DHCP Server

Original Post

Alright, in this walkthrough we are going to install a DHCP server on Windows 2003. Most of you may already have an DHCP server offered by a small router, or even a larger one, but you might want to use the one built into Windows 2003 because its easier to control one location (in a smaller Active Directory network) with most of the essential services. I am going to install DHCP services on the same system (I used in the other walkthroughs) as my Active Directory, DNS, and Certificate Services.

First things first, if you have any clients using DHCP on there computers and they are getting the addresses from the router, you will need to power off the clients (its easier to do it now, then clean them up later) and then login to your router (or device that is currently distributing DHCP addresses to clients) and disable the DHCP services.
Once you have the DHCP server disabled, we can work on the server.
Go to; Start -> Settings -> Control Panel -> Add / Remove Programs
On the left click Add / Remove Windows Components and in the list of components select ‘Networking Services’ (do not check the checkbox next to it, just select it) and click on ‘Details’. In the new window check the box next to ‘Dynamic Host Configuration Protocol (DHCP)’ and click ‘Ok’ then click on ‘Next’ in the Windows Components Wizard dialog window. Windows 2003 will copy files, you may need your CD in the drive.

Now that DHCP is installed, lets configure it.

Go to; Start -> Programs -> Administrative Tools -> DHCP

You should be faced with the familiar tree view. On your left expand (server name). You may have an red arrow pointing down on the server box icon next to the (server name). This red arrow means the server has not yet been authorized in Active Directory. Lets do that now, right click on (server name) and choose ‘Authorize’. Give the server a few minutes and the DHCP server will be authorized in Active Directory. Close the DHCP Configuration Console and re-open it.

Go to; Start -> Programs -> Administrative Tools -> DHCP

To re-open the console, expand the (server name) and a green arrow should now appear next to the (server name).

Right click on (server name) and choose ‘New Scope’. Click ‘Next’ in the first window, and then you will be asked for a Name and Description for this DHCP Server. In the name you can put anything, but I will use ‘Testing Walkthrough DHCP Server’. I am going to leave the description blank and click ‘Next’.

Now you will need to enter your start IP Address and End IP Address. You can get these from the previous device that did DHCP on your network or enter some new ones. Just make sure that your server is in the same subnet as your new addresses. So, since my server is 192.168.100.2 I will use ‘192.168.100.100’ as the Start IP Address and ‘192.168.100.254’ as the End IP Address.

You can leave the ‘Length’ and ‘Subnet mask’ defaulted and click ‘Next’. You should now be presented with the ‘Add Exclusions’ since we should have none at this stage, choose the defaults (none) and click ‘Next’.

Lease Duration is our next page, leaving this at default is good, so just click ‘Next’. You should now be asked if you would like to Configure DHCP Options. We like options, so click ‘Yes’ I want to configure these options now’ (it’s the default) and click ‘Next’.

Router (Default Gateway) page; Enter the IP Address of your router to get out to the internet, im going to use 192.168.100.1 in this walkthrough. You can get your default gateway from the IP address properties on this server if you have internet access from this machine (you should if you did the other walkthroughs correctly).

You can get your gateway by going to; Start -> Run type in ‘cmd’ and click ‘Ok’. Then at the command line type in ‘ipconfig’ and read the line that says ‘Default Gateway’. Enter it in the Router (Default Gateway) part of the DHCP Options and click ‘Next’.

Now we get to configure our Domain Name and DNS Servers. In the ‘Parent Domain’ box type your domain suffix. We used this in the other walkthroughs about Active Directory and DNS.

Examples would be like…

Mycompany.work

Or

Networkname.home

Now that you put your Parent Domain in the box, enter the DNS servers IP Address in the ‘IP Address’ box and click ‘Add’ or you can type the servers name and click ‘Add’. If you are installing this DHCP server on your Active Directory server we setup in the last walkthroughs then you can just use the servers IP Address as the DNS server to give to clients, since its what should be done anyway, so the clients find the Active Directory server using DNS.

Click ‘Next’ when your done with this page…

The next page contains WINS, we don’t use WINS anymore so just click ‘Next’. (WINS Sucks…..)

Now you will be asked if you want to activate this scope, choose ‘Yes’ and click ‘Next’ and then ‘Finish’.

You may now turn your clients back on, they should now get addresses from the DHCP server running on your Windows 2003 Box.

(You may also need to run ‘ipconfig /renew’ on some clients if they don’t get an address from the server after the reboot.)

5 comments:

  1. Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

    ReplyDelete
  2. Hi there!
    I would like to burn a theme at this forum. There is such a nicey, called HYIP, or High Yield Investment Program. It reminds of ponzy-like structure, but in rare cases one may happen to meet a company that really pays up to 2% daily not on invested money, but from real profits.

    For quite a long time, I earn money with the help of these programs.
    I'm with no money problems now, but there are heights that must be conquered . I make 2G daily, and my first investment was 500 dollars only.
    Right now, I managed to catch a guaranteed variant to make a sharp rise . Visit my blog to get additional info.

    http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

    ReplyDelete