A network administrator is troubleshooting a DHCP relay issue on a Cisco IOS router. Host devices on VLAN 30 () use subinterface GigabitEthernet0/0.30 () as their default gateway. The centralized DHCP server is located at , connected off router interface GigabitEthernet0/1 ().
Packet captures at the DHCP server reveal that incoming relayed DHCP DISCOVER messages contain a Relay Agent IP Address (`giaddr`) of instead of . Consequently, the DHCP server fails to assign addresses from the intended pool.
Which router misconfiguration causes the `giaddr` field to be set to ?
- The `ip helper-address 10.10.10.50` command was incorrectly applied to interface GigabitEthernet0/1 instead of subinterface GigabitEthernet0/0.30.Answer
- BThe `ip helper-address 10.10.10.50` command was correctly placed on subinterface GigabitEthernet0/0.30, but Option 82 insertion altered the `giaddr` to the egress interface address.
- CThe router interface GigabitEthernet0/0.30 failed to intercept broadcast packets because DHCP relay must be globally activated using `ip dhcp relay enable`.
- DThe router was configured with `ip helper-address 172.16.30.1` on subinterface GigabitEthernet0/0.30, causing the gateway address to match the outbound interface.
Answer
The `ip helper-address 10.10.10.50` command was incorrectly applied to interface GigabitEthernet0/1 instead of subinterface GigabitEthernet0/0.30.
When a Cisco router acts as a DHCP relay agent, it listens for broadcast UDP port 67 messages on interfaces configured with `ip helper-address <server_ip>`. When a DISCOVER packet is received on such an interface, the router converts the broadcast to a unicast packet sent to the helper IP and populates the `giaddr` (Gateway IP Address) field with the primary IP address of the INCOMING interface. Because `giaddr` was set to , the `ip helper-address` command was erroneously placed on interface GigabitEthernet0/1. Moving the command to GigabitEthernet0/0.30 ensures `giaddr` is populated as , allowing the DHCP server to allocate from the correct pool.
Step-by-Step Solution
Key Concept
DHCP Relay Agent Ingress Interface Binding and giaddr Population