What is DHCP? And how does it work?
DHCP- (Dynamic Host Configuration Protocol)
It is a protocol used to automatically distribute IP addresses to networked devices. When a device is connected to the network, it sends a DHCP request to request an IP address, and the server returns an IP address available from the predefined address range.
What are the components of the DHCP process?
Components of the DHCP process
DHCP Discover:
The device sends a request to find a server
DHCP Offer:
The server sends a display of the device with an IP address.
DHCP Request:
The device selects an offer from the offers and sends a request for confirmation
DHCP Acknowledgment:
The server confirms the address and assigns it to the device.
What is the difference between DHCP and Static IP?
DHCP
It automatically distributes IP addresses to networked devices, while Static IP is manually assigned to each device and remains static. DHCP is easier to manage in large networks, while Static IP is suitable for devices that need a static address such as servers.
How is the duration of DHCP determined?
The duration of time is known as Lease Time and is the duration that a device is allowed to use a specific IP address. After the expiry of the period, the device must request the renewal of the contract or the server may distribute the address to another device.
What is DHCP Relay Agent? And how does it work?
DHCP Relay Agent
a device or feature used to pass DHCP messages between the server and devices in a different network. This is useful when the DHCP server is not located in the same local network.
How do you handle IP Conflicts in DHCP?
Disputes can be handled using the Conflict Detection function, which enables the server to examine the available address before allocating it. If an address is in use, it is excluded from the domain until it is resolved.
How do you configure DHCP Scope?
Steps to configure Scope
Open the DHCP module on the server.
Create a new scope and specify the range of available IP addresses.
Specify the network mask, and the gateway (the default router).
Determine the Lease Time period
Add exceptions or reserves (if necessary).
What is the difference between DHCPv4 and DHCPv6?
DHCPv4
It works with the IPv4 protocol and distributes IP addresses of the fourth version. DHCPv6 works with IPv6 and provides more sophisticated address distribution mechanisms, such as 128-bit address distribution and support for automatic allocation without the need for a DHCP server at times