
{"id":67,"date":"2018-04-01T08:15:31","date_gmt":"2018-04-01T08:15:31","guid":{"rendered":"http:\/\/www.tygarbyte.com\/?p=67"},"modified":"2018-04-01T08:54:48","modified_gmt":"2018-04-01T08:54:48","slug":"cidr-network-conversion","status":"publish","type":"post","link":"https:\/\/www.tygarbyte.com\/index.php\/2018\/04\/01\/cidr-network-conversion\/","title":{"rendered":"CIDR &#8211; Network Conversion"},"content":{"rendered":"<p>For future reference<\/p>\n<p>** note to self ** \/31 is for point to point, ie wireless isp to client<\/p>\n<table class=\"info\" style=\"height: 1108px;\" width=\"737\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th>Bitmask (Bits)<\/th>\n<th>Dotted Decimal<\/th>\n<th>Hexadecimal<\/th>\n<th>Binary<\/th>\n<\/tr>\n<tr>\n<td>\/0<\/td>\n<td>0.0.0.0<\/td>\n<td>0x00000000<\/td>\n<td>00000000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/1<\/td>\n<td>128.0.0.0<\/td>\n<td>0x80000000<\/td>\n<td>10000000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/2<\/td>\n<td>192.0.0.0<\/td>\n<td>0xc0000000<\/td>\n<td>11000000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/3<\/td>\n<td>224.0.0.0<\/td>\n<td>0xe0000000<\/td>\n<td>11100000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/4<\/td>\n<td>240.0.0.0<\/td>\n<td>0xf0000000<\/td>\n<td>11110000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/5<\/td>\n<td>248.0.0.0<\/td>\n<td>0xf8000000<\/td>\n<td>11111000 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/6<\/td>\n<td>252.0.0.0<\/td>\n<td>0xfc000000<\/td>\n<td>11111100 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/7<\/td>\n<td>254.0.0.0<\/td>\n<td>0xfe000000<\/td>\n<td>11111110 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/8<\/td>\n<td>255.0.0.0<\/td>\n<td>0xff000000<\/td>\n<td>11111111 00000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/9<\/td>\n<td>255.128.0.0<\/td>\n<td>0xff800000<\/td>\n<td>11111111 10000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/10<\/td>\n<td>255.192.0.0<\/td>\n<td>0xffc00000<\/td>\n<td>11111111 11000000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/11<\/td>\n<td>255.224.0.0<\/td>\n<td>0xffe00000<\/td>\n<td>11111111 11100000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/12<\/td>\n<td>255.240.0.0<\/td>\n<td>0xfff00000<\/td>\n<td>11111111 11110000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/13<\/td>\n<td>255.248.0.0<\/td>\n<td>0xfff80000<\/td>\n<td>11111111 11111000 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/14<\/td>\n<td>255.252.0.0<\/td>\n<td>0xfffc0000<\/td>\n<td>11111111 11111100 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/15<\/td>\n<td>255.254.0.0<\/td>\n<td>0xfffe0000<\/td>\n<td>11111111 11111110 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/16<\/td>\n<td>255.255.0.0<\/td>\n<td>0xffff0000<\/td>\n<td>11111111 11111111 00000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/17<\/td>\n<td>255.255.128.0<\/td>\n<td>0xffff8000<\/td>\n<td>11111111 11111111 10000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/18<\/td>\n<td>255.255.192.0<\/td>\n<td>0xffffc000<\/td>\n<td>11111111 11111111 11000000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/19<\/td>\n<td>255.255.224.0<\/td>\n<td>0xffffe000<\/td>\n<td>11111111 11111111 11100000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/20<\/td>\n<td>255.255.240.0<\/td>\n<td>0xfffff000<\/td>\n<td>11111111 11111111 11110000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/21<\/td>\n<td>255.255.248.0<\/td>\n<td>0xfffff800<\/td>\n<td>11111111 11111111 11111000 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/22<\/td>\n<td>255.255.252.0<\/td>\n<td>0xfffffc00<\/td>\n<td>11111111 11111111 11111100 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/23<\/td>\n<td>255.255.254.0<\/td>\n<td>0xfffffe00<\/td>\n<td>11111111 11111111 11111110 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/24<\/td>\n<td>255.255.255.0<\/td>\n<td>0xffffff00<\/td>\n<td>11111111 11111111 11111111 00000000<\/td>\n<\/tr>\n<tr>\n<td>\/25<\/td>\n<td>255.255.255.128<\/td>\n<td>0xffffff80<\/td>\n<td>11111111 11111111 11111111 10000000<\/td>\n<\/tr>\n<tr>\n<td>\/26<\/td>\n<td>255.255.255.192<\/td>\n<td>0xffffffc0<\/td>\n<td>11111111 11111111 11111111 11000000<\/td>\n<\/tr>\n<tr>\n<td>\/27<\/td>\n<td>255.255.255.224<\/td>\n<td>0xffffffe0<\/td>\n<td>11111111 11111111 11111111 11100000<\/td>\n<\/tr>\n<tr>\n<td>\/28<\/td>\n<td>255.255.255.240<\/td>\n<td>0xfffffff0<\/td>\n<td>11111111 11111111 11111111 11110000<\/td>\n<\/tr>\n<tr>\n<td>\/29<\/td>\n<td>255.255.255.248<\/td>\n<td>0xfffffff8<\/td>\n<td>11111111 11111111 11111111 11111000<\/td>\n<\/tr>\n<tr>\n<td>\/30<\/td>\n<td>255.255.255.252<\/td>\n<td>0xfffffffc<\/td>\n<td>11111111 11111111 11111111 11111100<\/td>\n<\/tr>\n<tr>\n<td>\/31<\/td>\n<td>255.255.255.254<\/td>\n<td>0xfffffffe<\/td>\n<td>11111111 11111111 11111111 11111110<\/td>\n<\/tr>\n<tr>\n<td>\/32<\/td>\n<td>255.255.255.255<\/td>\n<td>0xffffffff<\/td>\n<td>11111111 11111111 11111111 11111111<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Class address ranges:<\/p>\n<p>Class A = 1.0.0.0 to 126.0.0.0<br \/>\nClass B = 128.0.0.0 to 191.255.0.0<br \/>\nClass C = 192.0.1.0 to 223.255.255.0<\/p>\n<p>Reserved address ranges for private (non-routed) use:<\/p>\n<p>10.0.0.0 -&gt; 10.255.255.255<br \/>\n172.16.0.0 -&gt; 172.31.255.255<br \/>\n192.168.0.0 -&gt; 192.168.255.255<\/p>\n<p>Other reserved addresses:<\/p>\n<p>127.0.0.0 is reserved for loopback and IPC on the local host<br \/>\n224.0.0.0 -&gt; 239.255.255.255 is reserved for multicast addresses<\/p>\n<p>Chart notes:<\/p>\n<p>Number of Subnets &#8211; &#8220;( )&#8221; Refers to the number of effective subnets, since the use of subnet numbers of all 0s or all 1s is highly frowned upon and RFC non-compliant.<br \/>\nNumber of Hosts &#8211; Refers to the number of effective hosts, excluding the network and broadcast address.<\/p>\n<p>Class A<br \/>\nNetwork Bits Subnet Mask Number of Subnets Number of Hosts<br \/>\n\/8 255.0.0.0 0 16777214<br \/>\n\/9 255.128.0.0 2 (0) 8388606<br \/>\n\/10 255.192.0.0 4 (2) 4194302<br \/>\n\/11 255.224.0.0 8 (6) 2097150<br \/>\n\/12 255.240.0.0 16 (14) 1048574<br \/>\n\/13 255.248.0.0 32 (30) 524286<br \/>\n\/14 255.252.0.0 64 (62) 262142<br \/>\n\/15 255.254.0.0 128 (126) 131070<br \/>\n\/16 255.255.0.0 256 (254) 65534<br \/>\n\/17 255.255.128.0 512 (510) 32766<br \/>\n\/18 255.255.192.0 1024 (1022) 16382<br \/>\n\/19 255.255.224.0 2048 (2046) 8190<br \/>\n\/20 255.255.240.0 4096 (4094) 4094<br \/>\n\/21 255.255.248.0 8192 (8190) 2046<br \/>\n\/22 255.255.252.0 16384 (16382) 1022<br \/>\n\/23 255.255.254.0 32768 (32766) 510<br \/>\n\/24 255.255.255.0 65536 (65534) 254<br \/>\n\/25 255.255.255.128 131072 (131070) 126<br \/>\n\/26 255.255.255.192 262144 (262142) 62<br \/>\n\/27 255.255.255.224 524288 (524286) 30<br \/>\n\/28 255.255.255.240 1048576 (1048574) 14<br \/>\n\/29 255.255.255.248 2097152 (2097150) 6<br \/>\n\/30 255.255.255.252 4194304 (4194302) 2<\/p>\n<p>Class B<br \/>\nNetwork Bits Subnet Mask Number of Subnets Number of Hosts<br \/>\n\/16 255.255.0.0 0 65534<br \/>\n\/17 255.255.128.0 2 (0) 32766<br \/>\n\/18 255.255.192.0 4 (2) 16382<br \/>\n\/19 255.255.224.0 8 (6) 8190<br \/>\n\/20 255.255.240.0 16 (14) 4094<br \/>\n\/21 255.255.248.0 32 (30) 2046<br \/>\n\/22 255.255.252.0 64 (62) 1022<br \/>\n\/23 255.255.254.0 128 (126) 510<br \/>\n\/24 255.255.255.0 256 (254) 254<br \/>\n\/25 255.255.255.128 512 (510) 126<br \/>\n\/26 255.255.255.192 1024 (1022) 62<br \/>\n\/27 255.255.255.224 2048 (2046) 30<br \/>\n\/28 255.255.255.240 4096 (4094) 14<br \/>\n\/29 255.255.255.248 8192 (8190) 6<br \/>\n\/30 255.255.255.252 16384 (16382) 2<\/p>\n<p>Class C<br \/>\nNetwork Bits Subnet Mask Number of Subnets Number of Hosts<br \/>\n\/24 255.255.255.0 0 254<br \/>\n\/25 255.255.255.128 2 (0) 126<br \/>\n\/26 255.255.255.192 4 (2) 62<br \/>\n\/27 255.255.255.224 8 (6) 30<br \/>\n\/28 255.255.255.240 16 (14) 14<br \/>\n\/29 255.255.255.248 32 (30) 6<br \/>\n\/30 255.255.255.252 64 (62) 2<\/p>\n<p>Class D<br \/>\nCIDR Block Supernet Mask Number of Class C Addresses Number of Hosts<br \/>\n\/14 255.252.0.0 1024 262144<br \/>\n\/15 255.254.0.0 512 131072<br \/>\n\/16 255.255.0.0 256 65536<br \/>\n\/17 255.255.128.0 128 32768<br \/>\n\/18 255.255.192.0 64 16384<br \/>\n\/19 255.255.224.0 32 8192<br \/>\n\/20 255.255.240.0 16 4096<br \/>\n\/21 255.255.248.0 8 2048<br \/>\n\/22 255.255.252.0 4 1024<br \/>\n\/23 255.255.254.0 2 512<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For future reference ** note to self ** \/31 is for point to point, ie wireless isp to client Bitmask (Bits) Dotted Decimal Hexadecimal Binary \/0 0.0.0.0 0x00000000 00000000 00000000 00000000 00000000 \/1 128.0.0.0 0x80000000 10000000 00000000 00000000 00000000 \/2 192.0.0.0 0xc0000000 11000000 00000000 00000000 00000000 \/3 224.0.0.0 0xe0000000 11100000 00000000 00000000 00000000 \/4 240.0.0.0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":6,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions\/74"}],"wp:attachment":[{"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tygarbyte.com\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}