Question

Difficulty: MediumDHCP Architecture and Relay Services

An enterprise network engineer configures a DHCP relay service on a Layer 3 router interface servicing a remote VoIP VLAN (172.16.30.0/24172.16.30.0/24). When an IP phone boots up and sends a broadcast DHCPDISCOVER frame, the router encapsulates this message into a unicast IPv4 packet targeted directly at the centralized DHCP server (10.10.5.5010.10.5.50). Which field in the DHCP message header does the relay agent populate with its own interface IP address (172.16.30.1172.16.30.1) so that the DHCP server selects the appropriate address pool?

  1. giaddr (Gateway IP Address)Answer
  2. B
    ciaddr (Client IP Address)
  3. C
    yiaddr (Your IP Address)
  4. D
    chaddr (Client Hardware Address)

Answer

The giaddr (Gateway IP Address) field is populated by the DHCP relay agent with its own interface IP address to tell the server which IP scope to allocate from.
When a DHCP relay agent intercepts a broadcast DHCPDISCOVER request, it modifies the packet by inserting the IP address of the local receiving interface into the giaddr (Gateway IP Address) field. It then forwards the packet via unicast to the remote DHCP server. Upon receipt, the DHCP server evaluates the giaddr value to match it against configured scopes, ensuring the client receives an IP address valid for its local IP subnet.

Step-by-Step Solution

1
Analyze the client DHCP request process across subnets
The client issues a layer 2/3 broadcast message (DHCPDISCOVER) because it does not yet possess an IP address or know the server location.
Routers drop layer 2 broadcast frames by default, requiring a relay agent (IP helper) to bridge communication across subnets.
2
Examine the role of the DHCP Relay Agent
The relay agent intercepts the local broadcast, sets the giaddr field to the router interface's IP address (172.16.30.1172.16.30.1), and unicasts the packet to the DHCP server.
The centralized server uses the giaddr field to determine which address pool (172.16.30.0/24172.16.30.0/24) matches the client's physical network segment.

Key Concept

DHCP Relay Agent and giaddr Header Field Processing
Rate this question