DHCP Server Configuration and Management

DHCP Server Installation on Windows Server 2003

To install a DHCP server on a Windows 2003 Server, follow these steps:

  1. Go to Start / Administrative Tools / Manage Your Server.
  2. Select Add/Remove Roles.
  3. Follow the wizard, clicking Next.
  4. Select DHCP Server from the list of available roles.
  5. Click Next and follow the prompts to complete the installation.

DHCP Server Backup

The DHCP server database is automatically backed up by default. You do not need to manually enable backups.

Default Backup Location

The default backup location for the DHCP server database is the DHCP folder in the root directory of the drive where the operating system is installed (e.g., C:\DHCP).

DHCP and Static IP Addresses

If you have a network printer or other device with a static IP address, you should exclude that IP address from the DHCP server’s IP address range to avoid IP address conflicts.

Non-Routable Packet Types

Routers typically do not route broadcast packets. To route broadcast packets, you would need to convert them to unicast packets.

TCP/IP Configuration for Laptops

To configure a laptop to work on both networks with and without a DHCP server, set the TCP/IP configuration to Obtain an IP address automatically.

DHCP Server Protocol and Ports

DHCP servers use the UDP protocol and ports 67 and 68.

Forcing a DHCP Client to Use a Specific DHCP Server

It is not possible to force a DHCP client to use a specific DHCP server without configuring DHCP options or using other network management techniques.

Associating a Class to an Interface

To associate a class to an interface, use the following command:

ipconfig /setclassid <interface name> <class name>

Defining User Classes

To define user classes in DHCP:

  1. Right-click on the DHCP server in the DHCP console.
  2. Select Define User Classes.
  3. You can then add, modify, or remove DHCP user classes.

User Class Scenario

User classes can be used in scenarios where you want to apply different DHCP settings to different types of devices or users. For example, you could create a user class for laptops and another for desktops, and assign different IP address ranges or DNS server settings to each class.

DHCP Relay Agent

Purpose of a Relay Agent

A DHCP relay agent is used to forward DHCP requests from clients on a subnet that does not have a DHCP server to a DHCP server on another subnet. This is necessary because DHCP requests are typically broadcast messages, and routers do not forward broadcast messages by default.

Relay Agent Configuration

To configure a DHCP relay agent on a Windows Server:

  1. Go to Start / All Programs / Administrative Tools / Routing and Remote Access.
  2. Expand the IP Routing node in the console tree.
  3. Right-click on the DHCP Relay Agent node and select Properties.
  4. On the General tab, enter the IP addresses of the DHCP servers that you want the relay agent to forward requests to.
  5. Click OK.

DHCP Audit Log

Enabling the Audit Log

To enable the DHCP audit log:

  1. Right-click on the DHCP server in the DHCP console.
  2. Select Properties.
  3. Go to the General tab.
  4. Check the Enable DHCP audit logging box.
  5. Click OK.

Audit Log Format

The DHCP audit log is a text file that contains a record of all DHCP server activity. Each record in the log corresponds to a specific type of event, and each event has a corresponding code. The log file is located in the %systemroot%\System32\dhcp\ directory and has a name like dhcpSrvLog.log.

IP Address 169.234.x.x

An IP address in the range 169.254.x.x indicates that a device has been assigned an Automatic Private IP Addressing (APIPA) address. This happens when a device is configured to obtain an IP address automatically via DHCP, but it is unable to contact a DHCP server.

DHCP Lease Renewal

A DHCP client will attempt to renew its IP address lease before the lease expires. The renewal process typically starts when 50% of the lease time has elapsed. If the renewal attempt fails, the client will try again at 87.5% of the lease time. If the renewal attempt still fails, the client will broadcast a DHCP request to any available DHCP server. If a DHCP server responds, the client will obtain a new IP address lease. If no DHCP server responds, the client’s IP address lease will expire, and it will lose its network connection.

DHCP Server Authorization

After installing the DHCP server role and configuring scopes, reservations, and other settings, you need to authorize the DHCP server in Active Directory. This allows the DHCP server to dynamically assign IP addresses to clients on the network.

DHCP Servers and Domain Controllers

DHCP servers do not need to be domain controllers. Any server, including non-Windows servers, can be configured as a DHCP server as long as it has the necessary DHCP server software installed and is properly configured.

Defining the Default Gateway for DHCP Clients

