Lesson 4 of 8 · 30 minutes

Local delivery and network configuration

Connect ARP, DHCP, and ICMP to the everyday task of getting a host online.

What you will learn

  • Explain why ARP resolves the next hop rather than every remote server.
  • Describe the initial DHCP exchange.
  • Interpret an ICMP result without overstating it.

ARP finds an IPv4 neighbour

On an Ethernet IPv4 LAN, a sender needs the MAC address of its next hop. If it has no usable cached mapping, it broadcasts an ARP request asking who owns that local IP address. The owner normally replies with its MAC address, and the sender can cache the mapping for subsequent frames.

For a remote IP destination, the next hop is usually a router. The host asks for the router’s MAC address, not the remote server’s. ARP is local to the link and does not provide an end-to-end internet directory. Cached entries also explain why a capture may show IP traffic without a preceding ARP exchange.

DHCP supplies configuration

An initial DHCPv4 exchange commonly follows Discover, Offer, Request, Acknowledge. A client seeks configuration, a server offers a lease, the client requests an offer, and the server acknowledges it. DHCP can supply an IP address, subnet mask, router, DNS servers, and lease timing. DHCPv4 uses UDP server port 67 and client port 68.

A lease lasts for a limited period and can be renewed. A capture that starts after initial configuration may show only a renewal or no DHCP at all. Some hosts use static settings. A DHCP failure can prevent normal connectivity, but seeing no DHCP packets does not prove that failure.

If a host self-assigns a 169.254.x.x link-local address when the LAN expects DHCP, investigate the lease process, VLAN, and link. This is a clue, not proof that the DHCP server is down. IPv4 link-local autoconfiguration selects from 169.254.1.0–169.254.254.255; the first and last /24 within 169.254/16 are reserved. A successful lease should include the expected prefix and gateway, not merely an address.

ICMP reports reachability and errors

ICMP carries IP control and error information. Ping normally sends echo requests and looks for echo replies. An echo reply supports reachability for that exchange, while an ICMP destination-unreachable message supplies a more specific clue about failed delivery. Inspect the sender, type, code, and quoted original packet.

A successful ping does not prove that a web service is listening. No echo reply is also inconclusive: filtering, loss, an unavailable destination, or capture limitations can all explain it. Traceroute uses hop limits and responses to probe a path, but unanswered probes and different return paths limit what the result establishes.

Keep these points in mind

  • Explain why ARP resolves the next hop rather than every remote server.
  • Describe the initial DHCP exchange.
  • Interpret an ICMP result without overstating it.

Pause and practise

A laptop can ping its gateway but cannot load a remote website. State what the ping establishes and two checks to perform next.

Show a worked response

The gateway answered an ICMP exchange, supporting local IP reachability at that moment. Check whether DNS resolves the website and whether a connection to the destination service receives a response. Also verify the default route; the gateway responding does not establish onward routing or a working application.

Check your understanding

Choose the best response to each scenario, then check your reasoning. These are course practice questions.

1. Why might a healthy host send no ARP request during a short capture?

0 of 1 answered

Next lesson →
← Previous lesson