Wednesday, December 8, 2010

Installing & Configuring Basic DHCP Server on Windows 2003

Introduction
DHCP (Dynamic Host Configuration Protocol) is a protocol that allows clients on a network to request network configuration settings from a server running the DHCP server service which, in our case, will be Windows Server 2003. Additionally the protocol allows the clients to self-configure those network configuration settings without the intervention of an administrator. Some of the settings that a DHCP server can provide to its clients include the IP addresses for the DNS servers, the IP addresses for the WINS servers, the IP address for the default gateway (usually a router) and, of course, an IP address for the client itself.
This article will discuss and walk you through the steps of installing and configuring DHCP on a Windows Server 2003 member server, specifically focusing on setting up a scope and its accompanying settings. The same configuration can be applied to a standalone server even though the step-by-step details differ slightly. The upcoming 'Advanced DHCP Server Configuration on Windows 2003' article will discuss other DHCP options and features such as superscopes, multicast scopes, dynamic DNS, DHCP Backup and more.
While our articles make use of specific IP addresses and network settings, you can change these settings as needed to make them compatible with your LAN – This won't require you to make changes to your LAN, but you'll need to have a slightly stronger understanding of DHCP and TCP/IP.

Assigning the server a static IP address
Before we install the DHCP server service on Windows Server 2003, we need to assign the Windows server a static IP address. To do this:
1. Go to Start > Control Panel > Network Connections , right-click Local Area Connectionand choose Properties .
2.  When the Local Area Connection Properties window comes up, select Internet Protocol (TCP/IP) and click the Properties button.
3.  When the Internet Protocol (TCP/IP) window comes up, enter an IP address , subnet mask and default gateway IP address that is compatible with your LAN.
We've configured our settings according to our network, as shown below:
4. Enter 192.168.0.252 for the Preferred DNS server and 192.168.1.252 for the Alternate DNS server. The Preferred and Alternate DNS server IP addresses are optional for the functionality of the DHCP server, but we will populate them since you typically would in a real-world network. Usually these fields are populated with the IP addresses of your Active Directory domain controllers.
5. After filling out those fields, click OK and OK to save and close all windows.

Install DHCP server service on Windows Server 2003
Our server now has a static IP address and we are now ready to install the DHCP server service. To do this:
1. Go to Start > Control Panel > Add or Remove Programs .
2. When the Add or Remove Programs window launches, click Add/Remove Windows Components in the left pane.
3. When the Windows Components Wizard comes up, scroll down and highlight Networking Services and then click the Details button.
4. When the Networking Services window comes up, place a check mark next to Dynamic Host Configuration Protocol (DHCP) and click OK and OK again.
Note that, during the install, Windows may generate an error claiming that it could not find a file needed for DHCP installation. If this happens, insert your Windows Server 2003 CD into the server's CD-ROM drive and browse to the i386 directory. The wizard should automatically find the file and allow you to select it. After that, the wizard should resume the installation process.

Configure DHCP on Windows Server 2003
DHCP has now been successfully installed and we are ready to configure it. We will create a new scope and configure some of the scope's options. To begin:
1. Launch the DHCP MMC by going to Start > Administrative Tools > DHCP .
Currently, the DHCP MMC looks empty and the server node in the left pane has a red arrow pointing down. Keep that in mind because it will be significant later on.



2. Right-click the server node in the left pane and choose New Scope . This will launch the New Scope Wizard.
3. On the New Scope Wizard, click Next .
4. Specify a scope name and scope description. For the scope Name , enter “ Building A, Floor 1 .” For the scope Description , enter “ This scope is for Floor 1 of Building A .” Afterwards, click Next .

The scope name can be anything, but we certainly want to name it something that describes the scope's purpose. The scope Description is not required. It is there in case we needed to provide a broader description of the scope.

5. Specify an IP address range and subnet mask. For the Start IP address enter192.168.0.1, for the End IP address enter 192.168.0.254 . Finally, specify a subnet maskof 255.255.255.0 and click Next.
Specifying the IP address range of a scope requires some knowledge of subnetting. Each scope in a DHCP server holds a pool of IP addresses to give out to clients, and the range of IP addresses must be within the allowed range of the subnet (that you specify on the subnet mask field).
For simplicity we entered a classful, class C IP address range from 192.168.0.1 to 192.168.0.254. Notice that the range encompasses the IP address of our server, the DNS servers and the default gateway, meaning that the DHCP server could potentially assign a client an IP address that is already in use! Do not worry -- we will take care of that later.


