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
BeginnerCreate 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
All lessons in LAN Labs
2Addresses on the LAN
Giving a Host an AddressThe First PingWhat ARP LearnedThe Switch Learns TooRecap - First Conversation8Capstone - Fix the Branch
Survey the DamageFix the Address ClashMasks and GatewaysRecap - Prove It WorksPractice on your own: Terminal playground