A network engineer configures an IP helper address on a Layer 3 switch's VLAN interface () to relay client requests to a centralized DHCP server at . When a workstation on VLAN 10 broadcasts a DHCPDISCOVER message, which set of actions does the DHCP relay agent perform on the packet before sending it to the server?
- It populates the giaddr field with , sets the source IP to its outgoing interface address, and unicasts the packet to via UDP port 67.Answer
- BIt encapsulates the DHCP broadcast inside a TCP port 67 session established with to ensure reliable delivery across the routed network.
- CIt changes the destination UDP port from 67 to 68 so that the central DHCP server receives the request on its listening service port.
- DIt floods the unmodified Layer 2 broadcast frame across all active Layer 3 routed ports until it reaches the VLAN where the DHCP server resides.
Answer
The DHCP relay agent populates the giaddr (gateway IP address) field with the local interface address (), converts the client's Layer 2 broadcast into a Layer 3 unicast packet, and forwards it directly to the DHCP server () using UDP destination port 67.
When a Layer 3 device functions as a DHCP relay agent (via `ip helper-address`), it intercepts client DHCPDISCOVER broadcast packets on the receiving interface. It modifies the packet by inserting its own local interface IP address into the `giaddr` (Gateway IP Address) header field and replaces the broadcast destination address with the specific unicast IP address of the DHCP server. It then forwards the packet across the routed infrastructure using standard UDP port 67.
Step-by-Step Solution
Key Concept
DHCP Relay Agent and GIADDR Operation