What is type of message that the client sends the DHCP server if the client lease is about to expire?

Mar 23, 2021 Last Updated: Jun 5, 2022 CCNA v7 Course #2, CCNA v7.0

7.4.4 Module Quiz – DHCPv4 Answers

1. A DHCP-enabled client PC has just booted. During which two steps will the client PC use broadcast messages when communicating with a DHCP server? (Choose two.)

  • DHCPNAK
  • DHCPREQUEST
  • DHCPOFFER
  • DHCPACK
  • DHCPDISCOVER

Explanation: All DHCP messages between a DHCP-enabled client and a DHCP server are using broadcast messages until after the DHCPACK message. The DHCPDISCOVER and DHCPREQUEST messages are the only messages that are sent by a DHCP-enabled client. All DHCP messages between a DHCP-enabled client and a DHCP server use broadcast messages when the client is obtaining a lease for the first time.

2. An administrator issues the commands:

Router(config)# interface g0/1 Router(config-if)# ip address dhcp

What is the administrator trying to achieve?

  • configuring the router to act as a DHCPv4 server
  • configuring the router to act as a relay agent
  • configuring the router to resolve IP address conflicts
  • configuring the router to obtain IP parameters from a DHCPv4 server

Explanation: The ip address dhcp command activates the DHCPv4 client on a given interface. By doing this, the router will obtain the IP parameters from a DHCPv4 server.

3. When a client is requesting an initial address lease from a DHCP server, why is the DHCPREQUEST message sent as a broadcast?

  • The client does not yet know the IP address of the DHCP server that sent the offer.
  • The client may have received offers from multiple servers, and the broadcast serves to implicitly decline those other offers.
  • The client does not have a MAC address assigned yet, so it cannot send a unicast message at Layer 2.
  • The DHCP server may be on a different subnet, so the request must be sent as a broadcast.

Explanation: During the initial DHCP exchange between a client and server, the client broadcasts a DHCPDISCOVER message looking for DHCP servers. Multiple servers may be configured to respond to this request with DHCPOFFER messages. The client will choose the lease from one of the servers by sending a DHCPREQUEST message. It sends this message as a broadcast so that the other DHCP servers that sent offers will know that their offers were declined and the corresponding address can go back into the pool.

4. Which DHCP IPv4 message contains the following information?

Destination address: 255.255.255.255
Client IPv4 address: 0.0.0.0
Default gateway address: 0.0.0.0
Subnet mask: 0.0.0.0

  • DHCPDISCOVER
  • DHCPOFFER
  • DHCPACK
  • DHCPREQUEST

Explanation: A client will first send the DHCPDISCOVER broadcast message to find DHCPv4 servers on the network. This message will have the limited broadcast address, 255.255.255.255, as the destination address. The client IPv4 address, the default gateway address, and subnet fields will all be 0.0.0.0 because these have not yet been configured on the client. When the DHCPv4 server receives a DHCPDISCOVER message, it reserves an available IPv4 address to lease to the client and sends the unicast DHCPOFFER message to the requesting client. When the client receives the DHCPOFFER from the server, it sends back a DHCPREQUEST broadcast message. On receiving the DHCPREQUEST message, the server replies with a unicast DHCPACK message.

5. What kind of message is sent by a DHCPv4 client requesting an IP address?

  • DHCPDISCOVER unicast message
  • DHCPDISCOVER broadcast message
  • DHCPOFFER unicast message
  • DHCPACK unicast message

Explanation: When the DHCPv4 client requests an IP address, it sends a DHCPDISCOVER broadcast message seeking a DHCPv4 server on the network.

6. As a DHCPv4 client lease is about to expire, what is the message that the client sends the DHCP server?

  • DHCPDISCOVER
  • DHCPREQUEST
  • DHCPACK
  • DHCPOFFER

Explanation: When a DHCP client lease is about to expire, the client sends a DHCPREQUEST message to the DHCPv4 server that originally provided the IPv4 address.​ This allows the client to request that the lease be extended.​

7. What is the destination IP address when an IPv4 host sends a DHCPDISCOVER message?

  • 192.168.1.1
  • 255.255.255.255
  • 0.0.0.0
  • 224.0.0.1

Explanation: Because a DHCP client does not have a valid IPv4 address, it must use a broadcast IP address of 255.255.255.255 as the destination address to communicate with the DHCP server. The DHCPDISCOVER message sent by the client is the first message sent in order to make initial contact with a DHCP server.

8. If more than one DHCP server is available on the local network, in which order will DHCP messages be sent between a host and a DHCP server?

  • acknowledgment, request, offer, discover
  • request, discover, offer, acknowledgment
  • discover, offer, request, acknowledgment
  • request, acknowledgment, discover, offer

Explanation: A DHCP host broadcasts a DHCP discover message to locate available servers. If more than one DHCP server is available, each server will respond to the host with a unicast DHCP offer message, which offers a lease to the client. The client then broadcasts a DHCP request message that identifies the specific server and offer that the client will accept. The identified server will unicast a DHCP acknowledgment message to finalize the offer.

