Code-Memo

IP addressing and subnetting

IPv4 basics

CIDR quick examples

Calculate network info (quick mental model)

  1. Identify the prefix length (e.g. /26)
  2. Block size in the changing octet: (256 - \text{maskOctet})
  3. Network boundaries occur at multiples of block size

View IP config on Linux

ip addr
ip route
ip -br addr
ip -br route

Private ranges

IPv6 notes (very short)