6. Specify IP addresses to exclude from assignment. For the Start IP address , enter192.168.0.240 and for the End IP address enter 192.168.0.254 , click Add , and then clickNext.


Certain network devices, such as servers, will need statically configured IP addresses. The IP addresses may sometimes be within the range of IP addresses defined for a scope. In those cases, you have to exclude the IP addresses from being assigned out by DHCP.
We have the opportunity here to define those IP addresses that are to be excluded. We specified IP addresses 192.168.0.240 to 192.168.0.254 to ensure we've included our servers plus a few spare IP addresses for future use.

7. Specify the lease duration for the scope. Verify that Days is 8 and click Next.
The lease duration is how long clients should keep their IP addresses before having to renew them.



There are a few considerations at this point. If a short lease duration is configured, clients will be renewing their IP addresses more frequently. The result will be additional network traffic and additional strain on the DHCP server. On the other hand if a long lease duration is configured, IP addresses previously obtained by decommissioned clients would remain leased and unavailable to future clients until the leases either expire or are manually deleted.
Additionally if network changes occur, such as the implementation of a new DNS server, those clients would not receive those updates until their leases expire or the computers are restarted.
As Microsoft states, “lease durations should typically be equal to the average time the computer is connected to the same physical network.” You would typically leave the default lease duration in an environment where computers are rarely moved or replaced, such as a wired network. In an environment where computers are often moved and replaced, such as a wireless network, you would want to specify a short duration since a new wireless client could roam within range at any time.

8. Configure DHCP Options. Make sure “ Yes, I want to configure these settings now ” is selected and click Next to begin configuring DHCP options.
DHCP options are additional settings that the DHCP server can provide to clients when it issues them with IP addresses. These are the other settings that help clients communicate on the network. In the New Scope Wizard we can only configure a few options but from the DHCP MMC we have several more options.
9. Specify the router IP address. Enter 192.168.0.254 as the IP address of the subnet's router, click Add , and then click Next .
The first option we can configure is the IP address for the subnet's router for which this scope is providing IP addresses. Keep in mind that this IP address must be in the same network as the IP addresses in the range that we created earlier.



10. Configure domain name and DNS servers. On the next page, enter “firewall.cx" for the domain name. Then enter 192.168.0.252 for the IP address of a DNS server, click Add , enter 192.168.1.252 as the IP address for another DNS server, and click Add again. When finished, click Next.
If you had a DNS infrastructure in place, you could have simply typed in the fully qualified domain name of the DNS server and clicked Resolve .
The DNS servers will be used by clients primarily for name resolution, but also for other purposes that are beyond the scope of this article. The DNS domain name will be used by clients when registering their hostnames to the DNS zones on the DNS servers (covered in the 'Advanced DHCP Server Configuration on Windows 2003' article).


11. Configure WINS servers. On the next screen, enter 192.168.0.251 as the IP address for the first WINS server, click Add , enter 192.168.1.251 as the IP address for the second WINS server, click Add again, and then click Finish 

12. Finally, the wizard asks whether you want to activate the scope. For now, choose “ No, I will activate this scope later ” and click Next and then Finish to conclude the New Scope Wizard and return to the DHCP MMC.
At this point we almost have a functional DHCP server. Let us go ahead and expand the scope node in the left pane of the DHCP MMC to see the new available nodes:
•  Address Pool – Shows the IP address range the scope offers along with any IP address exclusions.
•  Address Leases – Shows all the leased IP addresses.
•  Reservations – Shows the IP addresses that are reserved. Reservations are made by specifying the MAC address that the server would “listen to” when IP address requests are received by the server. Certain network devices, such as networked printers, are best configured with reserved IP addresses rather than static IP addresses.
•  Scope Options – Shows configured scope options. Some of the visible options now are router, DNS, domain name and WINS options.
•  Server Options – Shows configured server options. This is similar to scope options except that these options are either inherited by all the scopes or overridden by them (covered in 'Advanced DHCP Server Configuration on Windows 2003' article).
Earlier, we only defined exclusions for our servers, router plus a few more spare IP addresses. In case you need to exclude more IP addresses, you can do it at this point by following these instructions:
13. Select and right-click Address Pool and choose New Exclusion Range.
14. When the Add Exclusion window comes up, enter the required range and then click Add. In our example, we've excluded the addition range 192.168.0.230 - 192.168.0.232.



