Subnet: Where an Address Group Ends and Routing Begins
A subnet, short for subnetwork, is a part of an Internet Protocol (IP) network whose addresses share a defined network portion. That shared portion is called a prefix. It lets computers and routers distinguish one address group from another when deciding where to send traffic.
An IP address is a numerical address used for network communication. Subnetting divides a larger address range into smaller groups. The division helps describe which destinations are local and which require routing—the forwarding of traffic from one network to another.
Consider an office that has separate subnets for staff computers and guest devices. The groups provide an organizing boundary. Whether guests can reach staff systems depends on what happens when traffic tries to cross it.
Subnetting Starts Making Sense Right Here
Following traffic between two groups
Suppose the office assigns staff devices addresses in 192.168.20.0/24 and guest devices addresses in 192.168.30.0/24. The /24 says that the first 24 bits are the network prefix. Bits are the zeros and ones representing the address. In these examples, that makes the first three decimal numbers the shared part.
A staff computer at 192.168.20.10 and a staff printer at 192.168.20.40 are in the same subnet. A guest device at 192.168.30.10 is in the other one.
A subnet mask is another way of expressing that boundary. Cisco's subnetting guidance explains how the network and individual-address portions fit together.
In this ordinary setup, traffic between the staff computer and printer stays within their local subnet. For the guest device to reach that printer, traffic must be routed between the two groups. A router, or another device performing routing, provides the path.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
The presence of that path creates a separate question: should the guest's request be permitted?
A subnet boundary needs an access decision
A firewall applies rules to network traffic, allowing some communication and blocking other communication. The National Institute of Standards and Technology's firewall guidance describes how these policies govern traffic between networks or hosts.
In the office example, a policy might allow guests to reach a particular shared printer while refusing access to staff computers. Routing makes the printer reachable; the filtering rules limit which communication may use that route. These are different jobs, even when the same device performs both.
If the office instead permits unrestricted communication between the subnets, their separate address ranges don't prevent a guest device from contacting a staff system. A device taken over by an attacker isn't automatically confined by having a different prefix.
Subnet Mask: The Number That Changes Which Addresses Are Local

What Does a Router Do? Follow a Packet to Its Next Stop

Network Segmentation: How Far Can One Intruder Go?

QUOTE:
"Amateurs hack systems, professionals hack people."
