In a multi-vlan corporate topology, an end host attached to subinterface GigabitEthernet0/0.30 broadcasts a DHCP DISCOVER frame. The gateway router (R1) has subinterface GigabitEthernet0/0.30 configured with IPv4 address 192.168.30.1/24 and the ip helper-address 10.5.5.50 command pointing to a central DHCP server. When R1 processes and forwards this DHCP request to the server across the routed core, which field in the DHCP message header does R1 modify, and what specific value is inserted into that field?
- The Gateway IP Address (giaddr) field, populated with 192.168.30.1Answer
- BThe Gateway IP Address (giaddr) field, populated with 10.5.5.50
- CThe Server Host Name (sname) field, populated with 192.168.30.1
- DThe Client IP Address (ciaddr) field, populated with 192.168.30.255
Answer
The correct answer specifies that the Gateway IP Address (giaddr) field is populated with 192.168.30.1.
When a router receives a broadcast DHCP message on an interface configured with `ip helper-address`, it acts as a DHCP Relay Agent. The router converts the broadcast into a unicast message sent to the IP specified in the `ip helper-address` command. Crucially, the router sets the `giaddr` (Gateway IP Address) field inside the DHCP header to the primary IPv4 address configured on the interface that received the client's broadcast (192.168.30.1). This informs the central DHCP server which IP pool/subnet to select an address from and provides the return path for the unicast DHCP OFFER.
Step-by-Step Solution
Key Concept
DHCP Relay Agent GIADDR Field Operation