Experiment 5
Experiment 5
Configuration Process:
DHCP Discover:
When a client connects to a network, it sends out a broadcast DHCP Discover message to
discover available DHCP servers on the network.
DHCP Offer:
DHCP servers respond with DHCP Offer messages, offering IP addresses and other
configuration parameters to the client. The server typically includes an IP address lease
duration in the offer.
DHCP Request:
The client selects one of the offered IP addresses and sends a DHCP Request message to the
chosen DHCP server, requesting that IP address.
DHCP Acknowledge:
The DHCP server acknowledges the client's request by sending a DHCP Acknowledge
message. It confirms the lease of the IP address to the client and provides other
configuration details, such as subnet mask, default gateway, DNS server addresses, etc.
In the diagram:
The DHCP server manages a pool of available IP addresses and leases them to clients.
When a client broadcasts a DHCP Discover message, the DHCP server responds with
a DHCP Offer, proposing an IP address lease.
The client selects an offered IP address and requests it from the DHCP server.
The DHCP server acknowledges the request and assigns the IP address lease to the
client.
Answer:
he DHCP process, often referred to as the DORA process, outlines the sequence of steps
involved in dynamic IP address assignment between a DHCP client and a DHCP server. Here's
a detailed explanation of each step along with a suitable diagram:
Discover:
The DHCP client begins by broadcasting a DHCP Discover message onto the network. This
message indicates the client's need for network configuration information and seeks
available DHCP servers.
Offer:
DHCP servers respond to the Discover message with a DHCP Offer message, indicating their
willingness to provide network configuration information.
Request:
After receiving the DHCP Offer messages, the client selects one of the offered IP addresses
and sends a DHCP Request message to the chosen DHCP server.
Acknowledge:
The DHCP server that receives the Request message responds with a DHCP Acknowledge
(ACK) message. This message confirms the client's lease of the offered IP address and
provides additional configuration parameters.
Answer :
CLI commands, or Command Line Interface commands, in the context of DHCP (Dynamic
Host Configuration Protocol), refer to the commands used to interact with and configure
DHCP servers, clients, and related network settings through a command-line interface.
These commands allow network administrators to perform various tasks related to DHCP,
such as:
dhcpd -t: Tests the DHCP server configuration for syntax errors.
dhcpd -r: Re-reads the DHCP server configuration file without restarting the daemon.
4. State and Explain all the cli commands used in this experiment
Answer
In the experiment conducted, several CLI (Command Line Interface) commands were utilized
to interact with the DHCP (Dynamic Host Configuration Protocol) server and perform various
tasks. Here are the commands used along with their explanations:
Explanation: This command checks the status of the ISC DHCP server service.
The sudo command is used to execute the subsequent command with
superuser privileges. service is the command used to manage system services
Explanation: This command restarts the ISC DHCP server service. Similar to
the previous command, it uses sudo to execute with superuser privileges and
service to manage system services. isc-dhcp-server is the name of the DHCP
server service,