Resources
Networking tools for planning, documenting and troubleshooting real networks — plus quick-reference sheets from the CCNA 200-301 course.
NetExam Pro
Resources
Real-world tools for planning, documenting and troubleshooting networks.
Subnet Calculator
Network, broadcast, hosts and ranges
Network Documentation
Document devices, IPs, VLANs, ISP & Wi-Fi
Physical Topology
Sites & WAN links: fibre, leased line, VPN
Bill of Materials
Parts list, import from NetBuild Pro
IP Converter
Decimal ↔ binary ↔ hex
Wildcard Calculator
Mask ↔ wildcard for ACLs & OSPF
VLSM Planner
Carve a block into right-sized subnets
VLAN Planner
Plan VLAN IDs, names and subnets
DHCP Planner
Scopes, exclusions & reservations
Ports Reference
Searchable TCP/UDP port list
Cable Reference
Copper & fibre types and distances
Password Generator
Strong passwords for devices
NetBuild Pro
Build networks from scratch — routers, switches, firewalls.
Quick Reference
Ports, AD values, subnetting and more — the facts to memorise.
Flashcards
Flip cards across every domain. Shuffle, filter, and drill what you miss.
Reference sheets
Free to keep — print one or save it as a PDF.
…
IPv4 subnetting cheat sheet
The quick method
- Find the interesting octet — the one where the mask is not 255 and not 0.
- Work out the magic number: 256 minus the mask value in that octet.
- Subnet IDs are the magic-number multiples (0, magic, 2×magic…). The IP belongs to the largest multiple at or below its value in that octet.
- Broadcast = the next subnet ID minus 1. Usable hosts sit between the two.
Example: 192.168.5.73 with mask 255.255.255.192 — the interesting octet is the 4th, magic = 256 − 192 = 64. Subnets at 0, 64, 128, 192… so .73 sits in 192.168.5.64, broadcast is 192.168.5.127, usable .65–.126.
Prefix, mask and usable hosts
| Prefix | Mask (last octet) | Usable hosts | Prefix | Mask (last octet) | Usable hosts |
|---|---|---|---|---|---|
| /16 | 255.255.0.0 | 65,534 | /24 | 255.255.255.0 | 254 |
| /17 | 255.255.128.0 | 32,766 | /25 | 255.255.255.128 | 126 |
| /18 | 255.255.192.0 | 16,382 | /26 | 255.255.255.192 | 62 |
| /19 | 255.255.224.0 | 8,190 | /27 | 255.255.255.224 | 30 |
| /20 | 255.255.240.0 | 4,094 | /28 | 255.255.255.240 | 14 |
| /21 | 255.255.248.0 | 2,046 | /29 | 255.255.255.248 | 6 |
| /22 | 255.255.252.0 | 1,022 | /30 | 255.255.255.252 | 2 |
| /23 | 255.255.254.0 | 510 | /31 | 255.255.255.254 | 2* |
* /31 has 2 usable addresses with no broadcast (used on point-to-point links). For every other mask: usable hosts = 2^(host bits) − 2 (network ID and broadcast excluded).
Which prefix for how many hosts?
| Hosts needed | 2 | 6 | 14 | 30 | 62 | 126 | 254 | 510 | 1,022 |
|---|---|---|---|---|---|---|---|---|---|
| Use prefix | /30 | /29 | /28 | /27 | /26 | /25 | /24 | /23 | /22 |
Design tip: always allow room to grow, then pick the smallest prefix that still fits the inflated number.
Private and special ranges
| Range | Meaning |
|---|---|
| 10.0.0.0/8 | Private (Class A space) |
| 172.16.0.0/12 | Private (172.16.0.0 – 172.31.255.255) |
| 192.168.0.0/16 | Private (Class C space) |
| 127.0.0.0/8 | Loopback (this device) |
| 169.254.0.0/16 | APIPA — device gave up waiting for DHCP |
| 224.0.0.0 – 239.255.255.255 | Multicast |
Summarised from the NetExam Pro CCNA 200-301 course, Module 2 (IPv4 addressing and subnetting).
IOS command reference
Modes
enable ! user EXEC > to privileged EXEC # configure terminal ! privileged EXEC to global config end ! back to privileged EXEC from anywhere exit ! one level up (also logs out of the device)
First-time setup
hostname R1 no ip domain-lookup ! stop the CLI trying to resolve typos as DNS banner motd # Authorised access only # enable secret <password> ! privileged EXEC password (hashed) line console 0 password <password> login line vty 0 4 password <password> login service password-encryption
Interfaces
interface GigabitEthernet0/0 description Link to ISP ip address 203.0.113.2 255.255.255.252 no shutdown ! interfaces are administratively down by default
Show commands (verification)
| Command | Tells you |
|---|---|
| show version | Model, IOS version, uptime |
| show running-config | Current config in memory (show startup-config = saved) |
| show ip interface brief | Every interface: IP, up/down status |
| show interfaces status | Switch ports: connected, speed, duplex, VLAN |
| show interfaces description | What each interface is cabled to |
| show cdp neighbors | Directly connected Cisco devices |
| show vlan brief | VLANs and which ports are in them |
| show interfaces trunk | Which VLANs each trunk carries |
| show mac address-table | Learned MAC → port mappings |
| show spanning-tree vlan 10 | STP root, port roles for a VLAN |
| show etherchannel summary | Bundled ports and their state |
| show ip route | Routing table (C = connected, L = local, S = static) |
| show ip route static | Static routes only (swap in ospf, connected…) |
| show ip protocols | Routing protocols actually running |
| show ip ospf neighbor | OSPF adjacencies (want FULL) |
| show access-lists | ACLs and their match counters |
| show ip dhcp binding | Leases handed out by the DHCP server |
| show ip nat translations | Active NAT sessions |
| show ipv6 interface brief | IPv6 addresses and interface status |
| show ipv6 route | IPv6 routing table |
| ping 8.8.8.8 / traceroute 8.8.8.8 | Reachability / the Layer-3 path hop by hop |
Common config tasks
! --- Static routes --- ip route 192.168.2.0 255.255.255.0 10.0.0.2 ! next-hop ip route 0.0.0.0 0.0.0.0 203.0.113.1 ! default route no ip route 192.168.2.0 255.255.255.0 10.0.0.2 ! remove a static route ! --- VLANs and trunks (switch) --- vlan 10 name SALES interface range Gi0/1 - 12 switchport mode access switchport access vlan 10 interface Gi0/24 switchport mode trunk interface Vlan10 ip address 192.168.10.1 255.255.255.0 ! SVI: the VLAN's gateway ! --- OSPF --- router ospf 1 router-id 1.1.1.1 network 10.0.0.0 0.0.0.255 area 0 ! wildcard mask, not subnet mask interface Gi0/0 ip ospf cost 10 ! prefer this path (lower wins) ! --- DHCP server --- ip dhcp pool LAN network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 8.8.8.8 ip dhcp excluded-address 192.168.1.1 192.168.1.10 ! --- NAT overload (PAT) --- access-list 1 permit 192.168.1.0 0.0.0.255 ip nat inside source list 1 interface Gi0/0 overload interface Gi0/0 ip nat outside interface Gi0/1 ip nat inside ! --- ACLs (numbered: 1-99 standard, 100-199 extended) --- access-list 10 permit 192.168.1.0 0.0.0.255 ! standard: source only access-list 100 permit tcp any host 10.0.0.5 eq 80 ! extended: protocol, ports interface Gi0/1 ip access-group 100 in ! applied inbound ! Always ends with an invisible "deny all" — permit what you need.
Wildcard masks are the inverse of subnet masks (0 = must match, 255 = ignore). Summarised from the NetExam Pro CCNA 200-301 course, Modules 4, 6, 7 and 9.