IP addresses and CIDR
Addresses identify network interfaces
An IP address helps deliver packets to a network interface. A host can have multiple interfaces, and an interface can have multiple addresses. IPv4 addresses contain 32 bits; IPv6 addresses contain 128 bits. A link-layer frame carries data across a local link, while an IP packet can travel across several links. A MAC address is a link-layer identifier, not an Internet-wide identity. Imagine a bookstore computer sending a request to its stock server: the packet has a destination IP, but that address does not identify the employee making the request.
What a prefix means
CIDR writes an address followed by a slash and the number of fixed leading bits. In 192.0.2.0/24, the first 24 bits identify the prefix; the remaining 8 bits allow 256 address values, from 192.0.2.0 through 192.0.2.255. This is the size of the block, not necessarily the count of assignable hosts. In an ordinary IPv4 /24 LAN the first and last addresses are reserved for network and broadcast functions. Special prefixes such as /31 have different rules.
Worked subnet example
Split the fictional /24 into /26 blocks. Six bits remain, so each block has 64 addresses. The first covers 192.0.2.0–192.0.2.63; the next covers 192.0.2.64–192.0.2.127. Address 192.0.2.62 belongs to the first, whereas 192.0.2.65 belongs to the second. These addresses are reserved for documentation; this is a paper exercise, not a live network.
Security interpretation
A prefix can help define a network zone or the scope of a firewall rule. It does not prove who owns a device, whether a device is healthy, or whether an application should grant access. Addresses can change and can be shared through address translation (NAT). Membership in a subnet also does not guarantee reachability: routing and policy matter.
Practice before moving on
Classify 192.0.2.127 and 192.0.2.128 into /26 blocks. The former belongs to the block beginning at .64 and the latter begins the block at .128; membership does not imply that either can be assigned to a host. Review the prefix length and then learn how transport ports distinguish conversations.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IP addresses and CIDR — Knowledge check
Interpret fictional networking evidence and security boundaries.
How many address values are in an IPv4 /26 block?
Which address belongs to 192.0.2.64/26?
What does an IP address prove about an employee?
What changes when a packet crosses an ordinary router on Ethernet?
Why are 192.0.2.0/24 addresses used in this worksheet?