QamoosTech
DevOps & CloudInfrastructureIntermediate

Subnet

PronunciationSUB-net

Definition

A subnet is a smaller section of a larger network with its own range of IP addresses, written in CIDR form such as 10.0.1.0/24. The subnet mask says how much of an address identifies the network.

Where you hear it

In AWS VPC setup, Kubernetes and Docker networking, and firewall rules based on IP ranges.

Examples

  • Put the database in a private subnet with no internet route.
  • A /24 subnet has 256 addresses.
  • The web servers sit in a public subnet, and the database sits in a private one.

Common mistake

Choosing ranges that overlap with another network you'll connect later. Then routing between them breaks.

Don't confuse with

A VPC, the whole private network. Subnets are the slices inside it.

Say it at work

  • In a meeting or chatWhich subnet is this instance in?
  • In an email or ticketAllow the whole 10.0.0.0/16 range.