+ All Categories

DHCP

Date post: 24-May-2015
Category:
Upload: kashif-latif
View: 815 times
Download: 1 times
Share this document with a friend
Popular Tags:
42
Dynamic Host Configuration Protocol
Transcript
Page 1: DHCP

Dynamic Host Configuration Protocol

Page 2: DHCP

2

Objectives

• Outline the benefits of using DHCP• Describe the DHCP lease and renewal process• Install and authorize the DHCP service• Configure DHCP scopes• Create DHCP reservations for client computers• Configure DHCP options• Understand and describe the purpose of a DHCP

relay• Install and configure a DHCP relay

Page 3: DHCP

3

DHCP Overview

• Used to automatically deliver IP addressing • Reduces the amount of time you spend configuring

computers on your network• Used by default unless you specify otherwise• The ipconfig /all command will indicate whether the

configuration came from a DHCP server computer

Page 4: DHCP

4

DHCP Overview (continued)

Page 5: DHCP

5

DHCP Overview (continued)

Page 6: DHCP

6

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

Page 7: DHCP

7

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

Page 8: DHCP

8

Leasing an IP Address (continued)

Page 9: DHCP

9

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• A DHCP server may either honor or reject a renew

request

Page 10: DHCP

10

Renewing an IP Address (continued)

Page 11: DHCP

11

Installing and Authorizing the DHCP Service

• A DHCP service must be authorized after installation

Page 12: DHCP

12

Installing the DHCP Service

• DHCP is a standard service • It is included in Windows Server 2003• It is not installed as part of a default installation

Page 13: DHCP

13

Installing the DHCP Service (continued)

Page 14: DHCP

14

Activity 4-1: Installing DHCP

• Objective: Install DHCP on Windows Server 2003• Make sure your network connection is statically

configured• Install the service using the Add/Remove Windows

Components utility

Page 15: DHCP

15

Authorizing the DHCP Service

• Unauthorized DHCP servers can hand out bad information

• DHCP will not start unless authorized• If Active Directory is used, authorization takes place

in Active Directory• DHCP servers are automatically authorized under

certain conditions

Page 16: DHCP

16

Authorizing the DHCP Service (continued)

Page 17: DHCP

17

Authorizing the DHCP Service (continued)

Page 18: DHCP

18

Activity 4-2: Starting an Authorized DHCP

Server

• Objective: View the results of starting a DHCP server that does not participate in an Active Directory domain

• Check to make sure the service is running• Check out any relevant events using the System Log

Page 19: DHCP

19

Activity 4-3: Installing the Active Directory

Service• Objective: Install the Active Directory service on

your computer and participate in an Active Directory domain

• Use the dcpromo utility• Select “domain controller for a new domain”• Select “domain in a new forest”• Continue through the resulting dialogs

Page 20: DHCP

20

Activity 4-4: Starting an Unauthorized DHCP

Server• Objective: View the results of starting an unauthorized

DHCP server• View the System Log to see the result of starting an

unauthorized DHCP server

Page 21: DHCP

21

Activity 4-5: Authorizing a DHCP Server

• Objective: Authorize a DHCP server in Active Directory

• Go to the DHCP snap-in and choose the activate option

Page 22: DHCP

22

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 exempt the few static addresses• Use only the addresses not already in use

Page 23: DHCP

23

Configuring DHCP Scopes (continued)

Page 24: DHCP

24

Configuring DHCP Scopes (continued)

• Exclusions are used to prevent some IP addresses from being handed out dynamically

• Lease duration defines how long client computers are allowed to use an IP address

• Default lease duration is eight days• A scope must be activated before the DHCP service

can begin using it

Page 25: DHCP

25

Activity 4-6: Creating a Scope

• Objective: Create a scope to distribute IP addresses to client computers

• Manually enter the IP configuration settings as directed by the text

• Create a new scope using the configuration settings provided

Page 26: DHCP

26

Activity 4-7: Activating and Testing a Scope

• Objective: Activate a DHCP scope, and then test it with a partner

• One person will activate the scope created in the previous activity

• Another person will try to obtain an automatic IP address from the server

Page 27: DHCP

27

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

• Can also be beneficial when firewalls are in place• Reservations are created based on MAC addresses

Page 28: DHCP

28

Creating DHCP Reservations (continued)

Page 29: DHCP

29

Activity 4-12: Creating and Testing a

Reservation• Objective: Create a DHCP reservation, and test it

with a client• Configure the server to reserve an IP address for a

client machine• Test to see if the client machine picks up the reserved

address

Page 30: DHCP

30

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

Page 31: DHCP

31

Configuring DHCP Options (continued)

Page 32: DHCP

32

Configuring DHCP Options (continued)

Page 33: DHCP

33

Activity 4-13: Setting Server Options

• Objective: Set the DNS server option for a DHCP server

• Check 006 DNS servers option• Add the IP address x.0.0.250

Page 34: DHCP

34

Activity 4-14: Setting Scope Options

• Objective: Set the default gateway in the scope options

• Use the DHCP snap-in to complete this activity

Page 35: DHCP

35

Activity 4-15: Testing Server & Scope Options

• Objective: Activate a DHCP scope, and then test it with a partner to ensure that scope options are handed out

• Activate a DHCP scope• Configure a client to access the server• Check the default gateway and DNS settings to find

out whether or not the configurations entered in previous activities were done correctly

Page 36: DHCP

36

Configuring a DHCP Relay

• DHCP packets cannot travel across a router• A relay agent is necessary in order to have a single

DHCP server handle all leases• Relay agents receive broadcast DHCP packets and

forward them as unicast packets to a DHCP server• The DHCP relay cannot be installed on the same

server as the DHCP service

Page 37: DHCP

37

Configuring a DHCP Relay (continued)

Page 38: DHCP

38

Configuring a DHCP Relay (continued)

Page 39: DHCP

39

Activity 4-16: Configuring a DHCP Relay

• Objective: Uninstall the DHCP service from your computer and configure it as a DHCP relay

• Uninstall the DHCP service• Configure the computer as a relay by using the

Routing and Remote Access tool provided in Windows

Page 40: DHCP

40

Summary

• DHCP dynamically assigns IP address information to clients on a network

• The DHCP lease process is composed of four packets: • DHCPDISCOVER• DHCPOFFER• DHCPREQUEST• DHCPACK

• A DHCP client attempts to renew its lease at 50%, 87.5%, and 100% of the lease time

• The commands ipconfig /release and ipconfig /renew can be used to release and renew DHCP leases

Page 41: DHCP

41

Summary (continued)

• If the Active Directory service is present on your network, each DHCP server must be authorized in Active Directory to lease addresses to clients

• A scope defines a range of IP addresses that are leased to clients

• A superscope combines two scopes into a single logical unit to service network segments with two subnets

Page 42: DHCP

42

Summary (continued)

• An exclusion in a scope can stop a DHCP server from handing out specific addresses

• A reservation allows you to give a specific workstation a defined IP address by tying the DHCP lease to the MAC address of the client

• Vendor and user classes can be used to configure some client computers with different options, depending on the class to which they belong

• A DHCP relay agent is required on each network that requires IP configuration from a DHCP server across a router


Recommended