L28. What information does a host obtain via DHCP and how? Flashcards

1
Q

What is DHCP?

A

The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used on IP networks for automatically assigning IP addresses and other communication parameters to devices connected to the network using a client–server architecture.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the benefits of DHCP?

A

DHCP automates the assignment and management of IP addresses and other network configuration details. DHCP ensures that devices can seamlessly join networks and maintain their connectivity with minimal manual intervention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What information does a host obtain via DHCP?

A

An IP address, subnet mask, default gateway, DNS server addresses, and lease duration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the process of a host obtaining information from DHCP?

A

The host
1. broadcasts a DHCP Discover message
2. receives a DHCP Offer from available servers
3. sends a DHCP Request to accept an offer
4. receives a DHCP Acknowledge confirming the lease and configuration details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When does a device obtain an IP address?

A

When it connects to a network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why does a device need an IP address?

A

Without an IP address, the device cannot participate in network communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does a device obtain an IP address?

A

It sends out a DHCP Discover message. Upon receiving the DHCP Discover message, available DHCP servers respond with a DHCP Offer message. The host then responds with a DHCP Request message, indicating its acceptance of the offered configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is the DHCP Discover message sent?

A

It is broadcast to all devices on the local network to locate any available DHCP servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What information does a DHCP Offer message include?

A

An available IP address and configuration parameters such as the subnet mask, default gateway, DNS server addresses, and lease duration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does a host select which DHCP Offer to accept?

A

The host may receive multiple offers if there are several DHCP servers on the network, but it typically selects the first offer it receives.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do DHCP servers know that an IP address has been assigned to a host?

A

The host, upon accepting a DHCP offer, broadcasts its DHCP request message to inform all DHCP servers that it has accepted an offer, thus preventing other servers from assigning the same IP address to another device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens after a host accepts a DHCP offer and sends a DHCP request?

A

The selected DHCP server sends a DHCP Acknowledge message to the host, confirming the lease and providing all the necessary configuration details. The host can now configure its network interface with this information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What configuration details are provided by DHCP and what are they used for?

A
  1. IP address: allows the host to identify itself on the network
  2. Subnet mask: helps the device understand which addresses are within its local network
  3. Default gateway: typically the router’s IP address, enables the host to communicate with devices outside its local subnet, such as those on the internet
  4. DNS server addresses: crucial for resolving domain names to IP addresses, allowing the host to access websites and other network services using human-readable names.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a DHCP lease?

A

An important aspect of DHCP is the lease mechanism, which provides the IP address and configuration details for a specific duration. The lease time is included in the DHCP Acknowledge message, informing the host how long it can use the assigned IP address. To maintain its network configuration, the host must periodically renew the lease.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How is a DHCP lease renewed?

A

The renewal process starts when half of the lease time has elapsed. At this point, the host sends a DHCP Request directly to the DHCP server that provided the lease, asking to renew it. If the lease is extended, and the host can continue using the IP address without interruption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does a DHCP server accept a request for a renewed lease?

A

With a DHCP Acknowledge

13
Q

What happens when a DHCP lease renewal attempt fails?

A

The host waits until the lease is close to expiring (typically 87.5% of the lease time) before attempting to renew it again, this time broadcasting the request to any DHCP server that might be available. This process is known as rebinding. If the lease expires without successful renewal, the host must stop using the IP address and initiate the DHCP process again to obtain a new lease.

14
Q

What are the benefits of DHCP’s automated assignment of IP addresses and other communication parameters?

A

This automation not only enhances the efficiency of network administration but also reduces the likelihood of configuration errors, thereby improving overall network reliability and performance.