Comprehensive guide covering various aspects of IPv4 addressing, including subnetting, CIDR notation, IP address classes, reserved private ranges, and the complete IPv4 address table.
Decimal to Binary Conversion
Converting Decimal to Binary is based on the positions of the digits in the number and is typically computed in groups of 8, given IPv4 addresses are 32-bit numbers.
For example:
- Decimal to Binary: 192.168.1.1 = 11000000.10101000.00000001.00000001
Binary to Decimal Conversion
Binary to Decimal conversion is the reverse process, where binary numbers are converted back to decimal numbers.
- Binary to Decimal: 11000000.10101000.00000001.00000001 = 192.168.1.1
IPv4 Address Classes
IPv4 addresses are categorized into five classes: A, B, C, D, and E.
- Class A: 0.0.0.0 to 127.255.255.255
- Class B: 128.0.0.0 to 191.255.255.255
- Class C: 192.0.0.0 to 223.255.255.255
- Class D: 224.0.0.0 to 239.255.255.255 (Reserved for Multicast)
- Class E: 240.0.0.0 to 255.255.255.255 (Reserved for Research)
Subnetting and CIDR
CIDR (Classless Inter-Domain Routing) introduced a new method to allocate IP addresses more flexibly.
It uses the slash notation (/) to define the subnet mask in terms of the number of bits used for the network portion of the address.
For example:
- /24 Subnet: 255.255.255.0
- /16 Subnet: 255.255.0.0
- /8 Subnet: 255.0.0.0
Complete Table of Subnet Masks (CIDR Notation)
This table represents the CIDR notation, the corresponding subnet mask, and the wildcard mask for all possible subnet sizes in IPv4 addressing.
CIDR Notation | Subnet Mask | Wildcard Mask |
---|---|---|
/0 | 0.0.0.0 | 255.255.255.255 |
/1 | 128.0.0.0 | 127.255.255.255 |
/2 | 192.0.0.0 | 63.255.255.255 |
/3 | 224.0.0.0 | 31.255.255.255 |
/4 | 240.0.0.0 | 15.255.255.255 |
/5 | 248.0.0.0 | 7.255.255.255 |
/6 | 252.0.0.0 | 3.255.255.255 |
/7 | 254.0.0.0 | 1.255.255.255 |
/8 | 255.0.0.0 | 0.255.255.255 |
/9 | 255.128.0.0 | 0.127.255.255 |
/10 | 255.192.0.0 | 0.63.255.255 |
/11 | 255.224.0.0 | 0.31.255.255 |
/12 | 255.240.0.0 | 0.15.255.255 |
/13 | 255.248.0.0 | 0.7.255.255 |
/14 | 255.252.0.0 | 0.3.255.255 |
/15 | 255.254.0.0 | 0.1.255.255 |
/16 | 255.255.0.0 | 0.0.255.255 |
/17 | 255.255.128.0 | 0.0.127.255 |
/18 | 255.255.192.0 | 0.0.63.255 |
/19 | 255.255.224.0 | 0.0.31.255 |
/20 | 255.255.240.0 | 0.0.15.255 |
/21 | 255.255.248.0 | 0.0.7.255 |
/22 | 255.255.252.0 | 0.0.3.255 |
/23 | 255.255.254.0 | 0.0.1.255 |
/24 | 255.255.255.0 | 0.0.0.255 |
/25 | 255.255.255.128 | 0.0.0.127 |
/26 | 255.255.255.192 | 0.0.0.63 |
/27 | 255.255.255.224 | 0.0.0.31 |
/28 | 255.255.255.240 | 0.0.0.15 |
/29 | 255.255.255.248 | 0.0.0.7 |
/30 | 255.255.255.252 | 0.0.0.3 |
/31 | 255.255.255.254 | 0.0.0.1 |
/32 | 255.255.255.255 | 0.0.0.0 |
Reserved Private Ranges
Private IP addresses are not routable on the internet. They are reserved for internal networks.
Private Address Ranges
- Class A: 10.0.0.0 to 10.255.255.255
- Class B: 172.16.0.0 to 172.31.255.255
- Class C: 192.168.0.0 to 192.168.255.255
Complete IPv4 Address Table
Creating a complete IPv4 address table here might be too extensive. However, it consists of 4,294,967,296 unique addresses (0.0.0.0 to 255.255.255.255) when considering all possible combinations of four octets each ranging from 0 to 255.
This vast pool of IP addresses provides a unique identification for every device on the internet.
This information should give a comprehensive understanding of IPv4 addressing, subnetting, CIDR, IP address classes, and reserved private ranges for your blog post.