Beginner

Your Home Network

A PC and a phone behind a home router that shares one public address with NAT. Take the NAT rule away and see why every home network needs it.

Open this lab

Free interactive lab. No signup. Runs in your browser.

The scenario

PC (192.168.0.10) and Phone (192.168.0.11) plug into Home-Switch, which plays the part of the router's LAN ports and WiFi. Home-Router has two sides: 192.168.0.1 on the home network, which both devices use as their default gateway, and 203.0.113.2 on the ISP side. ISP stands in for the internet: a web server at 203.0.113.1 listening on TCP port 80. Home-Router rewrites the source of everything leaving the home network to 203.0.113.2, so ISP only ever sees that one address and never needs to know about 192.168.0.0/24.

What you will work out

Understand how devices at home share one internet connection through a router that does NAT.

Why this matters

This is the network in most homes. Knowing its parts helps with everyday problems: two devices at home can reach each other while the internet is down, because that traffic never leaves the switch; over IPv4, nothing on the internet can start a connection to a device at home unless the router is told to forward it (port forwarding); and every device on the home network shows up online as the router's one address.

Running it

Your Home Network opens on a canvas, already wired and addressed. Trace a packet through it hop by hop, or run the same topology live on real Linux network namespaces. How the two modes differ.

Open Your Home Network

Runs in your browser. No install, no signup, and the simulation starts instantly.

Open the lab →