9. What is the most likely scenario in which the WAN interface of a router would be configured as a DHCP client to be assigned a dynamic IP address from an ISP?

  • There is a web server for public access on the LAN that is attached to the router.
  • The router is configured as a DHCP server.
  • The router is also the gateway for a LAN.
  • It is a SOHO or home broadband router.

Explanation: SOHO and home broadband routers are typically set to acquire an IPv4 address automatically from the ISP. The IP address that is assigned is typically a dynamic address to reduce the cost, but a static IP address is possible with more cost. However, if the router is assigned a dynamic IP address, DNS issues will result in the web server behind the router not being easily accessible to the public. Routers are typically also gateways for LANs, but this has no bearing on whether the router is configured as a DHCP client on its WAN link or not. Likewise, a router can be configured to be a DHCP client in order to obtain an IP address from the ISP, but at the same time, it can be configured as a DHCP server to serve the IP addressing for the devices on its LAN.

10. Which is a DHCPv4 address allocation method that assigns IPv4 addresses for a limited lease period?

  • manual allocation
  • dynamic allocation
  • pre-allocation
  • automatic allocation

Explanation: Dynamic allocation is the most commonly implemented allocation mechanism. It leases the IP parameters for a predefined period of time.

11. What is the reason why the DHCPREQUEST message is sent as a broadcast during the DHCPv4 process?

  • for routers to fill their routing tables with this new information
  • to notify other hosts not to request the same IP address
  • for hosts on other subnets to receive the information
  • to notify other DHCP servers on the subnet that the IP address was leased

Explanation: The DHCPREQUEST message is broadcast to inform other DHCP servers that an IP address has been leased.

12. How is a DHCPDISCOVER transmitted on a network to reach a DHCP server?

  • A DHCPDISCOVER message is sent with the IP address of the default gateway as the destination address.
  • A DHCPDISCOVER message is sent with a multicast IP address that all DHCP servers listen to as the destination address.
  • A DHCPDISCOVER message is sent with the broadcast IP address as the destination address.
  • A DHCPDISCOVER message is sent with the IP address of the DHCP server as the destination address.

Explanation: The DHCPDISCOVER message is sent by a DHCPv4 client and targets a broadcast IP along with the destination port 67. The DHCPv4 server or servers respond to the DHCPv4 clients by targeting port 68.

13. Which destination IPv4 address does a DHCPv4 client use to send the initial DHCP Discover packet when the client is looking for a DHCP server?

  • 224.0.0.1
  • 255.255.255.255
  • 127.0.0.1
  • the IP address of the default gateway

Explanation: Broadcast communications on a network may be directed or limited. A directed broadcast is sent to all hosts on a specific network. A limited broadcast is sent to 255.255.255.255. When a DHCP client needs to send a DHCP Discover packet in order to seek DHCP servers, the client will use this IP address of 255.255.255.255 as the destination in the IP header because it has no knowledge of the IP addresses of DHCP servers.

14. Under which two circumstances would a router usually be configured as a DHCPv4 client? (Choose two.)

  • This is an ISP requirement.
  • The administrator needs the router to act as a relay agent.
  • The router is meant to provide IP addresses to the hosts.
  • The router is intended to be used as a SOHO gateway.
  • The router has a fixed IP address.

Explanation: SOHO routers are frequently required by the ISP to be configured as DHCPv4 clients in order to be connected to the provider.

15. Which address does a DHCPv4 server target when sending a DHCPOFFER message to a client that makes an address request?

  • broadcast MAC address
  • client hardware address
  • gateway IP address
  • client IP address

Explanation: When a DHCPv4 client does not have an IPv4 address, a DHCPv4 server will send a DHCPOFFER message back to the client hardware address of the requesting DHCPv4 client.

What is type of message that the client sends the DHCP server if the client lease is about to expire?

Which kind of message is sent by a DHCP client when its IP address lease has expired?

When the lease has expired, the client must start over with the DHCPDISCOVER process. The client ends the lease by sending a DHCPRELEASE message to the DHCP server. The server will then return the client's IP address to the available address pool.

What type of message does a DHCP server send to a client to verify if an IP address has been assigned to a client?

Offer. When a DHCP server receives a DHCPDISCOVER message from a client, which is an IP address lease request, the DHCP server reserves an IP address for the client and makes a lease offer by sending a DHCPOFFER message to the client.

What happens when a DHCP lease expires?

If the lease expires, the client must immediately discontinue its use of the current IP address. The DHCP client then begins the DHCP lease discovery process in an attempt to lease a new IP address.

Which type of DHCP message is sent from the client?

A DHCP ACK message is sent by a DHCP server to acknowledge the DHCP Request message from a DHCP client. After receiving a DHCP ACK message, the DHCP client obtains the configuration parameters including the IP address.