When a network router configured as a DHCP relay agent receives an incoming DHCPDISCOVER broadcast message from a client host, how does it modify the packet header before forwarding it to a remote DHCP server?
- It sets the Gateway IP Address (GIADDR) field to the IP address of the router interface that received the broadcast.Answer
- BIt alters the destination port of the packet from UDP port 67 to UDP port 68.
- CIt converts the transport layer protocol from UDP to TCP to ensure connection-oriented delivery across subnets.
- DIt forwards the request as a Layer 2 broadcast frame across all active interfaces on the router.
Answer
The router sets the Gateway IP Address (GIADDR) field to the IP address of the receiving interface before forwarding the packet as a unicast message to the DHCP server.
When a router acts as a DHCP relay agent, it intercepts broadcast DHCPDISCOVER messages on a local network interface and populates the Gateway IP Address (GIADDR) field with that interface's IP address. It then unicasts the packet to the remote DHCP server, allowing the server to determine which pool of addresses to draw from based on the GIADDR subnet.
Step-by-Step Solution
Key Concept
DHCP Relay GIADDR Field Population