How a Device Joins the Network

GoSetup TeamFebruary 22, 202662 views

When a device connects to a network — over Wi-Fi or via Ethernet — it is not yet a full participant in that network.

Before it can communicate, it must receive configuration parameters that allow it to:

  • identify its position within the network
  • determine the boundaries of the local segment
  • know where to send traffic destined for other networks

This process happens automatically and follows a structured sequence. Let's break it down step by step.

1. MAC Address — Physical Identification

Every device with a network interface has a MAC address (Media Access Control).

A MAC address is a hardware identifier assigned to a network interface. It:

  • is assigned by the manufacturer
  • is unique to the interface
  • is used for communication within the local network

Example:

00:1A:2B:3C:4D:5E

Consider your phone. When connected to your home network, its MAC address remains the same. When connected to your office network, the MAC address remains the same.

The device has not changed, so its physical identifier does not change.

However, MAC addresses are used only within a local network segment. They are not used for routing traffic across the internet.

2. The Device Connects — But Knows Nothing Yet

When a device first connects to a network, it does not know:

  • its IP address
  • the subnet mask
  • the default gateway
  • the DNS server

Without these parameters, it cannot communicate properly.

This is where DHCP comes into play.

3. DHCP — Automatic Network Configuration

DHCP (Dynamic Host Configuration Protocol) automatically configures a device when it joins a network.

The process follows four steps, commonly referred to as DORA:

1. Discover

The device broadcasts a request asking: "Is there a DHCP server available?"

2. Offer

The router (or a dedicated DHCP server) responds with an available IP address.

3. Request

The device confirms that it accepts the offered IP address.

4. Acknowledge

The server assigns the configuration and activates it.

After this exchange, the device receives:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server
  • Lease time

The device is now fully configured and ready to operate in the network.

4. IP Address — Logical Addressing

An IP address identifies a device within a specific network.

Example in a home network:

192.168.1.25

If you connect to a different network, you will receive a different IP address.

An IP address is not a permanent identifier of the device. It represents the device's location within the current network.

Dynamic IP

By default, IP addresses are assigned dynamically. DHCP grants an address for a specific lease time.

When the lease expires:

  • the address may be renewed
  • or a new one may be assigned

For typical usage, this is completely normal.

Static IP and DHCP Reservation

In some cases, a device must always keep the same IP address. Examples include:

  • Sonos systems
  • NAS devices
  • IP cameras
  • servers

If the IP address changes, other devices may lose access to it.

In these situations, you can:

  • configure a static IP manually
  • or create a DHCP reservation (binding a specific IP to a specific MAC address)

Example:

192.168.1.10 — Sonos
192.168.1.20 — NAS
192.168.1.30 — Camera

This creates a predictable and stable network configuration.

5. Subnet Mask — Defining Network Boundaries

An IP address alone does not define where the network ends and the host portion begins. That is determined by the subnet mask.

Example:

192.168.1.25/24

/24 means:

  • the first 24 bits represent the network
  • the remaining bits represent individual devices

The subnet mask allows a device to determine:

  • whether the destination is within the same local network
  • or whether traffic must be sent to the router

6. Default Gateway — Leaving the Local Network

The default gateway is the IP address of the router.

Example:

IP: 192.168.1.25
Mask: 255.255.255.0
Gateway: 192.168.1.1

If a device needs to communicate with an address outside its local network, it sends traffic to the gateway.

The gateway is the exit point from the local network. Without it, the device would not be able to reach external networks.

7. What the Device Has After Initialization

After completing this process, the device has:

  • MAC address — physical identity
  • IP address — logical identity
  • Subnet mask — network boundaries
  • Default gateway — path to other networks
  • DNS server — name resolution capability

At this point, the device is fully integrated into the network and ready to establish connections.

Conclusion

Connecting to a network is more than just joining Wi-Fi. It is a structured process:

  1. Physical identification via MAC
  2. Automatic configuration via DHCP
  3. Logical addressing via IP
  4. Boundary definition via subnet mask
  5. External routing via default gateway

Only after these steps does a device become a functional participant in the network.

Found this helpful? Share it!

Stay Updated

Get notified about new articles

No spam. Unsubscribe anytime.