Network foundationsUnit 2 of 3
Beginner22 minIn reviewreview

IP addresses and local networks

Read an interface address and prefix, then decide which destinations belong to the local network.

What you will learn
  • Read an IPv4 interface address with a prefix length.
  • Explain why the prefix is needed to decide whether a destination is local.
Know this first
  • Network foundations
  • Network interface
  • Packet
Start this unit
Last verifiedReview every 365 days
On this page

Address plus context

An IPv4 address identifies an interface in an IP network context. The prefix length tells the host how many leading bits describe the local network.

Our simulator uses:

Interface: lab0
IPv4:     192.0.2.10/24

192.0.2.10 is the interface address. /24 is the prefix length. Together they tell the host that destinations in 192.0.2.0/24 are local to this exercise.

What the prefix changes

An address alone is not enough to decide whether another address is local. The prefix supplies that boundary. If a destination is local, the host can try to reach it on the local network. If it is not local, the host needs a route—usually through a default gateway.

Try it

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.

Common mistakes

  • /24 is not part of the device name; it describes a network prefix length.
  • An IP address identifies an interface in context, not automatically a person or an entire physical machine.
  • Receiving a ping reply does not prove that every application or port works.

Quick check

In the fixture, identify the host address, prefix and gateway. Which one is the local computer's interface address?

Next stepGateway and router

Follow a packet from the host to another network.