Notice that the server node and scope node still has a red arrow pointing down. These red arrows pointing down mean that the server and scope are not “turned on”.
The concept of “turning on” the scope is called “activating” and the concept of “turning on” the server for DHCP service is called “authorizing”. Security has some influence in the concept of authorizing a DHCP server and, to authorize a DHCP server, you must be a member of the Enterprise Admins Active Directory group.

15. Right-click the server (server001.firewall.cx) and choose Authorize , then right-click the scope (Building A, Floor 1) and choose Activate . If the red arrows remain, refresh the MMC by going to Action > Refresh . 



Congratulations! At this point, you should have a working DHCP server capable of providing IP addresses!




































Friday, December 3, 2010

Upgrading from Windows XP to Windows 7


Introduction

To upgrade your PC from Windows XP to Windows 7, you'll need to select the Custom option duringWindows 7 installation. A custom installation doesn't preserve your programs, files, or settings. It's sometimes called a "clean" installation for that reason.
A custom installation is more complex, and it can sometimes take a couple of hours to complete. We created this five-step tutorial to help guide you through the entire process each step of the way.

What you need

  • An external hard disk. You'll need to move your files off of your PC before you install Windows 7. To make this easier, we recommend a free download called Windows Easy Transfer, which will require an external hard disk. They're readily available at electronics and office supply stores, and they provide an easy way to add additional storage space to your computer.
  • The original installation discs or setup files for the programs that you want to use withWindows 7. You'll need to reinstall your programs by hand after installing Windows 7. When you runWindows Easy Transfer you will get a report that lists the programs that you are currently using withWindows XP.

32-bit or 64-bit: Which version of Windows 7 to install?

Both 32-bit and 64-bit installation discs are included in the Windows 7 package. 64-bit operating systems can handle large amounts of memory—typically 4 gigabytes (GB) of random access memory (RAM) or more—more efficiently than 32-bit operating systems. However, not all computers are 64-bit capable. For more information, see 32-bit and 64-bit Windows: frequently asked questions and 32-bit and 64-bitWindows 7.
You'll probably need the 32-bit version, but to make sure, click Start, right-click My Computer, and then click Properties.
  • If you don't see "x64 Edition" listed, then you're running the 32-bit version of Windows XP. Step 1 of this tutorial will show you how to run the Windows 7 Upgrade Advisor, which can let you know if your computer is capable of running the 64-bit version of Windows 7.
  • If "x64 Edition" is listed under System, you're running the 64-bit version of Windows XP and can run the 64-bit version of Windows 7.
Next: Download and run the Windows 7 Upgrade Advisor.

Step 1: Make sure that your programs and devices will work withWindows 7

To help find potential compatibility problems with your computer's hardware, devices, or programs that might affect installing Windows 7, download and run the free Windows 7 Upgrade Advisor. It provides a report listing any issues that it finds and gives recommendations on what to do before you upgrade to improve your PC's compatibility with Windows 7.

Download and install Windows 7 Upgrade Advisor

Follow the steps below to download the Windows 7 Upgrade Advisor.
  1. Go to the Windows 7 Upgrade Advisor webpage.
  2. Click Download the Windows 7 Upgrade Advisor.
  3. Click Download, and then save the installation file to your PC.
  4. Double-click the installation file saved to your PC.
  5. If you agree to the license terms, click Install.
  6. Click Close.
    If you see a preselected check box, clicking Close will run Windows 7 Upgrade Advisor.

Run Windows 7 Upgrade Advisor

  1. If Windows 7 Upgrade Advisor isn't already running, double-click the Windows 7 Upgrade Advisorshortcut on your PC's desktop.
  2. In the security warning dialog box, click Yes.
  3. Click Start check. The Windows 7 Upgrade Advisor will scan your PC's hardware, devices, and installed software. This might take a few minutes. When finished, it will provide you with a compatibility report that you can print or save for your reference.
  4. Read the report carefully, and make note of any issues that the Upgrade Advisor finds and what the recommended steps are to fix these issues.
  5. If you want to save the report and print or refer to it later, click Save Report, type a name in the File Name box, and then click Save.
  6. Click Close.
