Lab5 DHCP slides
Lab5 DHCP slides
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
capture of
•The Request and ACK
messages are not optional.
•In order to collect a trace that
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