Managing DHCP. 2 DHCP Overview Is a protocol that allows client computers to automatically receive an IP address and TCP/IP settings from a Server Reduces.

Slides:



Advertisements
Similar presentations
DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
Chapter 11 Configuring Dynamic Host Configuration Protocol
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 5: Planning, Configuring, And Troubleshooting DHCP.
Chapter 8 Administering TCP/IP.
Hands-On Microsoft Windows Server 2003 Networking Chapter 7 Windows Internet Naming Service.
Lesson 11: Deploying and Configuring the DHCP Service
Hands-On Microsoft Windows Server 2003 Networking Chapter 5 Dynamic Host Configuration Protocol.
DHCP Server © N. Ganesan, Ph.D.. Reference DHCP Server Issues or leases dynamic IP addresses to clients in a network The lease can be subject to various.
Chapter Overview Understanding DHCP Configuring a DHCP Server
DHCP Dynamic Host Configuration Protocol.
Ch 8-3 Working with domains and Active Directory.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 4: Dynamic Host Configuration Protocol.
Lesson 3 Introduction to Networking Concepts Lesson 3.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 5: Managing and Monitoring DHCP.
Implementing Dynamic Host Configuration Protocol
Dynamic Host Configuration Protocol (DHCP)
Name Resolution Domain Name System.
DHC P Dynamic Host Configuration Protocol
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 8 The Dynamic Host Configuration Protocol (DHCP)
MAC Address IP Addressing DHCP Client DHCP Server Scope Exclusion Range Reservations Netsh.
Implementing Dynamic Host Configuration Protocol
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
CN2140 Server Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Allocating IP Addressing by Using Dynamic Host Configuration Protocol (DHCP)
Module 3: Designing IP Addressing. Module Overview Designing an IPv4 Addressing Scheme Designing DHCP Implementation Designing DHCP Configuration Options.
Dynamic Host Configuration Protocol and IP Address Assignment CIS 238 Oakton Community College.
Chapter 15 DHCP. Dynamic Host Configuration Protocol An Application Layer Protocol A client server protocol that automatically provides an IP host with.
Module 4: Planning, Optimizing, and Troubleshooting DHCP
1 of 18 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0: Module 1; 1.2.
Bootstrap and Autoconfiguration Chapter 23. Introduction Each computer attached to a TCP/IP internet needs to know: –its IP address –the address of a.
Week 7 Objectives Installing a DHCP Server Role Configuring DHCP Scopes Managing a DHCP Database Securing and Monitoring DHCP.
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 10 Implementing Dynamic Host Configuration Protocol (DHCP)
Why Use DHCP? DHCP reduces the complexity and amount of administrative work by using automatic TCP/IP configuration Manual TCP/IP Configuration IP addresses.
Week #3: Configuring and Troubleshooting DHCP
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 5: Managing and Monitoring DHCP.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Module 3: Configuring a Client IP Address. Overview Configuring a Client to Use a Static IP Address Configuring a Client to Obtain an IP Address Automatically.
DHCP/BOOTP Dynamic Host Configuration Protocol Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically.
Module 4: Configuring and Troubleshooting DHCP
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
BZUPAGES.COM BOOTP and DHCP The Bootstrap Protocol (BOOTP) is a client/server protocol that configures a diskless computer or a computer that is booted.
Module 2: Allocating IP Addressing by Using Dynamic Host Configuration Protocol (DHCP)
Chapter 17 BOOTP and DHCP.
IMPLEMENTING DHCP Chapter 1
Chapter 18 Host Configuration : DHCP
Allocating IP Addressing by Using Dynamic Host Configuration Protocol.
1 Chapter 8: DHCP in IP Configuration Designs Designs That Include DHCP Essential DHCP Design Concepts Configuration Protection in DHCP Designs DHCP Design.
1 Objectives Discuss the basics of Dynamic Host Configuration Protocol (DHCP) Describe the components and processes of DHCP Install DHCP in a Windows Server.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 9: Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP) DHCP provides a temporary IP address for a limited period of time DHCP has two databases. First one has static.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Introduction to Networking Technologies Dynamic Host Configuration Protocol (DHCP)
CHAPTER 10: DHCP Routing & Switching. Objectives 10.0 Introduction 10.1 Dynamic Host Configuration Protocol v Dynamic Host Configuration Protocol.
Configuring and Managing the DHCP Server Role. DHCP overview RARP – one of the first ways to assign addresses BOOTP – Another legacy way to assign addresses.
1 Kyung Hee University Chapter 16 Host Configuration : BOOTP and DHCP.
Dynamic Host Configuration Protocol
Introduction to Networking Concepts
Configuring and Troubleshooting DHCP
BOOTP and DHCP Objectives
Net 431 D: ADVANCED COMPUTER NETWORKS
Chapter 18 Host Configuration : DHCP
Chapter 16 Host Configuration : BOOTP and DHCP
Allocating IP Addressing by Using Dynamic Host Configuration Protocol
Overview Multimedia: The Role of DHCP in the Network Infrastructure
Chapter 18 Host Configuration : DHCP
Presentation transcript:

