Network foundationsUnit 2 of 5
Beginner20 minIn reviewTranslation in review

Local network, interfaces, Ethernet and Wi-Fi

Connect a device to a local network and separate interfaces, links, hardware addresses and IP addresses.

What you will learn
  • Distinguish a device from each network interface it contains.
  • Explain why local Ethernet delivery and IP addressing are related but different layers.
Know this first
  • Network foundations
  • Computer
  • Packet
Start this unit
Last verifiedReview every 365 days
On this page

One device can have several interfaces

A laptop may contain an Ethernet interface and a Wi-Fi interface. Each interface is a connection point with its own state and identifiers. “The laptop is online” is therefore less precise than “its Wi-Fi interface is connected and has an IP configuration.”

Ethernet and Wi-Fi can carry data on a local network. Ethernet commonly uses a cable; Wi-Fi uses radio. Both can connect an interface to the same logical local network, but their physical and link behaviour are not identical.

On an Ethernet-style local network, frames use link-layer addresses—commonly called MAC addresses—for local delivery. IP addresses serve a different purpose: logical delivery across an IP network and, with routing, between networks.

A local exchange

application data
      ↓
IP packet: source and destination IP address
      ↓
local frame: source and destination link-layer address
      ↓
Ethernet cable or Wi-Fi radio link

The layers describe different responsibilities. The packet can remain logically addressed to the final IP destination while each local link uses the addresses needed for its next local delivery.

Inspect the simulator

TRY IT HERE

Separate the interface address, default route and reachability observation.

Deterministic simulator: no real shell, network or access to your files.

Suggested sequence

$ …

What happened: 192.0.2.10 is the host address; 192.0.2.1 is the default gateway in this reserved fixture.

Use ip address to identify the simulated interface and its IP address. Do not invent a MAC address: this simulator does not currently model one.

Common mistakes

  • Wi-Fi is not the internet; it is a local access technology.
  • A MAC address and an IP address are not interchangeable.
  • ARP resolves a local IPv4-to-link-layer mapping; DNS resolves typed data associated with names.
Next stepPackets, clients, servers and ports

Now follow the data from a process to a particular service.