SlideShare a Scribd company logo
1 of 4
Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ]

Every host on a TCP/IP network must have a unique IP address.
Each host must be properly configured so that it knows its IP address.
When a new host comes online, it must be assigned an IP address that is within the
correct range of addresses for the subnet and is not already in use.
Although you can manually assign IP addresses to each computer on your network, that
task quickly becomes overwhelming if the network has more than a few computers.
That’s where DHCP – Dynamic Host Configuration Protocol, comes into play.
DHCP automatically configures the IP address for every host on a network, thus
assuring that each host has a valid unique IP address.
DHCP even automatically reconfigures IP addresses as hosts come and go.
As you can imagine, DHCP can save a network administrator many hours of tedious
configuration work.
In this chapter, you discover the ins and out of DHCP: what it is, how it works, and how
to set it up.
Understanding DHCP:
DHCP allows individual computer on a TCP/IP network to obtain their configuration
information- in particular, their IP address – from a server.
The DHCP server keeps track of which IP addresses have already been assigned so that
when a computer request an IP address, the DHCP server will offer it an IP address that
is not already in use.
Configuration information provided by DHCP:
Although the primary job of DHCP is to dole out IP address and subnet masks, DHCP
actually provides more configuration information than just the IP address to its clients.
The additional configuration information is referred to a DHCP options.
The following is a list of some common DHCP options that can be configured by the
server:
The router address, also known as the Default Gateway address.
The expiration time for the configuration information.
Domain name
DNS server address
WINS server address
DHCP Servers:
A DHCP server can be a server computer located on the TCP/IP network. All modern
server operating system have a built-in DHCP server.
To set up DHCP on a network server, all you have to do is enable the server’s DHCP
function and configure its settings.
A server computer running DHCP doesn’t have to be devoted entirely to DHCP unless
the network is very large.
For most networks, a file server can share duty as a DHCP server.
This is especially true if you provide long leases for your IP addresses. (I explain the
idea of leases later in this chapter)
Many multifunction routers also have built-in DHCP servers. So if you don’t want to
burden one of your network servers with the DHCP function, you can enable the
router’s built-in DHCP server.
An advantage of allowing the router to be your network’s DHCP server is that you rarely
need to power down a router.
Page: 1
Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ]

In contrast, you occasionally need to restart or power down a file server to perform
system maintenance, to apply upgrades, or to perform troubleshooting.
Most networks require only one DHCP server.
Setting up two or more servers on the same network requires that you carefully
coordinate the IP address ranges (scope) for which each server is responsible.
If you accidently set up two DHCP servers for the same scope, you many end up with
duplicate address assignments if the servers attempt to assign the same IP address to
two different hosts.
To prevent this from happening, its best to set up just one DHCP server unless your
network is so large that one server can’t handle the load.
How DHCP actually works
You can configure and use DHCP without knowing the details of how DHCP client
configuration actually works.
However, a basic understanding of the process can help you understand what DHCP is
actually doing.
The following paragraphs are a blow-by-blow account of how DHCP configures TCP/IP
hosts.
This procedure happens every time you boot up a host computer.
It also happens when you release an IP lease and request a fresh lease.
1) When a host computer starts up, the DHCP client software sends a special
broadcast packet, known as a DHCPDiscover message. This message uses the
subnet’s broadcast address (all host ID bits set to one) as the destination addres
and 0.0.0.0 as the source address.
The client has to specify 0.0.0.0 as the source address because it doesn’t yet have
an IP address, and it specifies the broadcast address as the destination address
because it doesn’t know the address of any DHCP servers.
In effect, the DHCPDiscover message is saying ‘Hey...! I’m new here. Are there any
DHCP servers out here?’
2) The DHCP server receives the broadcast DHCPDiscover message and responds
by sending a DHCPOffer message include an IP address that the client can use.
Like the DHCPDiscover message, the DHCPOffer message is sent to the broadcast
address.
This makes sense because the client to which the message is being sent doesn’t
yet have an IP address and won’t have one until it accepts the offer.
In effect, the DHCPOffer message is saying, ‘Hello there, whoever you are. Here’s
an IP address you can use, if you want it. Let me know.’
What if the client never receives a DHCPOffer message from a DHCP server?
In that case, the client waits for a few seconds and tries again. The client will try
four times – at 2, 4, 8 and 16 seconds. If it still doesn’t get an offer, it will try
again after five minutes.
3) The client receives the DHCPOffer message and sends back a message known as
a DHCPRequest message. At this point, the client doesn’t actually own the IP
address. It’s simply indicating that it’s ready to accept the IP address that was
offered by the server.
In effect, the DHCPRequest message says, ‘Yes, that IP address would be good for
me, Can I have it, please?’
Page: 2
Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ]

