Interconnection · Lesson 01

How does a device join a network?

Before a device can ask for a web page, it needs a local identity, a route out, and a way to find names. DHCP (Dynamic Host Configuration Protocol) supplies much of that starting configuration.

The joining problem

A new device needs more than a cable or a signal.

When a laptop joins a local network, it needs an address that is valid there. It also needs to know which destinations are local, which device can forward traffic elsewhere, and which resolver can answer names.

DHCP lets a local network provide this configuration automatically. The result is not a permanent identity: it is a lease that can be renewed, changed, or replaced.

DHCP is a starting conversation.The device asks for configuration, a DHCP server offers values, and the device accepts a lease for a limited time.

Build the model

Four pieces of local configuration

01

IP (Internet Protocol) address

Identifies the device on the local network, such as 192.168.1.24.

02

Subnet mask

Helps the device decide whether a destination is local or needs a router.

03

Gateway

Names the local router that can forward traffic to another network.

04

DNS (Domain Name System) server

Provides a resolver that can translate human-readable names into addresses.

Mini experiment

Offer a network lease

Follow the simplified DHCP exchange. Each step adds one piece of the configuration needed by the device.

DHCP Discover

The device broadcasts that it needs local network configuration.

Start with a discovery message because the device does not yet know its DHCP server.

Extend the configuration model

IPv6 can combine Router Advertisements, SLAAC, and DHCPv6.

IPv6 does not use the IPv4 DHCP exchange unchanged. A router sends a Router Advertisement that announces a prefix and tells hosts how to configure themselves. A host may then use SLAAC to create its own address, DHCPv6 to obtain additional parameters, or DHCPv6 with stateful address assignment when the network wants a server to allocate addresses.

RA

Router Advertisement

Provides the prefix, default-router information, and flags describing the preferred configuration method.

S

SLAAC

Lets a host form an IPv6 address from an advertised prefix and its interface identity or a privacy identifier.

M

Stateful DHCPv6

With the managed-address flag, a host asks a DHCPv6 server to allocate an IPv6 address and track the lease.

O

Other configuration

With the other-configuration flag, a host may use DHCPv6 for DNS information or other parameters while keeping its address from SLAAC.

DHCPv6 uses messages such as Solicit, Advertise, Request, and Reply. Unlike DHCPv4, DHCPv6 does not normally provide the default route; Router Advertisements remain responsible for that local routing information.

IPv6 address assignment and DNS are separate decisions.DHCPv6 may provide DNS resolver information, while an AAAA record publishes an IPv6 address for a name. One configures the host; the other describes a service in DNS.

Historical evolution

BOOTP prepared the ground for DHCP.

BOOTP (Bootstrap Protocol) helped a device without a configured IP address obtain an address and boot information from a server. It was designed for network boot and diskless workstations, using UDP and relay agents so a server could serve clients beyond the local broadcast network.

Unlike modern DHCP, classic BOOTP used relatively permanent, administrator-managed mappings rather than a general lease lifecycle. Its fixed message and option model could provide an address, gateway, boot file name, and boot server, but it did not offer DHCP's flexible pool allocation and renewal process.

01

RARP

A device MAC address was used to ask for an IPv4 address, with very limited configuration.

02

BOOTP

Added server and boot-file configuration, often through a relay, for diskless network startup.

03

DHCP

Extended the model with dynamic pools, leases, renewal, and richer options.

BOOTP is historical, but its model still explains DHCP.Modern PXE and embedded boot workflows may still use DHCP-style options and network boot services, while ordinary host configuration generally uses DHCP.

Knowledge check

Test your local network model

Answer five questions. The answer order changes each time.

0 / 5