A client workstation connected to VLAN 45 () issues a Layer 2 broadcast `DHCPDISCOVER` packet () to obtain an IP configuration. The default gateway interface for VLAN 45 on the Layer 3 switch is configured with the IP address and an IP helper address pointing to a centralized DHCP server at . Which set of header and payload modifications will the Layer 3 switch perform on this packet before forwarding it across the routed core to the DHCP server?
- It sets the Gateway IP Address (`giaddr`) field in the DHCP payload to , sets the source IP address to , sets the destination IP address to , and forwards the unicast packet using UDP destination port 67.Cevap
- BIt sets the Gateway IP Address (`giaddr`) field in the DHCP payload to , retains the source IP address as , sets the destination IP address to , and forwards the packet using UDP destination port 68.
- CIt leaves the Gateway IP Address (`giaddr`) field as , sets the source IP address to , sets the destination IP address to , and converts the transport layer header to TCP port 67.
- DIt preserves the original Layer 2 broadcast payload unchanged and encapsulates the frame into a VLAN-wide Layer 2 switchport broadcast transmitted across all trunk links using UDP port 68.
Cevap
The Layer 3 switch populates the Gateway IP Address (`giaddr`) field in the DHCP payload with , rewrites the source IP address as , sets the destination IP to , and forwards the unicast packet using UDP port 67.
The correct answer accurately describes the dual modification executed by a DHCP relay agent (IP helper): it writes the receiving Layer 3 interface's IP address () into the DHCP payload's `giaddr` (gateway IP address) field, and encapsulates the request into a standard unicast IP packet (Source: , Destination: , UDP Port 67) so it can be routed across network subnets.
Adım Adım Çözüm
Anahtar Kavram
DHCP Relay Agent Payload and Header Modification (`giaddr` Insertion & Broadcast-to-Unicast Conversion)