4) When the server receives the DHCPRequest message, it marks the IP address as
assigned to the client and broadcasts a DHCPAck message. The DHCPAck
message says, in effect, “Okay, it’s all yours. Here’s the rest of the information you
need to use it.”
5) When the client receives the DHCPAck message, it configures its TCP/IP stack by
using the address it accepted from the server.
Understanding Scope:
A scope is simply a range of IP addresses that a DHCP server is configured to distribute.
In the simplest case, where a single DHCP sever oversees IP configuration for an entire
subnet, the scope corresponds to the subnet.
However, if you set up two DHCP servers for a subnet, you can configure each with a
scope that allocates only one part of the complete subnet range.
In addition, a single DHCP server can serve more than one scope.
You must create a scope before you can enable a DHCP server. When you create a scope,
you can provide it with the following properties:
1) A scope name, which helps you to identify the scope and its purpose.
2) A scope description, which lets you provide additional details about the scope and
its purpose.
3) A starting IP address for the scope.
4) An ending IP address for the scope.
5) A subnet mask for the scope. You can specify the subnet mask with dotted decimal
notation or with CIDR notation.
6) One or more ranges of excluded addresses. These addresses won’t be assigned to
clients.
7) One or more reserved addresses. These are addresses that will always be assigned
to particular host devices.
8) The lease duration, which indicates how long the host will be allowed to use the IP
address. The client will attempt to renew the lease when half of the lease duration
has elapsed. For example, if you specify a lease duration of eight days, the client will
attempt to renew the lease after four days have passed. This allows the host plenty
of time to renew the lease before the address is reassigned to some other host.
9) The router address for the subnet. This value is also known as the Default Gateway
address.
10)The domain name and the IP address of the network’s DNS server and WINS servers.
Feeling excluded?
Everyone feels excluded once in awhile. With a wife, three daughters, and a female dog, I
know how it feels.
Sometimes, however, being excluded is a good thing.
In the case of DHCP scopes, exclusions can help you to prevent IP address conflicts and
can enable you to divide the DHCP workload for a single subnet among two or more
DHCP servers.
An exclusion is a range of addresses that are not included in a scope. The exclusion
range falls within the range of the scope’s starting and ending addresses.
In effect, an exclusion range lets you punch a hole in a scope.
The IP addresses that fall within the hole won’t be assigned.
The following are several reasons for excluding IP addresses from a scope:
Page: 3
Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ]