Managing DHCP

2 DHCP Overview Is a protocol that allows client computers to automatically receive an IP address and TCP/IP settings from a Server Reduces the amount of time you spend configuring computers on your network Is the default configuration for clients. The ipconfig /all command will indicate whether the configuration came from a DHCP server computer

3 DHCP Overview (continued)

4

5 Leasing an IP Address An IP address is leased during the boot process The overall process is composed of four broadcast packets: DHCPDISCOVER DHCPOFFER DHCPREQUEST DHCPACK

6 Leasing an IP Address (continued) Any DHCP server that receives the DHCPDISCOVER packet responds with a DHCPOFFER packet The DHCP client responds to the DHCPOFFER packet it receives with a DHCPREQUEST packet A DHCPACK packet indicates confirmation that the client can use the lease Once DHCPACK is received, the client can start using the IP address and options in the lease

7 Leasing an IP Address (continued)

8 Renewing an IP Address The IP address can either be permanent or timed A permanent address is never reused for another client Timed leases expire after a certain amount of time Windows clients attempt to renew their lease after 50% of the lease time has expired. If the renewal process fails, it attempts again after 87.5% of the lease time has expired. Renewing the lease involves the client sending a DHCP Request packet to DHCP Server

9 Renewing an IP Address (continued)

10 More on the Renewal Process… DHCP Client, at startup, attempts to reach the DHCP Server Server Available:. If the server is available and the lease has not yet expired, the client retains the IP address If the server is available and the lease has expired, the client attempts to renew the lease.

11 More on the Renewal Process… DHCP Client, at startup, attempts to reach the DHCP Server Server Unavailable: If the server is unavailable, the client will ping the previously assigned default gateway to determine if it’s on the same network. If the gateway responds and the lease hasn’t expired, the client retains the IP address If the gateway doesn’t respond the client will send a DISCOVER packet to begin the lease process over

12 Autoconfiguration When a DHCP Server does not respond to a Client’s call for an IP Address, the client will autoconfigure itself The client selects an IP address from the subnet The client will attempt to contact a DHCP server using DISCOVER packets every 5 minutes

13 Installing the DHCP Service When placing a DHCP Service on a Server in a Domain: Install the DHCP Server Service Authorize DHCP Server in Active Directory Configure DHCP Server with appropriate scopes, exclusions, reservations and options Activate the DHCP Server’s Scopes When placing a DHCP Service on a Server in a Workgroup: Install the DHCP Server Service Configure DHCP Server with appropriate scopes, exclusions, reservations and options Activate the DHCP Server’s Scopes

14 Authorizing the DHCP Service A server that is a member of a domain can be authorized During the installation of the service: the Install Wizard provides an option to authorize the server Using the DHCP management snap-in Only members of the Enterprise Admins group can authorize a server A server that is a member of a workgroup does not need to be authorized.

15 Configuring DHCP Scopes Scope defines a range of IP addresses Each scope is configured with: Description Starting IP address Ending IP address Subnet mask Exclusions Lease duration Two strategies exist for defining the starting and ending IP addresses Allow all and exclude the few static addresses Reserve a range of addresses at beginning or end of range that can be used for static addresses

16 Configuring DHCP Scopes (continued) Lease duration defines how long client computers are allowed to use an IP address Default lease duration varies based on the network type and the DHCP Server version A scope must be activated before the DHCP service can begin using it

17 Creating DHCP Reservations Reservations are used to hand out a specific IP address to a particular client Useful when delivering IP addresses to devices that would normally use static addresses Reservations are created based on MAC addresses

18 Creating DHCP Exclusions Exclusions are IP Addresses that are within the subnet defined within the scope but that should not be assigned to a dhcp client

19 Configuring DHCP Options DHCP can hand out a variety of other IP configuration options It is common that all workstations within an entire organization use the same DNS servers DNS is often configured at the server level

