Configuration snippets
Troubleshooting workflow
A safe in-browser simulator of the sample office lab: a switch, a router and a Windows PC. Pick a device and type commands. Nothing here touches a real network.
Lab tasks · VLAN 10 · 192.168.10.0/24
- Create VLAN 10 named IT on SW1
- Put SW1 gi1/0/1 and gi1/0/24 in access VLAN 10
- Set R1 gi0/0 to 192.168.10.1 255.255.255.0 and bring it up
- From PC-IT: ping 192.168.10.1
Topology: PC-IT ⇄ SW1 gi1/0/1 · R1 gi0/0 ⇄ SW1 gi1/0/24. Type ? for commands.
SW1 console
IPv4 Subnet Calculator
Enter an IP address (or 192.168.1.10/24) and a prefix. Pick a class to load a typical network.
Result
Binary (network bits highlighted)
Split into subnets (VLSM)
Address classes
| Class | First octet | Leading bits | Default mask | Networks | Hosts / network | Use |
|---|---|---|---|---|---|---|
| A | 1 – 126 | 0 | 255.0.0.0 /8 | 126 | 16,777,214 | Very large networks |
| B | 128 – 191 | 10 | 255.255.0.0 /16 | 16,384 | 65,534 | Medium networks |
| C | 192 – 223 | 110 | 255.255.255.0 /24 | 2,097,152 | 254 | Small networks, LANs |
| D | 224 – 239 | 1110 | n/a | n/a | n/a | Multicast |
| E | 240 – 255 | 1111 | n/a | n/a | n/a | Experimental / reserved |
Special and private ranges
| Range | CIDR | Purpose |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | Private Class A, large enterprises |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | Private Class B range |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | Private Office and home LANs |
| 127.0.0.0 – 127.255.255.255 | 127.0.0.0/8 | Loopback |
| 169.254.0.0 – 169.254.255.255 | 169.254.0.0/16 | APIPA No DHCP answer |
| 100.64.0.0 – 100.127.255.255 | 100.64.0.0/10 | CGNAT Carrier-grade NAT |