1) The computer that runs the DHCP service itself must usually have a static IP address
assignment. As a result, the address of the DHCP server should be listed as exclusion.
2) Some hosts many not be able to support DHCP. In that case, the host will require a
static IP address.
For example, you may have a really old MS-DOS computer that doesn’t have a DHCP
client. By excluding its IP address from the scope, you can prevent that address from
being assigned to any other host on the network.
Reservation Suggested:
In some cases, you may want to assign a particular IP address to a particular host.
One way to do this is to configure the host with a static IP address so that the host
doesn’t use DHCP to obtain its IP configuration.
However, two major disadvantages to that approach exist:
1) TCP/IP configuration supplies more than just the IP address. If you use static
configuration, you must manually specify the subnet mask, Default Gateway address,
DNS server address, and other configuration information required by the host.
If this information changes, you have to change it not only at the DHCP server, but
also at each host that you have configured statically.
2) You must remember to exclude the static IP address from the DHCP server’s scope.
Otherwise, the DHCP server won’t know about the static address and may assign it
to another host.
Then, you will have two host with the same address on your network.
A better way to assign a fixed IP address to a particular host is to create a DHCP
reservation.
A reservation simply indicates that whenever a particular host requests an IP address
from the DHCP server, the server should provide it the address that you specify in the
reservation.
The host won’t receive the IP address until the host requests it from the DHCP server,
but whenever the host does request IP configuration, it will always receive the same
address.
To create a reservation, you associate the IP address that you want assigned to the host
with the host’s MAC address.
As a result, you need to get the MAC address from the host before you create the
reservation.
You can get the MAC address by running the command
Ipconfig /all
From command prompt.
Start All Programs  Accessories  System Tools  System Information.

What is BOOTP?  Self Study [Assignment]

Page: 4

More Related Content

What's hot (20)

Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP
DHCPDHCP
DHCP
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
 
6 understanding DHCP
6 understanding DHCP6 understanding DHCP
6 understanding DHCP
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
 
unit 2
unit 2unit 2
unit 2
 
DHCP Server & Client Presentation
DHCP Server & Client PresentationDHCP Server & Client Presentation
DHCP Server & Client Presentation
 
Durai presentation of dhcp
Durai presentation of dhcpDurai presentation of dhcp
Durai presentation of dhcp
 
DHCP Protocol
DHCP ProtocolDHCP Protocol
DHCP Protocol
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
Networking DHCP server Setup Reports
Networking DHCP server Setup ReportsNetworking DHCP server Setup Reports
Networking DHCP server Setup Reports
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP
DHCPDHCP
DHCP
 
Dhcp edu
Dhcp eduDhcp edu
Dhcp edu
 
Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.
 
DHCP
DHCPDHCP
DHCP
 

Similar to Dhcp 11

Dhcp by lalit bhati
Dhcp by lalit bhatiDhcp by lalit bhati
Dhcp by lalit bhatiLalit Bhati
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLVENKATESHAN A S
 
Dhcp server configuration
Dhcp server configurationDhcp server configuration
Dhcp server configurationUttamAgarwal9
 
13 - DHCP Service.ppt
13 - DHCP Service.ppt13 - DHCP Service.ppt
13 - DHCP Service.pptssuserf7cd2b
 
Module (8) DHCP Server.pptx
Module (8) DHCP Server.pptxModule (8) DHCP Server.pptx
Module (8) DHCP Server.pptxGeorgeThoreJr
 
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptxDHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptxMUHAMMADATTAURREHMAN7
 
Group-7-DHCPv4.pptx
Group-7-DHCPv4.pptxGroup-7-DHCPv4.pptx
Group-7-DHCPv4.pptxIvanTabanag1
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router ciscoGuiro Lin
 
Session 3 Tp 3
Session 3 Tp 3Session 3 Tp 3
Session 3 Tp 3githe26200
 
Investigation of dhcp packets using wireshark
Investigation of dhcp packets using wiresharkInvestigation of dhcp packets using wireshark
Investigation of dhcp packets using wiresharkjpratt59
 
DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)Faisal Jatt
 
Pmw2 k3ni 1-2a
Pmw2 k3ni 1-2aPmw2 k3ni 1-2a
Pmw2 k3ni 1-2ahariclant1
 

Similar to Dhcp 11 (20)

Dhcp by lalit bhati
Dhcp by lalit bhatiDhcp by lalit bhati
Dhcp by lalit bhati
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
 
14047721
1404772114047721
14047721
 
Dhcp server configuration
Dhcp server configurationDhcp server configuration
Dhcp server configuration
 
