A client host on VLAN 20 () broadcasts a DHCPDISCOVER request to obtain network parameters. The default gateway router R1 forwards this request to a centralized DHCP server at via an `ip helper-address` statement configured on subinterface GigabitEthernet0/0.20. Which field inside the relayed DHCP payload does R1 populate with its own ingress subinterface IP address to inform the DHCP server which address pool to use?
- Gateway IP Address (giaddr)Answer
- BClient IP Address (ciaddr)
- CYour IP Address (yiaddr)
- DClient Hardware Address (chaddr)
Answer
The Relay Agent populates the Gateway IP Address (giaddr) field with its ingress interface IP address.
When a router acts as a DHCP relay agent via the `ip helper-address` command, it receives the client's broadcast DHCPDISCOVER message, inserts its own receiving interface IP address into the Gateway IP Address (giaddr) field, and forwards the packet as a unicast message to the targeted DHCP server. The DHCP server relies on the giaddr field to identify the originating subnet and allocate an IP address from the correct pool.
Step-by-Step Solution
Key Concept
DHCP Relay Agent Operational Mechanics and giaddr Field Population