To define the default gateway for DHCP clients:

  1. Open the DHCP console.
  2. Right-click on the DHCP server and select Set Predefined Options.
  3. Click Add.
  4. In the Name field, enter “Default Gateway”.
  5. In the Data type field, select “IP Address”.
  6. In the IP address field, enter the IP address of the default gateway (router).
  7. Click OK.

DHCP Discover and DHCP Request

A DHCP Discover message is a broadcast message sent by a client when it first boots up and needs to obtain an IP address. A DHCP Request message is a unicast or broadcast message sent by a client in response to a DHCP Offer message from a DHCP server. The client selects an IP address from the DHCP Offer message and sends a DHCP Request message to the server to request that IP address.

Multicast Address Range

The multicast address range is from 224.0.0.0 to 239.255.255.255, excluding the reserved range 239.192.0.0/14.

Superscopes

A superscope is a grouping of multiple scopes that allows you to support more than one logical subnet on the same physical network. Each scope within a superscope has its own settings. Superscopes are useful for extending a network address space or for migrating machines from one subnet to another.

Reserving a DHCP IP Address

To reserve a DHCP IP address for a specific device, you can create a DHCP reservation. A reservation maps a device’s MAC address to a specific IP address. This ensures that the device always receives the same IP address from the DHCP server.

Backup Types

Differential Backup

A differential backup copies only the files that have been created or modified since the last full backup. Files that have not been changed are not marked as backed up. To restore data from a differential backup, you need the last full backup and the last differential backup.

Incremental Backup

An incremental backup copies only the files that have been created or modified since the last full or incremental backup. Files that have not been changed are marked as backed up. To restore data from an incremental backup, you need the last full backup and all subsequent incremental backups.

Full Backup

A full backup copies all files and marks them as backed up. To restore data from a full backup, you only need the most recent full backup.

NTFS Permissions

Inheritance

By default, permissions on a folder are inherited by all files and subfolders within that folder. If you modify permissions on a folder, all existing and future child items are affected. When you create a new folder or file within an existing folder, the new item inherits the permissions of its parent folder. To prevent inheritance, you can disable it on a folder or file. When you disable inheritance, you have two options:

  • Copy inherited permissions as explicit permissions: This allows you to modify the inherited permissions on the child item without affecting the parent folder.
  • Remove all inherited permissions: This removes all inherited permissions from the child item, and you must then define explicit permissions for it.

Permissions for Multiple Users

If you grant NTFS permissions to both an individual user account and a group that the user belongs to, the user effectively has multiple permissions assigned. NTFS uses rules to determine the user’s effective permissions based on the combination of individual and group permissions.

NTFS Permission Types

  • Full Control: Allows the user to change permissions, take ownership, and perform all other actions allowed by NTFS permissions.
  • Modify: Allows the user to modify the file or folder, including its contents, and to change attributes.
  • Read & Execute: Allows the user to read the file or folder and to execute programs within it.
  • Write: Allows the user to create new files and folders, modify existing files and folders, and change attributes.
  • Read: Allows the user to read the file or folder and view its attributes, owner, and permissions.

NTFS Overview

NTFS (New Technology File System) is a file system used in Windows operating systems. It provides features such as:

  • Reliability: NTFS uses a journaling system and checkpoints to maintain the integrity of the file system.
  • Security: NTFS supports file and folder permissions, encryption (EFS), and access control lists (ACLs).
  • Multiple User Support: NTFS allows you to assign different permissions to different users and groups.
  • Scalability: NTFS supports large volumes and files.

NTFS Reliability

NTFS uses a transaction log and checkpoints to ensure that the file system remains consistent even if the computer crashes or loses power. If the system crashes, NTFS can use the log to recover any incomplete transactions and restore the file system to a consistent state.

NTFS Security

NTFS provides several security features, including:

  • Encryption File System (EFS): EFS allows you to encrypt files and folders to protect them from unauthorized access.
  • Access Control Lists (ACLs): ACLs allow you to specify which users and groups have access to a file or folder and what type of access they have.
  • Permissions: NTFS permissions allow you to control who can read, write, modify, and execute files and folders.

NTFS and Multiple User Permissions

NTFS allows you to assign different permissions to different users and groups. This allows you to control who can access files and folders and what they can do with them. If a user belongs to multiple groups, NTFS uses a set of rules to determine the user’s effective permissions.