Network Design and Operations

Hosts in VLAN 20 (192.168.20.0/24) are to get addresses from a DHCP server, 10.0.0.5, on another network. A DHCP relay agent is therefore configured on the L3 switch interface 192.168.20.1, which is VLAN 20's default gateway. Which statement correctly describes what the relay agent does?

  1. AIt receives the DHCP messages that hosts broadcast, writes its own VLAN 20 address 192.168.20.1 into them and forwards them by unicast to 10.0.0.5. From this address, the server chooses an address from the range for 192.168.20.0/24
  2. BThe L3 switch starts forwarding the broadcasts it receives to every network, so the DHCP messages reach the server
  3. CThe L3 switch chooses addresses and leases them to hosts in place of the DHCP server, only reporting the results to 10.0.0.5
Show answer and explanation

Answer: A. It receives the DHCP messages that hosts broadcast, writes its own VLAN 20 address 192.168.20.1 into them and forwards them by unicast to 10.0.0.5. From this address, the server chooses an address from the range for 192.168.20.0/24

A host that has no address yet broadcasts a Discover to find a DHCP server, but routers and L3 switches do not forward broadcasts to other networks. A DHCP relay agent receives these messages, relays them to the server by unicast, and passes the server's replies back to the host. When relaying, it writes the address of its host-side interface (192.168.20.1 here) into a field of the message (giaddr). From this address, the server learns which subnet the host is on (192.168.20.0/24) and chooses an address from the range for that subnet. This way, a single DHCP server can serve many subnets without a server in every VLAN.

  • A. Correct. It turns the broadcast into unicast and tells the server which subnet the host is on.
  • B. A relay agent relays only DHCP messages to a configured server. It does not forward broadcasts in general.
  • C. The DHCP server chooses and leases the addresses. The relay agent only relays.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. Which DNS resource record specifies the mail server that receives email addressed to a domain?
  2. Which statement correctly describes how recursive and non-recursive (iterative) queries are used in DNS name resolution?
  3. For a web server move, the IP address in the A record for www.example.com will be changed. The record's TTL is currently 86400 seconds, and to keep the time the old address is used after the change to about 5 minutes at most, the TTL will be lowered to 300 seconds beforehand. Resolvers cache records exactly for their TTL. Which is the correct deadline for lowering the TTL?
  4. A router that performs NAPT (outside address 198.51.100.7) is configured with port forwarding, a static setting that translates only the destination: "forward traffic arriving at outside TCP port 8080 to port 80 on the inside web server 192.168.1.20." When host 203.0.113.9 on the internet connects from source port 51000 to port 8080 on 198.51.100.7, which is the destination and source of the packets the web server receives?
  5. An ACL that checks incoming packets from the top is applied to a router interface. Rule 1 is "permit traffic to TCP port 443 on 10.0.0.10," rule 2 is "deny all traffic from source 192.168.1.0/24," and rule 3 is "permit traffic from source 192.168.0.0/16 to TCP port 80"; there are no other rules. Of the four packets (i) "from 192.168.1.5 to TCP port 443 on 10.0.0.10," (ii) "from 192.168.1.5 to TCP port 80 on 10.0.0.20," (iii) "from 192.168.2.5 to TCP port 80 on 10.0.0.20" and (iv) "from 192.168.2.5 to TCP port 22 on 10.0.0.20," which choice lists all the packets that are let through?

Comparisons in this topic