Subnet Mask Crib Sheet: Difference between revisions

From vwiki
Jump to navigation Jump to search
(Initial draft)
 
(Added hosts per subnet, and Meta)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="vwikitable"
{| class="vwikitable"
|-
|-
! CIDR (Bits) !! Net Mask
!rowspan=2| [[Acronyms#C|CIDR]]<br>(Bits) !!colspan=3| Net Mask                                                               !!rowspan=2| Hosts <ref name="Hosts" /> !!rowspan=2| Class
|-
|-
| 8      || 255.0.0.0
!                Decimal        !! Hexadecimal !! Binary                                                     
|-
|-
| 16    || 255.255.0.0
| 1          || 128.0.0.0       || 80.00.00.00 || <code> 0000 0000 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 2,147,483,646
|- class="even"
| 2          || 192.0.0.0      || C0.00.00.00 || <code> 1000 0000 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 1,073,741,822
|-
|-
| 21    || 255.255.248.0
| 3          || 224.0.0.0      || E0.00.00.00 || <code> 1110 0000 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 536,870,910
|- class="even"
| 4          || 240.0.0.0       || F0.00.00.00 || <code> 1111 0000 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 268,435,454
|-
|-
| 23          || 255.255.254.0
| 5          || 248.0.0.0      || F8.00.00.00 || <code> 1111 1000 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 134,217,726
|- class="even"
| 6          || 252.0.0.0       || FC.00.00.00 || <code> 1111 1100 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 67,108,862
|-
|-
| 24          || 255.255.255.0
| 7          || 254.0.0.0      || FE.00.00.00 || <code> 1111 1110 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 33,554,430
|- class="even" style="font-weight: bold"
| 8          || 255.0.0.0       || FF.00.00.00 || <code> 1111 1111 . 0000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 16,777,214 ||Class A
|-
|-
| 25         || 255.255.255.128
| 9          || 255.128.0.0    || FF.80.00.00 || <code> 1111 1111 . 1000 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 8,388,606
|- class="even"
| 10         || 255.192.0.0    || FF.C0.00.00 || <code> 1111 1111 . 1100 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 4,194,302
|-
|-
| 26         || 255.255.255.192
| 11         || 255.224.0.0    || FF.E0.00.00 || <code> 1111 1111 . 1110 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 2,097,150
|- class="even"
| 12          || 255.240.0.0    || FF.F0.00.00 || <code> 1111 1111 . 1111 0000 . 0000 0000 . 0000 0000 </code> ||class="num"| 1,048,574
|-
|-
| 27         || 255.255.255.224
| 13         || 255.248.0.0    || FF.F8.00.00 || <code> 1111 1111 . 1111 1000 . 0000 0000 . 0000 0000 </code> ||class="num"| 524,286
|- class="even"
| 14          || 255.252.0.0    || FF.FC.00.00 || <code> 1111 1111 . 1111 1100 . 0000 0000 . 0000 0000 </code> ||class="num"| 262,142
|-
|-
| 28         || 255.255.255.240
| 15         || 255.254.0.0    || FF.FE.00.00 || <code> 1111 1111 . 1111 1110 . 0000 0000 . 0000 0000 </code> ||class="num"| 131,070
|- class="even" style="font-weight: bold"
| 16          || 255.255.0.0    || FF.FF.00.00 || <code> 1111 1111 . 1111 1111 . 0000 0000 . 0000 0000 </code> ||class="num"| 65,534 ||Class B
|-
|-
| 29         || 255.255.255.248
| 17         || 255.255.128.0  || FF.FF.80.00 || <code> 1111 1111 . 1111 1111 . 1000 0000 . 0000 0000 </code> ||class="num"| 32,766
|- class="even"
| 18          || 255.255.192.0  || FF.FF.C0.00 || <code> 1111 1111 . 1111 1111 . 1100 0000 . 0000 0000 </code> ||class="num"| 16,382
|-
|-
| 30         || 255.255.255.252
| 19         || 255.255.224.0  || FF.FF.E0.00 || <code> 1111 1111 . 1111 1111 . 1110 0000 . 0000 0000 </code> ||class="num"| 8190
|- class="even"
| 20          || 255.255.240.0  || FF.FF.F0.00 || <code> 1111 1111 . 1111 1111 . 1111 0000 . 0000 0000 </code> ||class="num"| 4094
|-
|-
| 32          || 255.255.255.255
| 21          || 255.255.248.0  || FF.FF.F8.00 || <code> 1111 1111 . 1111 1111 . 1111 1000 . 0000 0000 </code> ||class="num"| 2046
|- class="even"
| 22          || 255.255.252.0  || FF.FF.FC.00 || <code> 1111 1111 . 1111 1111 . 1111 1100 . 0000 0000 </code> ||class="num"| 1022
|-
| 23          || 255.255.254.0  || FF.FF.FE.00 || <code> 1111 1111 . 1111 1111 . 1111 1110 . 0000 0000 </code> ||class="num"| 510
|- class="even" style="font-weight: bold"
| 24          || 255.255.255.0  || FF.FF.FF.00 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 0000 0000 </code> ||class="num"| 254 ||Class C
|-
| 25          || 255.255.255.128 || FF.FF.FF.80 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1000 0000 </code> ||class="num"| 126
|- class="even"
| 26          || 255.255.255.192 || FF.FF.FF.C0 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1100 0000 </code> ||class="num"| 62
|-
| 27          || 255.255.255.224 || FF.FF.FF.E0 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1110 0000 </code> ||class="num"| 30
|- class="even"
| 28          || 255.255.255.240 || FF.FF.FF.F0 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1111 0000 </code> ||class="num"| 14
|-
| 29          || 255.255.255.248 || FF.FF.FF.F8 || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1111 1000 </code> ||class="num"| 6
|- class="even"
| 30          || 255.255.255.252 || FF.FF.FF.FC || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1111 1100 </code> ||class="num"| 2
|-
| 31          || 255.255.255.254 || FF.FF.FF.FE || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1111 1110 </code> ||class="num"| 0
|- class="even"
| 32          || 255.255.255.255 || FF.FF.FF.FF || <code> 1111 1111 . 1111 1111 . 1111 1111 . 1111 1111 </code> ||class="num"| 0
|}
|}
<references>
<ref name="Hosts">This is the number of usable host IP addresses.  Note that total number of IP addresses for the subnet will be 2 more (network address and broadcast address).  Its good practice to not have more than 254 hosts on a single [http://www.wikipedia.org/wiki/Broadcast_domain broadcast domain]/subnet.</ref>
</references>
[[Category:Networking]]

Latest revision as of 23:42, 15 December 2012

CIDR
(Bits)
Net Mask Hosts [1] Class
Decimal Hexadecimal Binary
1 128.0.0.0 80.00.00.00 0000 0000 . 0000 0000 . 0000 0000 . 0000 0000 2,147,483,646
2 192.0.0.0 C0.00.00.00 1000 0000 . 0000 0000 . 0000 0000 . 0000 0000 1,073,741,822
3 224.0.0.0 E0.00.00.00 1110 0000 . 0000 0000 . 0000 0000 . 0000 0000 536,870,910
4 240.0.0.0 F0.00.00.00 1111 0000 . 0000 0000 . 0000 0000 . 0000 0000 268,435,454
5 248.0.0.0 F8.00.00.00 1111 1000 . 0000 0000 . 0000 0000 . 0000 0000 134,217,726
6 252.0.0.0 FC.00.00.00 1111 1100 . 0000 0000 . 0000 0000 . 0000 0000 67,108,862
7 254.0.0.0 FE.00.00.00 1111 1110 . 0000 0000 . 0000 0000 . 0000 0000 33,554,430
8 255.0.0.0 FF.00.00.00 1111 1111 . 0000 0000 . 0000 0000 . 0000 0000 16,777,214 Class A
9 255.128.0.0 FF.80.00.00 1111 1111 . 1000 0000 . 0000 0000 . 0000 0000 8,388,606
10 255.192.0.0 FF.C0.00.00 1111 1111 . 1100 0000 . 0000 0000 . 0000 0000 4,194,302
11 255.224.0.0 FF.E0.00.00 1111 1111 . 1110 0000 . 0000 0000 . 0000 0000 2,097,150
12 255.240.0.0 FF.F0.00.00 1111 1111 . 1111 0000 . 0000 0000 . 0000 0000 1,048,574
13 255.248.0.0 FF.F8.00.00 1111 1111 . 1111 1000 . 0000 0000 . 0000 0000 524,286
14 255.252.0.0 FF.FC.00.00 1111 1111 . 1111 1100 . 0000 0000 . 0000 0000 262,142
15 255.254.0.0 FF.FE.00.00 1111 1111 . 1111 1110 . 0000 0000 . 0000 0000 131,070
16 255.255.0.0 FF.FF.00.00 1111 1111 . 1111 1111 . 0000 0000 . 0000 0000 65,534 Class B
17 255.255.128.0 FF.FF.80.00 1111 1111 . 1111 1111 . 1000 0000 . 0000 0000 32,766
18 255.255.192.0 FF.FF.C0.00 1111 1111 . 1111 1111 . 1100 0000 . 0000 0000 16,382
19 255.255.224.0 FF.FF.E0.00 1111 1111 . 1111 1111 . 1110 0000 . 0000 0000 8190
20 255.255.240.0 FF.FF.F0.00 1111 1111 . 1111 1111 . 1111 0000 . 0000 0000 4094
21 255.255.248.0 FF.FF.F8.00 1111 1111 . 1111 1111 . 1111 1000 . 0000 0000 2046
22 255.255.252.0 FF.FF.FC.00 1111 1111 . 1111 1111 . 1111 1100 . 0000 0000 1022
23 255.255.254.0 FF.FF.FE.00 1111 1111 . 1111 1111 . 1111 1110 . 0000 0000 510
24 255.255.255.0 FF.FF.FF.00 1111 1111 . 1111 1111 . 1111 1111 . 0000 0000 254 Class C
25 255.255.255.128 FF.FF.FF.80 1111 1111 . 1111 1111 . 1111 1111 . 1000 0000 126
26 255.255.255.192 FF.FF.FF.C0 1111 1111 . 1111 1111 . 1111 1111 . 1100 0000 62
27 255.255.255.224 FF.FF.FF.E0 1111 1111 . 1111 1111 . 1111 1111 . 1110 0000 30
28 255.255.255.240 FF.FF.FF.F0 1111 1111 . 1111 1111 . 1111 1111 . 1111 0000 14
29 255.255.255.248 FF.FF.FF.F8 1111 1111 . 1111 1111 . 1111 1111 . 1111 1000 6
30 255.255.255.252 FF.FF.FF.FC 1111 1111 . 1111 1111 . 1111 1111 . 1111 1100 2
31 255.255.255.254 FF.FF.FF.FE 1111 1111 . 1111 1111 . 1111 1111 . 1111 1110 0
32 255.255.255.255 FF.FF.FF.FF 1111 1111 . 1111 1111 . 1111 1111 . 1111 1111 0
  1. This is the number of usable host IP addresses. Note that total number of IP addresses for the subnet will be 2 more (network address and broadcast address). Its good practice to not have more than 254 hosts on a single broadcast domain/subnet.