Guide and reference
Subnetting and Address Translation
Subnetting divides address space into prefixes with deliberate boundaries. Translation changes addresses or ports while forwarding traffic. VLANs separate Layer 2 broadcast domains; IP subnets and firewall policies define different boundaries. These mechanisms can work together, but they do not provide the same isolation guarantees.
Subnetting and Address Translation
Subnetting divides address space into prefixes with deliberate boundaries. Translation changes addresses or ports while forwarding traffic. VLANs separate Layer 2 broadcast domains; IP subnets and firewall policies define different boundaries. These mechanisms can work together, but they do not provide the same isolation guarantees.
ReferenceCIDR blocks
CIDR blocks describe aligned address ranges through a network address and prefix length.
ReferencePrefix lengths
A prefix length controls address-range size and specificity in destination matching.
ReferenceNetwork segmentation
Segmentation separates network groups and enforces controlled communication between them.
ReferenceVLANs
VLANs divide Layer 2 broadcast domains across a shared switching infrastructure.
ReferenceVLSM
VLSM allocates differently sized subnets within an address plan using variable prefix lengths.
ReferenceNAT
NAT rewrites network addresses and maintains mappings needed for return traffic.
ReferencePAT
PAT multiplexes internal flows onto shared external addresses by translating transport ports.
ReferenceSNAT
SNAT changes packet source addresses, often at an internal network’s egress boundary.
ReferenceDNAT
DNAT changes a packet’s destination to direct traffic toward another endpoint.
ReferenceCGNAT
Carrier-grade NAT shares public addresses across subscribers; attribution can require timestamps and ports.
ReferenceNAT traversal
NAT traversal uses mapping discovery, coordinated connectivity or relays to connect translated endpoints.
ReferencePort forwarding
Port forwarding directs incoming destination traffic to a configured service behind translation or routing.
ReferenceHairpin NAT
Hairpin NAT lets an internal client reach an internal service through its external mapping.
ReferenceIPv4 subnet calculators
IPv4 calculators derive prefix boundaries; host-use rules vary for conventional, point-to-point and host prefixes.
ReferenceIPv6 subnet calculators
IPv6 calculators derive 128-bit prefix ranges without applying IPv4 broadcast-address assumptions.