IP Address โ MAC Address โ Network ID โ Host ID โ VLSM
Master network boundaries from the ground up: 32-bit binary arithmetic, bitwise AND filtering, CIDR-to-mask equivalence, Magic Number block calculations, VLSM subnet tree planning, RFC 1918 private spaces, and firewall micro-segmentation.
A 48-bit physical address burned into the Network Interface Card (NIC). It facilitates local hop-to-hop frame delivery on the same broadcast domain.
A 32-bit (IPv4) or 128-bit (IPv6) logical address representing a network endpoint. Routers read the network portion to forward packets across the global internet.
SOURCE
192.168.10.37
GATEWAY / ROUTER
192.168.10.0/24
TARGET
192.168.10.20
Analyze first. The lab will evaluate destination IP against source subnet mask to decide if ARP is broadcast locally or sent to default gateway.
Host Decision Logic:
โ Target is LOCAL (ARP directly for Target MAC)
ELSE:
โ Target is REMOTE (ARP for Default Gateway MAC, IP stays Target_IP)
1. Fundamental Formulas
โข Usable Hosts = 2h โ 2 (Subtract Net & Bcast)
โข Subnets Created = 2s (where s = borrowed bits)
โข Wildcard Mask = 255.255.255.255 โ Subnet_Mask
2. The "Magic Number" (Block Size)
Find which octet the subnet boundary falls in (the interesting octet). Subtract that octet's mask value from 256.
Block Size = 256 โ 192 = 64
Subnet boundaries: .0, .64, .128, .192
3. Fast Subnet Identifier
10.20.30.75/26:1. Block size = 64.
2. Multiples of 64: 0, 64, 128.
3. 75 falls between 64 and 127.
โ Network ID: 10.20.30.64
โ Broadcast: 10.20.30.127
โ Valid Range: 10.20.30.65 โ 10.20.30.126
Why VLSM? Fixed-length subnetting forces every subnet to the same size. VLSM carves the largest requirement first, then divides remaining address blocks for smaller subnets.
Enterprise Allocation Request
2. Corporate Office LAN: Needs 25 hosts โ Requires /27 (30 usable)
3. Branch Management: Needs 10 hosts โ Requires /28 (14 usable)
4. Router Point-to-Point Link: Needs 2 hosts โ Requires /30 (2 usable)
Allocated Subnet Map
RFC 1918 (Non-Routable Private)
โข 172.16.0.0/12: 172.16.0.0 โ 172.31.255.255 (1M IPs, Mid-size)
โข 192.168.0.0/16: 192.168.0.0 โ 192.168.255.255 (65.5K IPs, Small/Home)
Special Purpose Ranges
โข 169.254.0.0/16: APIPA / Link-Local (DHCP failure fallback)
โข 224.0.0.0/4: Multicast (OSPF, RIPv2, PIM)
โข 100.64.0.0/10: Carrier-Grade NAT (RFC 6598)
Why Private IPs Need NAT
Internet core routers (BGP) drop RFC 1918 traffic by policy. When an internal client communicates with the public web, the edge router uses NAT (Network Address Translation) or PAT (Port Address Translation) to map the private IP to an internet-routable public IP.
In 1993, RFC 1519 introduced CIDR (Classless Inter-Domain Routing) to stop the rapid depletion of IPv4 addresses caused by rigid classful boundaries.
| CLASS | FIRST OCTET (DEC) | LEADING BITS | DEFAULT MASK | DEFAULT CIDR | MAX NETWORKS | HOSTS PER NETWORK |
|---|---|---|---|---|---|---|
| A | 1 โ 126 | 0... | 255.0.0.0 | /8 | 126 | 16,777,214 |
| B | 128 โ 191 | 10... | 255.255.0.0 | /16 | 16,384 | 65,534 |
| C | 192 โ 223 | 110... | 255.255.255.0 | /24 | 2,097,152 | 254 |
| D | 224 โ 239 | 1110... | โ | โ | Multicast Groups | โ |
| E | 240 โ 255 | 1111... | โ | โ | Experimental / Reserved | โ |
| CIDR | SUBNET MASK | WILDCARD MASK | NET BITS | HOST BITS | TOTAL ADDRESSES | USABLE HOSTS |
|---|
SOC Telemetry Stream (Internal Reconnaissance)
Analyst Assessment: Subnetting divides broadcast domains. Without a routed boundary, an attacker at Layer 2 can ARP-spoof and sniff all local hosts. Subnetting + Layer 3 firewalls forces all cross-zone traffic through inspection policies.