Menu
Coddy logo textTech

Wires Are Not Enough

Lesson 3 of 35 in Coddy's LAN Labs course.

Cabled does not mean connected. A cable carries signals, but a device can only be addressed once it has an IP address, and netlab is honest about that: pinging an unaddressed host fails with the exact reason.

netlab show ip is the addressing view of the lab: one line per interface, with its address, mask and gateway, or a dash where nothing is configured yet. netlab ping A B asks whether A can reach B and, when it cannot, tells you why in one line.

Get used to reading those reasons. Real networks fail silently; the lab never does.

challenge icon

Challenge

Beginner

The two hosts are cabled to sw1 but have no addresses. Show the addressing view, then try to ping pc2 from pc1.

Expected output:

NODE  IFACE  ADDRESS  MASK  GATEWAY
pc1   eth0   -        -     -
pc2   eth0   -        -     -
pc1 -> pc2: unreachable (pc1 has no IP address)

Try it yourself

Terminal

All lessons in LAN Labs

Practice on your own: Terminal playground