About 192.168.0.0/24 and CIDR

Source: Internet
Author: User

About 192.168.0.0/24 and CIDR, this is actually a CIDR block, or a Subnet, in the form of Classless and Subnet Address Extensions and Supernetting. We know that to determine a subnet, we need to know the host address and subnet mask, but in the form of CIDR, we can simply get two values. For example, "192.168.0.0/24" indicates that the IP address of this network segment starts from 192.168.0.1 and ends at 192.168.0.254 (192.168.0.0 and 192.168.0.255 have special meanings and cannot be used as IP addresses). The subnet mask is 255.255.255.0. How does the above subnet mask come from? In fact, the key lies in "24. We know that the IP address is composed of four decimal numbers, which is equivalent to 32-bit binary. In CIDR format, the last digit separates the 32 bits (taking 24 as an example): the first 24 bits are represented by "1", and the last 8 bits are represented by 0, we can get a binary number: 11111111 11111111 11111111 00000000. Convert it to decimal, that is, 255.255.255.0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.