13 - DHCP Service.ppt
13 - DHCP Service.ppt13 - DHCP Service.ppt
13 - DHCP Service.ppt
 
Module (8) DHCP Server.pptx
Module (8) DHCP Server.pptxModule (8) DHCP Server.pptx
Module (8) DHCP Server.pptx
 
DHCP Server Guaidlines using CISCO PACKET TRACER
DHCP Server Guaidlines using CISCO PACKET TRACERDHCP Server Guaidlines using CISCO PACKET TRACER
DHCP Server Guaidlines using CISCO PACKET TRACER
 
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptxDHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
 
Group-7-DHCPv4.pptx
Group-7-DHCPv4.pptxGroup-7-DHCPv4.pptx
Group-7-DHCPv4.pptx
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
 
Session 3 Tp 3
Session 3 Tp 3Session 3 Tp 3
Session 3 Tp 3
 
DHCP
DHCPDHCP
DHCP
 
A1803020108
A1803020108A1803020108
A1803020108
 
Investigation of dhcp packets using wireshark
Investigation of dhcp packets using wiresharkInvestigation of dhcp packets using wireshark
Investigation of dhcp packets using wireshark
 
DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)
 
Dhcp
DhcpDhcp
Dhcp
 
P09
P09P09
P09
 
Pmw2 k3ni 1-2a
Pmw2 k3ni 1-2aPmw2 k3ni 1-2a
Pmw2 k3ni 1-2a
 
Dhcp
DhcpDhcp
Dhcp
 

More from Jainul Musani

More from Jainul Musani (20)

React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
 
React js t6 -lifecycle
React js   t6 -lifecycleReact js   t6 -lifecycle
React js t6 -lifecycle
 
React js t5 - state
React js   t5 - stateReact js   t5 - state
React js t5 - state
 
React js t4 - components
React js   t4 - componentsReact js   t4 - components
React js t4 - components
 
React js t3 - es6
React js   t3 - es6React js   t3 - es6
React js t3 - es6
 
React js t2 - jsx
React js   t2 - jsxReact js   t2 - jsx
React js t2 - jsx
 
React js t1 - introduction
React js   t1 - introductionReact js   t1 - introduction
React js t1 - introduction
 
ExpressJs Session01
ExpressJs Session01ExpressJs Session01
ExpressJs Session01
 
NodeJs Session03
NodeJs Session03NodeJs Session03
NodeJs Session03
 
NodeJs Session02
NodeJs Session02NodeJs Session02
NodeJs Session02
 
Nodejs Session01
Nodejs Session01Nodejs Session01
Nodejs Session01
 
Java exercise1
Java exercise1Java exercise1
Java exercise1
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDB
 
MongoDB-SESSION03
MongoDB-SESSION03MongoDB-SESSION03
MongoDB-SESSION03
 
MongoDB-SESSION02
MongoDB-SESSION02MongoDB-SESSION02
MongoDB-SESSION02
 
MongoDB-SESION01
MongoDB-SESION01MongoDB-SESION01
MongoDB-SESION01
 

