VOOZH about

URL: https://www.digitalocean.com/community/tutorials/understanding-ip-addresses-subnets-and-cidr-notation-for-networking?comment=11943

โ‡ฑ IP Addresses, Subnets, and CIDR Notation Explained | DigitalOcean


๐Ÿ‘ IP Addresses, Subnets, and CIDR Notation Explained

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author(s)

Former Senior Technical Writer at DigitalOcean, specializing in DevOps topics across multiple Linux distributions, including Ubuntu 18.04, 20.04, 22.04, as well as Debian 10 and 11.

๐Ÿ‘ Vinayak Baranwal
Vinayak Baranwal
Editor
Technical Writer II
See author profile

Building future-ready infrastructure with Linux, Cloud, and DevOps. Full Stack Developer & System Administrator. Technical Writer @ DigitalOcean | GitHub Contributor | Passionate about Docker, PostgreSQL, and Open Source | Exploring NLP & AI-TensorFlow | Nailed over 50+ deployments across production environments.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

So here are also some CCNA tutorials ? This is Cisco and subnetting, I donโ€™t understand why this is here on Digital Ocean

Itโ€™s still very useful content for people who want to learn more about networking in general.

I donโ€™t see any problem with this here - really I think itโ€™s great that DigitalOcean is providing good resources for people new to the concepts behind server administration and networking.

Yes, agreed. I love learning new stuff, even if it isnโ€™t directly applicable to my own work. I think having a basic concept of the internet is priceless for anyone interested in web development in any capacity.

Doesnโ€™t even mention Cisco or CCNA, this is basic networking knowledgeโ€ฆ

Linux has security needs too and basic networking knowledge helps for a beginner.

i have a problem regarding CIDR ,who can help me please?

You state somewhat early in this tutorial the following example, which is wrong:

WRONG

To demonstrate the second case, if you have a range in an IPv6 address with multiple groups as zeroes, like this:

โ€ฆ:18bc:0000:0000:0000:00ff:โ€ฆ

You could compact this like so (also removing the leading zeros of the group like we did above):

โ€ฆ:18bc::ffโ€ฆ

however this is wrong, you omitted an โ€œ:โ€, i.e., โ€ฆ:18bc::ff <======= wrong the correct example should be as follows: โ€ฆ18bc:::ff <======= correct

CORRECTION

To demonstrate the second case, if you have a range in an IPv6 address with multiple groups as zeroes, like this:

โ€ฆ:18bc:0000:0000:0000:00ff:โ€ฆ

You could compact this like so (also removing the leading zeros of the group like we did above):

โ€ฆ:18bc:::ffโ€ฆ

Note: the correct example should have three semicolons before the double f hex digits, your example currently only displays two.

i have one doubt subnetting that is, when we dividing large network into small network, while using subnetting, my question is when there is different block with same ip will communicate each other that mean one block can communicate with other block of same subnet

assume cidr/27

192.168.1.62(lan interface with block size ) 192.168.1.97(serial router connected to another serial link )

both two ip different block with same cidr value

Great article and useful. Thank you

๐Ÿ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOceanโ€™s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow โ€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

ยฉ 2026 DigitalOcean, LLC.Sitemap.
Dark mode is coming soon.