0% found this document useful (0 votes)
3 views

Lab5 DHCP slides

The document explains the process of IP address assignment in a network, detailing static and dynamic IPs, with a focus on the Dynamic Host Configuration Protocol (DHCP). It outlines how DHCP servers assign IP addresses, subnet masks, default gateways, and DNS servers, as well as the concept of IP address leasing. Additionally, it describes the DHCP message exchange process and provides instructions for capturing DHCP messages using Wireshark.

Uploaded by

grumpsonu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Lab5 DHCP slides

The document explains the process of IP address assignment in a network, detailing static and dynamic IPs, with a focus on the Dynamic Host Configuration Protocol (DHCP). It outlines how DHCP servers assign IP addresses, subnet masks, default gateways, and DNS servers, as well as the concept of IP address leasing. Additionally, it describes the DHCP message exchange process and provides instructions for capturing DHCP messages using Wireshark.

Uploaded by

grumpsonu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

ireshark lab: DHCP

Prepared by: Rola AlOmari


•Every computer on a network must have an IP

IP addresses: address
•2 ways that a computer can be assigned an IP
how to get address

one? Static IP
Dynamic IP
• A static IP is where a
user assigns an IP
address manually
Static IP
• Hard-coded by sysadmin in
config file
• A dynamic IP is where a
computer gets an IP address
From a DHCP (Dynamic Host
Configuration Protocol)
server
• DHCP server automatically
assigns a computer an:
• IP address, Subnet mask,
Default gateway, and
DNS server

Dynamic IP •The DHCP server assigns the


IP address a lease

•A lease is the amount of time


an IP address is assigned to a
computer

•The lease is to help make sure


the DHCP server does not run
out of IP addresses
•DHCP is a service that runs on a server such as:
Microsoft server or Linux server
•It also runs on routers
•DHCP scenario
DHCP •host broadcasts DHCP discover msg [optional]
server •DHCP server responds with DHCP offer msg
[optional]
•host requests IP address: DHCP request msg
•DHCP server sends address: DHCP ack msg
•The first two steps in the DHCP
protocol (Discover and Offer
messages) are optional (in the
sense that they need not always
be used when, for example, a
new IP address is needed, or an

Wireshark existing DHCP address is to be


renewed)

capture of
•The Request and ACK
messages are not optional.
•In order to collect a trace that

DHCP will contain all four DHCP


message types, we’ll need to take
a few command line actions as

messages follows:
• In a command-line window
enter the following command:
•> ipconfig /release
• This command will cause
your PC to give up its IP
address.
• Start up Wireshark.
• In the command-line window
enter the following command:
• > ipconfig /renew
DHCP • Host broadcasts
DHCP discover msg
Discover
• DHCP server
responds with DHCP
offer msg [optional]
DHCP Offer
• host requests IP
DHCP address: DHCP
request msg
Request
• DHCP server sends
address: DHCP ack
DHCP ACK msg

You might also like