Menu
Coddy logo textTech

Your First Lab

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

A LAN (local area network) is a group of devices close enough to share one network: the machines in an office, the gadgets in a home. Instead of real cables and boxes, this course gives you netlab, a command-line lab where you build networks and watch exactly why they work or fail.

Three commands start every lab. netlab init creates the lab file (netlab.json) in your folder. netlab add host NAME adds a device such as a PC or a server. netlab show lists what you have.

Everything you build is saved in that one file, so you can inspect it with cat at any time.

challenge icon

Challenge

Beginner

Create a lab, add two hosts named pc1 and pc2, and show the result.

Expected output:

Lab created: netlab.json
Added host pc1
Added host pc2
NODE  TYPE  LINKS
pc1   host  -
pc2   host  -

Try it yourself

Terminal

All lessons in LAN Labs

Practice on your own: Terminal playground