A client host on VLAN 10 () boots up and requires an IPv4 address lease from a centralized DHCP server located at . A Layer 3 switch serves as the DHCP relay agent with an IP helper address configured on SVI 10 (). What is the correct sequence of network operations during the initial DHCP discover and offer phase?
- 1The client host broadcasts a DHCPDISCOVER packet on UDP port 67 within VLAN 10.
- 2The Layer 3 switch populates the `giaddr` field with and sends a unicast DHCPDISCOVER packet to on UDP port 67.
- 3The DHCP server matches `giaddr` to the address pool, selects an available IP, and sends a unicast DHCPOFFER message back to .
- 4The Layer 3 switch receives the unicast DHCPOFFER and forwards it onto VLAN 10 to the requesting client on UDP port 68.
Answer
The correct order of network operations is: 1) Client host broadcasts a DHCPDISCOVER packet on UDP port 67 within VLAN 10; 2) Layer 3 switch populates the `giaddr` field with and sends a unicast DHCPDISCOVER packet to on UDP port 67; 3) DHCP server matches `giaddr` to the address pool, selects an available IP, and sends a unicast DHCPOFFER message back to ; 4) Layer 3 switch receives the unicast DHCPOFFER and forwards it onto VLAN 10 to the requesting client on UDP port 68.
The sequence begins when the host client transmits a broadcast DHCPDISCOVER frame on UDP port 67 inside VLAN 10. The Layer 3 switch (relay agent) intercepts this broadcast on SVI 10, sets the `giaddr` field to its local gateway IP (), and unicasts the packet to the remote DHCP server at on UDP port 67. Upon receiving the unicast packet, the DHCP server evaluates `giaddr` to pick an IP address from the matching scope and sends a unicast DHCPOFFER reply back to the relay agent (). Finally, the relay agent forwards the DHCPOFFER onto VLAN 10 where the client receives it on UDP port 68.
Step-by-Step Solution
Key Concept
DHCP Relay Agent Operational Packet Flow and `giaddr` Header Processing