CS FundamentalsHardGATE CS · Product company CS fundamentals

A DHCP server sits on 10.0.0.0/24 and serves clients on 10.5.7.0/24 through a relay agent on that client router interface (10.5.7.1). How does the server know which pool to allocate from?

  1. A. The client puts its subnet number in the ciaddr field of DHCPDISCOVER
  2. B. The relay writes its interface address 10.5.7.1 into giaddr; the server picks the matching pool
  3. C. The server looks at the source MAC address of the request
  4. D. The server allocates from its own subnet 10.0.0.0/24 and the router translates it

Correct answer: B. The relay writes its interface address 10.5.7.1 into giaddr; the server picks the matching pool

The client has no address yet (ciaddr = 0.0.0.0) and its broadcast cannot cross the router. The relay unicasts the message to the server with giaddr = the receiving interface's address; the server uses giaddr to choose the scope and sends its reply back to the relay.

More Computer Networks questions

Exams that ask this topic