A systems engineer is configuring a Layer 3 switch to relay DHCP requests from client devices on `Vlan 40` () to a centralized DHCP server located on `Vlan 100` (). Workstations on `Vlan 40` fail to obtain IP leases and default to APIPA addresses (). Packet captures confirm that client DHCPDISCOVER broadcast packets reach interface `Vlan 40`, but the switch never forwards them to . Reviewing the switch configuration reveals that `ip helper-address 172.16.100.10` was applied to interface `Vlan 100` instead of interface `Vlan 40`. Which of the following statements correctly explains why client leasing is failing and identifies the necessary correction?
- The relay agent must be placed on the client-facing gateway interface (`Vlan 40`) so it can intercept local layer 2 broadcasts, insert its interface IP into the gateway IP address (`giaddr`) field, and forward unicast packets to the DHCP server.Answer
- BThe relay agent placement on `Vlan 100` is correct, but cross-VLAN relaying fails because the relay command must be updated to convert broadcast UDP traffic into connection-oriented TCP port 67 traffic.
- CThe `ip helper-address` directive is required on the server-facing interface (`Vlan 100`) to permit returning unicast DHCPOFFER packets to enter the Layer 3 switch backplane.
- DThe helper command location is immaterial, but client requests fail because relay agents transmit unicast requests targeting destination UDP port 68 on the remote DHCP server instead of port 67.
Answer
The relay agent must be configured on the client-facing gateway interface (`Vlan 40`) to intercept local broadcasts, set the gateway IP address (`giaddr`) field to the switch's interface address, and unicast the DHCP request to the server.
DHCPDISCOVER messages are sent as local subnets broadcasts. A Layer 3 interface acting as the default gateway for clients must have `ip helper-address` enabled to listen for incoming UDP port 67 broadcasts on that specific interface. Once captured, the relay agent injects the incoming interface IP into the packet's `giaddr` field and forwards it via unicast routing to the designated DHCP server IP.
Step-by-Step Solution
Key Concept
DHCP Relay Agent Interface Placement and `giaddr` Insertion