You can scan your PC more than once. We recommend running the Windows 7 Upgrade Advisor again after taking any of the recommended steps or making any changes to your PC's hardware, devices, or installed software before upgrading to Windows 7. Be sure to save your updated report.
Next: Use Windows Easy Transfer to save your files and settings.

Step 2: Moving files and settings, and gathering your program discs

We recommend using Windows Easy Transfer, a free download, to help you move your files and settings to another location before you install Windows 7. Then, you can use Windows Easy Transfer again to move your files and settings back to your PC after Windows installation is completed.
If you don't use Windows Easy Transfer, you'll need to copy your files manually to an external location, such as CDs, DVDs, an external hard disk, or a USB flash drive before installing Windows 7, and then move them back after Windows installation is completed.

Windows Easy Transfer creates a single file containing your files and settings. The file could be quite large depending on the amount of data you have, which is why we recommend using an external hard disk.
As you prepare to move your files off of your computer to an external storage device, remember the following:
  • Windows Easy Transfer doesn't move your programs, only your files and settings. You'll need to reinstall your programs by hand after Windows 7 installation is complete. Windows Easy Transfer will provide you with a list of programs that you are currently using with Windows XP.
  • Don't use the File and Settings Transfer Wizard in Windows XP to move your files. It isn't compatible with Windows 7, and if you use it, you won't be able to restore your files in Windows 7. Use WindowsEasy Transfer instead.
  • Windows Easy Transfer can't transfer files from a 64-bit version of Windows to a 32-bit version ofWindows. If you're running a 64-bit version of Windows XP, but you plan to install a 32-bit version ofWindows 7, you'll need to copy your files manually to an external location before installing Windows 7, and then move them back after Windows installation is completed.
  • Windows Easy Transfer moves your music and video files, but doesn't migrate the licenses for content protected by digital rights management (DRM). This means that you'll need to re-obtain rights to DRM‑protected files from the online store that provided them after you finish installing Windows 7 and restoring these files to your computer. For more information, see Step 4: Moving your files and settings back to your computer.
Warning

Warning

Some online stores don't restore rights to their DRM‑protected files. For details about store policies, refer to your store's customer support or Help information. If your music or video was obtained from a store that's no longer in business, you won't be able to restore your rights to that content.
You'll also need Windows XP Service Pack 2 or higher. If you're not sure of what you have, click Start, right-click My Computer, and then click Properties. Under System, if you see "Service Pack 2" or "Service Pack 3," you can use Windows Easy Transfer. If you're not running Service Pack 2 or 3, go to the Service Pack Center to update your PC.

Download and install Windows Easy Transfer

  1. Download Windows Easy Transfer from the Windows website. If you're running a 32-bit version ofWindows XP, under For Windows XP, click Download 32-bit. If you're running a 64-bit version ofWindows XP, click Download 64-bit.
  2. On the Microsoft Download Center webpage, click Download, and then click Run.
  3. In the Security Warning dialog box, click Run.
  4. In the Software Update Installation Wizard, click Next.
  5. If you agree to the license terms, select I Agree, and then click Next.
  6. After installation is complete, click Finish.

Open and run Windows Easy Transfer to save your files and settings

  1. Make sure your external hard disk or other storage device is connected to your computer.
  2. Click Start, click All Programs, and then click Windows Easy Transfer for Windows 7.
  3. Click Next.
  4. Select An external hard disk or USB flash drive.
  5. Click This is my old computer, and then wait while Windows Easy Transfer scans the computer.
  6. Clear the check boxes next to any user accounts that you don't want to transfer data from, and then click Next.
  7. Enter and retype a password, and then write it down and keep it in a safe place; or leave the boxes blank, and then click Save.
  8. Browse to the external hard disk or other storage device where you want to save your Easy Transfer file, and then click Save.
    Warning

    Warning

    You must save the Easy Transfer file to your external hard disk or other storage device, and not to the default location My Computer. If you don't save the Easy Transfer file to your external hard disk, the file you just created will be deleted during the custom installation of Windows 7.
  9. Windows Easy Transfer will begin saving your files and settings. Do not use your computer during this time.
  10. When you see the message These files and settings have been saved for your transfer, click Next.
    Windows Easy Transfer displays the file name and location of the Easy Transfer file you just created. Write down the file name and location so you can easily find it when you're ready to transfer files toWindows 7.
  11. Click Next, and then click Close.
  12. Ensure that the file is saved to your external hard disk or storage device, and then disconnect the device from your computer.

