DHCP (Dynamic Host Configuration Protocol) Flashcards
What is DHCP?
DHCP (Dynamic Host Configuration Protocol) is a protocol used to automatically assign IP addresses and other network configurations to devices on a network.
How does DHCP assign an IP address to a device?
DHCP assigns an IP address through a leasing process, where the server temporarily assigns an IP to a device for a specified period.
What is a DHCP lease?
A DHCP lease is a temporary assignment of an IP address to a device, with a specified lease time after which it must be renewed or released.
What is a DHCP Discover message?
A DHCP Discover message is sent by a client to locate a DHCP server and request IP configuration.
What does a DHCP Offer message contain?
A DHCP Offer message contains an available IP address, subnet mask, default gateway, and other network settings for the client.
How does a client accept a DHCP offer?
A client accepts a DHCP offer by sending a DHCP Request message to the server, confirming its intent to use the offered IP address.
What is the role of a DHCP Ack message?
A DHCP Ack message is sent by the server to confirm that the client has successfully obtained the IP address and other configurations.
What is the DHCP Release message used for?
A DHCP Release message is sent by a client to inform the server that it no longer needs the assigned IP address and is releasing the lease.
What port does a DHCP server listen on?
A DHCP server listens on UDP port 67 for incoming DHCP requests.
What port does a DHCP client use?
A DHCP client uses UDP port 68 to receive DHCP messages.
Can DHCP assign static IP addresses?
Yes, DHCP can assign static IP addresses through IP reservations based on MAC addresses.
What is the purpose of the DHCPACK message?
The DHCPACK message is used to confirm that the server has successfully assigned an IP address and associated network settings to the client.
What is a DHCP scope?
A DHCP scope is a range of IP addresses that a DHCP server can assign to clients within a network.
What happens when a DHCP lease expires?
When a DHCP lease expires, the client must either request a renewal or obtain a new IP address from the DHCP server.
Can DHCP be used on private networks?
Yes, DHCP is commonly used on private networks to dynamically assign IP addresses to devices.