A subnet is a logical division of an IP network defined by a subnet mask (e.g., /24 = 255.255.255.0). Hosts within a subnet communicate directly via ARP without routing. Hosts in different subnets must send traffic through a router. Subnetting reduces broadcast domains and enables hierarchical IP allocation.
A subnet (subnetwork) divides an IP address space into smaller networks. The subnet mask determines which bits of an IP address identify the network vs. the host. In 192.168.1.0/24, the first 24 bits are the network (192.168.1) and the last 8 bits are host identifiers (0-255, with .0 reserved as network address and .255 as broadcast). Subnetting serves three purposes: reducing broadcast domain size (fewer devices receiving each broadcast), enabling security boundaries (firewall rules between subnets), and efficient IP allocation (giving a department /25 instead of wasting a /24). VLSM (Variable Length Subnet Masking) allows different subnets to have different sizes – a point-to-point link needs only /30 (2 hosts) while a server farm might use /23 (510 hosts). CIDR notation (/16, /24, /28) replaced classful addressing.
NAT (Network Address Translation)
NAT translates private IP addresses to public IP addresses at a router boundary. NAT allows many devices to share one public IP. It breaks end-to-end connectivity – inbound connections require port forwarding. Carrier-grade NAT (CGNAT) adds another translation layer, complicating VoIP and gaming.
VLAN (Virtual LAN)
A VLAN segments a physical switch into multiple isolated broadcast domains using 802.1Q tags. Devices in different VLANs cannot communicate without a router (inter-VLAN routing). VLANs provide security isolation, reduce broadcast traffic, and enable network segmentation without separate physical infrastructure.
Gateway (Default Gateway)
A default gateway is the router a host sends packets to when the destination is not on the local subnet. Every host needs a default gateway to reach the internet or other networks. If the gateway is unreachable, all off-subnet communication fails – even if the host has a valid IP and DNS.