Understanding binary numbers and IP addresses is essential before working with Azure networking concepts like Virtual Networks and Subnets. Binary Number System Computers operate using the binary system (base-2), which uses only two digits: 0 and 1. Each digit is called a bit. The number of values representable with n bits is 2^n. For example: 1 bit = 2 values (0, 1). 2 bits = 4 values (0–3). 4 bits = 16 values (0–15). 8 bits = 256 values (0–255). IP Address Structure An IP address consists of four octets (blocks) separated by dots. Each octet is represented by 8 bits, meaning each value must be between 0 and 255. For example: 192.168.1.1 is valid (all values are 0–255). 256.100.50.25 is invalid (256 requires 9 bits and exceeds the 8-bit limit). CIDR Notation CIDR (Classless Inter-Domain…
Key Takeaways
Each IP octet is 8 bits, so valid values are 0–255. Any value above 255 makes the IP invalid.
CIDR notation (e.g., /16, /24) defines how many bits are for the network vs host addresses.
Private IPs (10.x.x.x, 172.16–31.x.x, 192.168.x.x) are reusable; Public IPs must be globally unique.
Subnetting divides large networks into smaller segments for better security and management.