CIDR Block

A CIDR block (Classless Inter-Domain Routing block) is a range of IP addresses that is defined by a base IP address and a subnet mask (or prefix length). It is used for efficient IP address allocation and routing, replacing the older classful network design.

<IP address>/<prefix length>

For example, in the CIDR block 192.168.1.0/24:

  • 192.168.1.0 is the base (starting) IP address.
  • /24 is the prefix length, which indicates how many bits of the address represent the network part (in this case, 24 bits).

In this example:

  • The subnet mask corresponding to /24 is 255.255.255.0.
  • The range of IP addresses covered would be from 192.168.1.0 to 192.168.1.255 (256 addresses).

Point to remember:

  • /24 means the first 24 bits are the network portion, and the last 8 bits are available for hosts, allowing up to 256 IP addresses in that range.
  • The smaller the prefix length (e.g., /16), the larger the range of IP addresses.
  • The larger the prefix length (e.g., /30), the smaller the range of IP addresses.

To view or add a comment, sign in

More articles by Manasee Suuba

  • How Pods Differ from Containers

    Containers are the basic building blocks for running individual applications, pods provide the orchestration-friendly…

  • How would you perform a rolling update of an application across multiple servers to ensure zero downtime?

    Use the serial keyword to update servers in batches. Ensure that a load balancer routes traffic away from the servers…

    1 Comment
  • AWS IAM (Identity and Access Management)

    AWS IAM is a service that enables you to manage access to AWS resources securely. It controls who (users, roles, or…

  • AWS Instance

    In AWS (Amazon Web Services), an instance refers to a virtual server that runs applications on the AWS infrastructure…

  • VPC

    A VPC (Virtual Private Cloud) in AWS is a logically isolated section of the AWS cloud where you can launch AWS…

  • IAM

    AWS IAM (Identity and Access Management) is a web service that helps you securely control access to AWS services and…

  • S3 bucket

    Amazon S3 (Simple Storage Service) is a scalable and durable object storage service provided by AWS. S3 Buckets are…

  • Cloudfront

    Amazon CloudFront is a content delivery network (CDN) service provided by AWS. It helps deliver content (web pages…

  • Cloudwatch

    Amazon CloudWatch is a monitoring and observability service provided by AWS that helps you track the performance and…

  • Creating a project that integrates Terraform and Ansible can be a great way to automate both the provisioning and configuration of infrastructure.

    Project Overview Terraform: Used to provision an EC2 instance in AWS. Ansible: Used to configure the EC2 instance by…

Explore topics