Difference between revisions of "Networking: some CIDR calculations"
From Robs_Wiki
Qadmin wiki (talk | contribs) (Created page with "_TOC__ == How to convert a number to a binary number == In the networking IP4 calculations, an IP address is composed of 32 bits, divided into 4 octets: 00000000.00000000.0000...") |
Qadmin wiki (talk | contribs) |
||
Line 4: | Line 4: | ||
The binary numbers available per octet are: 128 - 64 -32 -16-8- 4 -2-1 | The binary numbers available per octet are: 128 - 64 -32 -16-8- 4 -2-1 | ||
− | How to translate a number to a binary number? 192.168.1.0 | + | How to translate a number to a binary number? 192.168.1.0 <br /> |
− | 128 - 64 -32 -16-8- 4 -2-1 | + | 128 - 64 -32 -16-8- 4 -2-1 <br /> |
− | 192 = 128 + 64 = 11000000 | + | 192 = 128 + 64 = 11000000 <br /> |
− | 168 = 128 + 32 + 8 = 10101000 | + | 168 = 128 + 32 + 8 = 10101000 <br /> |
− | 1 = 00000001 | + | 1 = 00000001 <br /> |
− | 0 = 00000000 | + | 0 = 00000000 <br /> |
− | 192.168.1.0 = 11000000.10101000.00000001.00000000 | + | 192.168.1.0 = 11000000.10101000.00000001.00000000 <br /> |
Revision as of 20:48, 26 November 2020
_TOC__
How to convert a number to a binary number
In the networking IP4 calculations, an IP address is composed of 32 bits, divided into 4 octets: 00000000.00000000.00000000.00000000 The binary numbers available per octet are: 128 - 64 -32 -16-8- 4 -2-1
How to translate a number to a binary number? 192.168.1.0
128 - 64 -32 -16-8- 4 -2-1
192 = 128 + 64 = 11000000
168 = 128 + 32 + 8 = 10101000
1 = 00000001
0 = 00000000
192.168.1.0 = 11000000.10101000.00000001.00000000