Gather your program discs and setup files

It's important to remember that the Custom installation option doesn't preserve any of your programs, so you'll need to reinstall the programs that you want to use in Windows 7.
  • Make sure you have the installation discs for the programs you want to keep using in Windows 7.
  • You might have downloaded some programs from the Internet. If you still have the installation files on your computer (often called setup.exe, install.exe, or similar), copy those setup files to your external hard disk as well. If you don't have the installation files, you'll need to download them again afterWindows 7 installation is complete.
  • If you're running a 64-bit version of Windows and plan to install a 32-bit version of Windows 7, programs that were designed to run only on a 64-bit operating system might not work. Check the software manufacturer's website for more information, or go to the Windows 7 Compatibility Center on the Microsoft website. You can search the Compatibility Center for product names or browse many different categories of hardware and software tested to be compatible with both 32-bit and 64-bit versions of Windows 7.
Next: Install Windows 7 using the Custom option.

Step 3: Installing Windows 7

When you choose the Custom option during installation, you install a new copy of Windows on your PC.


Note

Note

Formatting your hard disk during Windows 7 installation isn't necessary. If you want to format your hard disk, and you're using an upgrade version of Windows 7, don't use a program from another software manufacturer to reformat your hard disk prior to installing Windows 7. Instead, start your PC using the Windows 7 upgrade installation disc or a USB flash drive, click Custom (advanced), and then click Drive options (advanced).

Before you begin

  • Connect your PC to the Internet so you can get installation updates during the installation process. (If you don't have an Internet connection, you can still install Windows 7.)
  • Update your antivirus program, run it, and then turn it off. After you install Windows 7, remember to turn the antivirus program back on, or install new antivirus software that works with Windows 7.
  • If you have a Windows 7 installation package, choose either the 32-bit or 64-bit Windows 7 installation disc, depending on whether you want to install the 32-bit or 64-bit version of Windows 7.
  • If you want to install a 64-bit version of Windows 7 on a PC running a 32-bit version of Windows XP, follow the instructions in "To install a 64-bit version of Windows 7 on a computer running a 32-bit version of Windows XP" at the bottom of the page. For more information, see 32-bit and 64-bitWindows: frequently asked questions.
  • Find your 25-character Windows product key. You can find it on the installation disc holder inside theWindows package—or in a confirmation e‑mail if you purchased and downloaded Windows 7 online.

Perform a Custom installation of Windows 7

  1. With your computer on and Windows XP running, do one of the following:
    • If you've downloaded Windows 7, browse to the installation file you downloaded, and then double-click it (often identified as an Application file under the Type column).
    • If you have a Windows 7 installation disc, insert the disc into your computer. Setup should start automatically. If it doesn't, click Start, click My Computer, open the Windows 7 installation disc on your DVD drive, and then double-click setup.exe.
    • If you've downloaded Windows 7 installation files onto a USB flash drive, insert the drive into your computer. Setup should start automatically. If it doesn't, click the Start button, click Computer, double-click the drive, and then double-click setup.exe.
  2. On the Install Windows page, click Install now.
  3. On the Get important updates for installation page, we recommend getting the latest updates to help ensure a successful installation, and to help protect your computer against security threats. Your computer will need to be connected to the Internet during Windows 7 installation to get these updates.
  4. On the Please read the license terms page, if you accept the license terms, click I accept the license terms, and then click Next.
  5. On the Which type of installation do you want? page, click Custom.
  6. Choose the partition containing Windows XP (this is often the computer's C: drive), and then clickNext. (Do not select your external USB hard drive.)
  7. In the Windows.old dialog box, click OK.
  8. Follow the instructions to finish installing Windows 7, which include naming your computer and setting up an initial user account. You can use the same names that you used in Windows XP, or choose new ones.
Next: Move your files and settings back to your computer.