DHCP IP Allocation Operation

dhcp-messages-and-ip-allocation-

DHCP IP Allocation Operation

How Does DHCP Achieve IP Allocation Operation?

DHCP does its job with Messages like many protocol. Here, as we mentined before, DHCP uses DHCP Messages. Let’s see how these DHCP Messages are used in DHCP IP Allocation Operation.

Here, firstly we will explain the main DHCP Messages for a successfulDHCP IP Allocation Operation. In this operation four DHCP Message is used.

dhcp-ip-allocation-messages

Now, let’s see these four DHCP Messages and the other DHCP Messages one by one.

DHCP Discover Message

For IP allocation, firstly, DHCP Client sends a Broadcast DHCP Discover Message. This DHCP Discover Messege ask this question :

“Are there any DHCP Server in the Network?”
DHCP Client ask this question to all the nodes. Because DHCP Discover Message is sent as Broadcast. Here, the destination port is UDP 68. In this message, there are some other required fields but the most important one is the MAC address of DHCP Client.

There is also one more important flag in DHCP Discover Message. This flag is “Broadcast Flag”. If this flag set to “1”, this means that DHCP Client is waiting Broadcast responses from the DHCP Server. But if it set to “0”, this means that DHCP Client is waiting Unicast responses from the DHCP Sercer. Even if this flag, the DHCP Server acts as its capability. In most cases, the responses of DHCP Server is Unicast.

DHCP Offer Message

All the nodes in the network receive the DHCP Discover Message. But, only the DHCP Server reply to this message with DHCP Offer Message. This DHCP Offer Message is sent as Unicast or Broadcast, according to the Broadcast Flag in DHCP Discover Message and DHCP Server capability.

The meaning of this message is :

“I am a DHCP Server. And I can give you these IP address!”
Here, the destination port is UDP 67. This time, the message includes some more information :

• MAC address of DHCP Client,
• IP address of DHCP Server
• MAC address of DHCP Server
• Offered IP address and Subnet Mask

We're Sorry!

Full Access is for only IPCisco Crew...

With IPCisco Membership, You Can Access:

• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: DHCP
Back to: CCNA > DHCP and DNS

Comments are closed.




CCNA