Recently uploaded

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Dhcp 11

  • 1. Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ] Every host on a TCP/IP network must have a unique IP address. Each host must be properly configured so that it knows its IP address. When a new host comes online, it must be assigned an IP address that is within the correct range of addresses for the subnet and is not already in use. Although you can manually assign IP addresses to each computer on your network, that task quickly becomes overwhelming if the network has more than a few computers. That’s where DHCP – Dynamic Host Configuration Protocol, comes into play. DHCP automatically configures the IP address for every host on a network, thus assuring that each host has a valid unique IP address. DHCP even automatically reconfigures IP addresses as hosts come and go. As you can imagine, DHCP can save a network administrator many hours of tedious configuration work. In this chapter, you discover the ins and out of DHCP: what it is, how it works, and how to set it up. Understanding DHCP: DHCP allows individual computer on a TCP/IP network to obtain their configuration information- in particular, their IP address – from a server. The DHCP server keeps track of which IP addresses have already been assigned so that when a computer request an IP address, the DHCP server will offer it an IP address that is not already in use. Configuration information provided by DHCP: Although the primary job of DHCP is to dole out IP address and subnet masks, DHCP actually provides more configuration information than just the IP address to its clients. The additional configuration information is referred to a DHCP options. The following is a list of some common DHCP options that can be configured by the server: The router address, also known as the Default Gateway address. The expiration time for the configuration information. Domain name DNS server address WINS server address DHCP Servers: A DHCP server can be a server computer located on the TCP/IP network. All modern server operating system have a built-in DHCP server. To set up DHCP on a network server, all you have to do is enable the server’s DHCP function and configure its settings. A server computer running DHCP doesn’t have to be devoted entirely to DHCP unless the network is very large. For most networks, a file server can share duty as a DHCP server. This is especially true if you provide long leases for your IP addresses. (I explain the idea of leases later in this chapter) Many multifunction routers also have built-in DHCP servers. So if you don’t want to burden one of your network servers with the DHCP function, you can enable the router’s built-in DHCP server. An advantage of allowing the router to be your network’s DHCP server is that you rarely need to power down a router. Page: 1
  • 2. Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ] In contrast, you occasionally need to restart or power down a file server to perform system maintenance, to apply upgrades, or to perform troubleshooting. Most networks require only one DHCP server. Setting up two or more servers on the same network requires that you carefully coordinate the IP address ranges (scope) for which each server is responsible. If you accidently set up two DHCP servers for the same scope, you many end up with duplicate address assignments if the servers attempt to assign the same IP address to two different hosts. To prevent this from happening, its best to set up just one DHCP server unless your network is so large that one server can’t handle the load. How DHCP actually works You can configure and use DHCP without knowing the details of how DHCP client configuration actually works. However, a basic understanding of the process can help you understand what DHCP is actually doing. The following paragraphs are a blow-by-blow account of how DHCP configures TCP/IP hosts. This procedure happens every time you boot up a host computer. It also happens when you release an IP lease and request a fresh lease. 1) When a host computer starts up, the DHCP client software sends a special broadcast packet, known as a DHCPDiscover message. This message uses the subnet’s broadcast address (all host ID bits set to one) as the destination addres and 0.0.0.0 as the source address. The client has to specify 0.0.0.0 as the source address because it doesn’t yet have an IP address, and it specifies the broadcast address as the destination address because it doesn’t know the address of any DHCP servers. In effect, the DHCPDiscover message is saying ‘Hey...! I’m new here. Are there any DHCP servers out here?’ 2) The DHCP server receives the broadcast DHCPDiscover message and responds by sending a DHCPOffer message include an IP address that the client can use. Like the DHCPDiscover message, the DHCPOffer message is sent to the broadcast address. This makes sense because the client to which the message is being sent doesn’t yet have an IP address and won’t have one until it accepts the offer. In effect, the DHCPOffer message is saying, ‘Hello there, whoever you are. Here’s an IP address you can use, if you want it. Let me know.’ What if the client never receives a DHCPOffer message from a DHCP server? In that case, the client waits for a few seconds and tries again. The client will try four times – at 2, 4, 8 and 16 seconds. If it still doesn’t get an offer, it will try again after five minutes. 3) The client receives the DHCPOffer message and sends back a message known as a DHCPRequest message. At this point, the client doesn’t actually own the IP address. It’s simply indicating that it’s ready to accept the IP address that was offered by the server. In effect, the DHCPRequest message says, ‘Yes, that IP address would be good for me, Can I have it, please?’ Page: 2
  • 3. Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ] 4) When the server receives the DHCPRequest message, it marks the IP address as assigned to the client and broadcasts a DHCPAck message. The DHCPAck message says, in effect, “Okay, it’s all yours. Here’s the rest of the information you need to use it.” 5) When the client receives the DHCPAck message, it configures its TCP/IP stack by using the address it accepted from the server. Understanding Scope: A scope is simply a range of IP addresses that a DHCP server is configured to distribute. In the simplest case, where a single DHCP sever oversees IP configuration for an entire subnet, the scope corresponds to the subnet. However, if you set up two DHCP servers for a subnet, you can configure each with a scope that allocates only one part of the complete subnet range. In addition, a single DHCP server can serve more than one scope. You must create a scope before you can enable a DHCP server. When you create a scope, you can provide it with the following properties: 1) A scope name, which helps you to identify the scope and its purpose. 2) A scope description, which lets you provide additional details about the scope and its purpose. 3) A starting IP address for the scope. 4) An ending IP address for the scope. 5) A subnet mask for the scope. You can specify the subnet mask with dotted decimal notation or with CIDR notation. 6) One or more ranges of excluded addresses. These addresses won’t be assigned to clients. 7) One or more reserved addresses. These are addresses that will always be assigned to particular host devices. 8) The lease duration, which indicates how long the host will be allowed to use the IP address. The client will attempt to renew the lease when half of the lease duration has elapsed. For example, if you specify a lease duration of eight days, the client will attempt to renew the lease after four days have passed. This allows the host plenty of time to renew the lease before the address is reassigned to some other host. 9) The router address for the subnet. This value is also known as the Default Gateway address. 10)The domain name and the IP address of the network’s DNS server and WINS servers. Feeling excluded? Everyone feels excluded once in awhile. With a wife, three daughters, and a female dog, I know how it feels. Sometimes, however, being excluded is a good thing. In the case of DHCP scopes, exclusions can help you to prevent IP address conflicts and can enable you to divide the DHCP workload for a single subnet among two or more DHCP servers. An exclusion is a range of addresses that are not included in a scope. The exclusion range falls within the range of the scope’s starting and ending addresses. In effect, an exclusion range lets you punch a hole in a scope. The IP addresses that fall within the hole won’t be assigned. The following are several reasons for excluding IP addresses from a scope: Page: 3
  • 4. Chapter – 3 : Using DHCP [Networking - All in One Desk Reference by Doug Lowe - WILEY ] 1) The computer that runs the DHCP service itself must usually have a static IP address assignment. As a result, the address of the DHCP server should be listed as exclusion. 2) Some hosts many not be able to support DHCP. In that case, the host will require a static IP address. For example, you may have a really old MS-DOS computer that doesn’t have a DHCP client. By excluding its IP address from the scope, you can prevent that address from being assigned to any other host on the network. Reservation Suggested: In some cases, you may want to assign a particular IP address to a particular host. One way to do this is to configure the host with a static IP address so that the host doesn’t use DHCP to obtain its IP configuration. However, two major disadvantages to that approach exist: 1) TCP/IP configuration supplies more than just the IP address. If you use static configuration, you must manually specify the subnet mask, Default Gateway address, DNS server address, and other configuration information required by the host. If this information changes, you have to change it not only at the DHCP server, but also at each host that you have configured statically. 2) You must remember to exclude the static IP address from the DHCP server’s scope. Otherwise, the DHCP server won’t know about the static address and may assign it to another host. Then, you will have two host with the same address on your network. A better way to assign a fixed IP address to a particular host is to create a DHCP reservation. A reservation simply indicates that whenever a particular host requests an IP address from the DHCP server, the server should provide it the address that you specify in the reservation. The host won’t receive the IP address until the host requests it from the DHCP server, but whenever the host does request IP configuration, it will always receive the same address. To create a reservation, you associate the IP address that you want assigned to the host with the host’s MAC address. As a result, you need to get the MAC address from the host before you create the reservation. You can get the MAC address by running the command Ipconfig /all From command prompt. Start All Programs  Accessories  System Tools  System Information. What is BOOTP?  Self Study [Assignment] Page: 4