20 DHCP Relay Agent DHCP packets cannot travel across a router A relay agent is necessary in order to have a single DHCP server handle all leases on both network segments This can be a Windows 2003/2008 server with DHCP Relay Agent protocol installed or a router that is configured as a relay Relay agents receive broadcast DHCP packets and forward them as unicast packets to a DHCP server The relay agent must be configured with the IP address of the DHCP server The DHCP relay cannot be installed on the same server as the DHCP service

21 Configuring a DHCP Relay (continued)

22 Superscopes Used to combine multiple scopes into a single logical scope Allows multiple scopes to be treated as a single scope Useful when a single physical network segment contains more than one logical subnet If a superscope is used, then the DHCP server offers only one lease as opposed to multiple leases

23 Example 1: No Superscope One physical network segment One logical subnet ( ) One DHCP Server Single scope is used to service all DHCP clients on Subnet A

24 Example 2: Superscope One physical network segment Multiple logical subnets Three single scopes created and joined into one superscope One DHCP Server services all clients on Subnet A with an IP address from the superscope Router configured with multiple addresses to allow packets to move from one logical network to another

25 Example 3: Superscope I mplemented across a Router Two physical network segments: Subnet A and Subnet B One DHCP Server Router configured with Relay Agent Something that will pass Discover Packets back and forth from DHCP Clients and DHCP Server

26 Example 3: Superscope I mplemented across a Router Subnet A: One physical segment One logical subnet ( ) One single scope defined DHCP server distributes addresses to clients on Subnet A using addresses in single scope Subnet B: One physical segment Two logical subnets ( & ) Two single scopes defined and joined into one Superscope DHCP server distributes address to clients on Subnet B using addresses in superscope

27 Vendor and User Classes Used to differentiate between clients within a scope Vendor classes are based on the operating system User classes are defined based on network connectivity or the administrator You can use the ipconfig /setclassid command to set the DHCP user class ID

28 DHCP Audit Logging DHCP audit logs keep detailed information about DHCP server activity The logs are used to troubleshoot a DHCP server They are stored in the C:\WINDOWS\system32\dhcp directory. There’s a file for each day of the week. Each line contains an event ID that states the nature of the event The Header of the log file provides a summary of events and their meanings Auditing can be disabled

29 Configuring DHCP Bindings The DHCP service will bind automatically to the first network card on the server You can choose which network card the DHCP Service is bound to The server only hands out IP addresses through a network card that has the DHCP Service bound

Integrating DHCP and DNS DNS Dynamic Update protocol allows clients running Windows 2000 or later to automatically update records in the DNS database The default DHCP configuration has this protocol enabled and will update clients only if requested DHCP server can be configured to dynamically update older clients 30

31 Conflict Detection Using DHCP does not prevent static IP configuration A DHCP server may hand out an IP address that was already statically assigned Conflict detection prevents a DHCP server from creating IP address conflicts A DHCP server pings an IP address before it is leased to a client computer This can be configured from the GUI as well as well as with the netsh command

Saving and Restoring DHCP Configuration DHCP Server configurations can be saved to a file These saved settings can then be used to restore the server to a known state OR to use the same settings on another server To store the configuration while logged on locally: netsh dhcp server dump > filename To restore the configuration: Netsh exec filename 32

33 Managing and Maintaining the DHCP Database The default location of the DHCP database is %systemroot%\system32\dhcp The DHCP server service performs 2 routine actions to maintain the database. The actions are performed every 60 minutes: Checks and cleans up expired leases and leases that no longer apply Database backup – the backup files are automatically stored in the %systemroot%\system32\dhcp\backup directory To view the current configuration: netsh dhcp server show dbproperties

34 Managing and Maintaining the DHCP Database The netsh command can be used to change the values of the database properties Netsh dhcp server set PropertyName NewPropertyValue When changing the database name or folder locations you must stop and start the dhcp server service Net stop “dhcp server” Net start “dhcp server” The database can be manually backed up and/or restored The database files can be moved to another server

35 Viewing DHCP Statistics Windows Server 2008 DHCP Service automatically tracks statistics Statistics are viewable as a whole or by scope

DHCP Availability and Fault Tolerance Multiple DHCP servers on the network increases reliability and allows fault tolerance In a server cluster DHCP server service can be failed over to another server – this is costly Simpler and less expensive approaches 50/50 failover approach 80/20 failover approach 100/100 failover approach 36