{"id":737,"date":"2019-10-07T18:36:35","date_gmt":"2019-10-08T01:36:35","guid":{"rendered":"https:\/\/ioflood.com\/blog\/?p=737"},"modified":"2023-08-11T17:40:15","modified_gmt":"2023-08-12T00:40:15","slug":"ipv4-address-subnetting-explained","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/ipv4-address-subnetting-explained\/","title":{"rendered":"IPv4 Address Subnetting  Explained"},"content":{"rendered":"\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"640\" height=\"441\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2019\/09\/matrix-3109378_640.jpg\" alt=\"matrix inspired green numbers\" class=\"wp-image-738\" title=\"\" srcset=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2019\/09\/matrix-3109378_640.jpg 640w, https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2019\/09\/matrix-3109378_640-300x207.jpg 300w, https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2019\/09\/matrix-3109378_640-200x138.jpg 200w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Every server at IOFlood comes standard with one \/29 worth of IPv4 IP addresses.\u00a0 Additional IP\u2019s can be added at an extra cost, up to a total of one single \/24 (or equivalent) worth of IPv4 addresses per server.\u00a0\u00a0<br><\/p>\r\n\r\n\r\n\r\n<p>But how many IP\u2019s do you really get with a \/29 or a \/24?<br><\/p>\r\n\r\n\r\n\r\n<p>In this post, we\u2019re going to explain the way IP\u2019s are assigned by breaking it down for you.<br><\/p>\r\n\r\n\r\n\r\n<p>Let\u2019s look at our standard \/29 first.\u00a0 For this, we\u2019re going to use our IP range <strong>192.168.0.0\/29<\/strong><br><\/p>\r\n\r\n\r\n\r\n<p>A single \/29 of IP addresses is a total of 8 IPv4 addresses which provides 5 usable IPv4 addresses.\u00a0\u00a0<br><\/p>\r\n\r\n\r\n\r\n<p>Netmask: 255.255.255.248 <br>Network ID:\u00a0 192.168.0.0  <br>Gateway IP: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.6 <br>Broadcast Address:\u00a0 192.168.0.7  <\/p>\r\n\r\n\r\n\r\n<p>Without going into super technical details, the first, second and last IP addresses in any given subnet are always &#8220;reserved&#8221; for network routing purposes (as outlined above), and are not able to be used on the server itself.<br><\/p>\r\n\r\n\r\n\r\n<p>The first of the usable IP\u2019s is allocated as the primary Server IP.\u00a0 In this case, the Server IP is 192.168.0.2, after which the remaining usable IP addresses, 192.168.0.3 &#8211; 192.168.0.6, can be configured on the server.\u00a0\u00a0<br><\/p>\r\n\r\n\r\n\r\n<p>The breakdown of IP allocations remains the same across the larger sized allocations.\u00a0 The first, second and last IP addresses in each subnet will always be reserved for network routing purposes, but with the larger allocations obviously the number of useable IP\u2019s changes as you can see with each of the ranges below.<\/p>\r\n\r\n\r\n\r\n<p>______________________________________________________________________________<\/p>\r\n\r\n\r\n\r\n<p><strong>192.168.0.0\/28 <br><\/strong>Netmask: 255.255.255.240    <br>Network ID:\u00a0 192.168.0.0  <br>Gateway: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.14  <br>Broadcast Address:\u00a0 192.168.0.15  <br><em>Total Usable IP Addresses:\u00a0 <strong>13<\/strong> <\/em><\/p>\r\n\r\n\r\n\r\n<p> ______________________________________________________________________________ <br><\/p>\r\n\r\n\r\n\r\n<p><strong>192.168.0.0\/27 <br><\/strong>Netmask: 255.255.255.224  <br>Network ID:\u00a0 192.168.0.0  <br>Gateway: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.30  <br>Broadcast Address:\u00a0 192.168.0.31  <br><em>Total Usable IP Addresses:\u00a0 <strong>29<\/strong> <\/em><\/p>\r\n\r\n\r\n\r\n<p> ______________________________________________________________________________  <br><\/p>\r\n\r\n\r\n\r\n<p><strong>192.168.0.0\/26 <br><\/strong>Netmask: 255.255.255.192  <br>Network ID:\u00a0 192.168.0.0  <br>Gateway: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.62 <br>Broadcast Address:\u00a0 192.168.0.63   <br><em>Total Usable IP Addresses:\u00a0 <strong>61<\/strong> <\/em><\/p>\r\n\r\n\r\n\r\n<p> ______________________________________________________________________________   <br><\/p>\r\n\r\n\r\n\r\n<p><strong>192.168.0.0\/25 <br><\/strong>Netmask: 255.255.255.128  <br>Network ID:\u00a0 192.168.0.0  <br>Gateway: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.126  <br>Broadcast Address:\u00a0 192.168.0.127  <br><em>Total Usable IP Addresses:\u00a0 <strong>125<\/strong> <\/em><\/p>\r\n\r\n\r\n\r\n<p> ______________________________________________________________________________    <br><\/p>\r\n\r\n\r\n\r\n<p><strong>192.168.0.0\/24 <br><\/strong>Netmask: 255.255.255.0  <br>Network ID:\u00a0 192.168.0.0  <br>Gateway: 192.168.0.1  <br>Usable IP Range: 192.168.0.2 &#8211; 192.168.0.254  <br>Broadcast Address:\u00a0 192.168.0.255  <br><em>Total Usable IP Addresses:\u00a0 <strong>253<\/strong> <\/em><\/p>\r\n\r\n\r\n\r\n<p>\r\n\r\n______________________________________________________________________________   \r\n\r\n<\/p>\r\n\r\n\r\n\r\n<p>For ease of reference, we have included a brief table that easily outlines both the total number of IP&#8217;s and the number of usable IP&#8217;s with each \/IPv4 Allocation.  <\/p>\r\n\r\n\r\n\r\n<table class=\"wp-block-table\"><tbody><tr><td><strong>IP Allocation<\/strong><\/td><td><strong>Subnet Mask<\/strong><\/td><td><strong>Total IPs<\/strong><\/td><td><strong>Usable IPs<\/strong><\/td><\/tr><tr><td>\/29<\/td><td>255.255.255.248<\/td><td>8<\/td><td>5<\/td><\/tr><tr><td>\/28<\/td><td>255.255.255.240<\/td><td>16<\/td><td>13<\/td><\/tr><tr><td>\/27<\/td><td>255.255.255.224<\/td><td>32<\/td><td>29<\/td><\/tr><tr><td>\/26<\/td><td>255.255.255.192<\/td><td>64<\/td><td>61<\/td><\/tr><tr><td>\/25<\/td><td>255.255.255.128<\/td><td>128<\/td><td>125<\/td><\/tr><tr><td>\/24<\/td><td>255.255.255.0<\/td><td>256<\/td><td>253<\/td><\/tr><tr><td>\/23<\/td><td>255.255.254.0<\/td><td>512<\/td><td>509<\/td><\/tr><tr><td>\/22<\/td><td>255.255.252.0<\/td><td>1024<\/td><td>1021<\/td><\/tr><tr><td>\/21<\/td><td>255.255.248.0<\/td><td>2048<\/td><td>2045<\/td><\/tr><tr><td>\/20<\/td><td>255.255.240.0<\/td><td>4096<\/td><td>4093<\/td><\/tr><tr><td>\/19<\/td><td>255.255.224.0<\/td><td>8192<\/td><td>8189<\/td><\/tr><tr><td>\/18<\/td><td>255.255.192.0<\/td><td>16,384<\/td><td>16,381<\/td><\/tr><tr><td>\/17<\/td><td>255.255.128.0<\/td><td>32,768<\/td><td>32,765<\/td><\/tr><tr><td>\/16<\/td><td>255.255.0.0<\/td><td>65,536<\/td><td>65,533<\/td><\/tr><tr><td>\/15<\/td><td>255.254.0.0<\/td><td>131,072<\/td><td>131,069<\/td><\/tr><tr><td>\/14<\/td><td>255.252.0.0<\/td><td>262,144<\/td><td>262,141<\/td><\/tr><tr><td>\/13<\/td><td>255.248.0.0<\/td><td>524,288<\/td><td>524,285<\/td><\/tr><tr><td>\/12<\/td><td>255.240.0.0<\/td><td>1,048,576<\/td><td>1,048,573<\/td><\/tr><tr><td>\/11<\/td><td>255.224.0.0<\/td><td>2,097,152<\/td><td>2,097,149<\/td><\/tr><tr><td>\/10<\/td><td>255.192.0.0<\/td><td>4,194,304<\/td><td>4,194,301<\/td><\/tr><tr><td>\/9<\/td><td>255.128.0.0<\/td><td>8,388,608<\/td><td>8,388,605<\/td><\/tr><tr><td>\/8<\/td><td>255.0.0.0<\/td><td>16,777,216<\/td><td>16,777,213<\/td><\/tr><tr><td>\/7<\/td><td>254.0.0.0<\/td><td>33,554,432<\/td><td>33,554,429<\/td><\/tr><tr><td>\/6<\/td><td>252.0.0.0<\/td><td>67,108,864<\/td><td>67,108,861<\/td><\/tr><tr><td>\/5<\/td><td>248.0.0.0<\/td><td>134,217,728<\/td><td>134,217,725<\/td><\/tr><tr><td>\/4<\/td><td>240.0.0.0<\/td><td>268,435,456<\/td><td>268,435,453<\/td><\/tr><tr><td>\/3<\/td><td>224.0.0.0<\/td><td>536,870,912<\/td><td>536,870,909<\/td><\/tr><tr><td>\/2<\/td><td>192.0.0.0<\/td><td>1,073,741,824<\/td><td>1,073,741,821<\/td><\/tr><tr><td>\/1<\/td><td>128.0.0.0<\/td><td>2,147,483,648<\/td><td>2,147,483,645<\/td><\/tr><tr><td>\/0<\/td><td>0.0.0.0<\/td><td>4,294,967,296<\/td><td>4,294,967,293<\/td><\/tr><\/tbody><\/table>\r\n","protected":false},"excerpt":{"rendered":"<p>Every server at IOFlood comes standard with one \/29 worth of IPv4 IP addresses.\u00a0 Additional IP\u2019s can be added at an extra cost, up to a total of one single \/24 (or equivalent) worth of IPv4 addresses per server.\u00a0\u00a0 But how many IP\u2019s do you really get with a \/29 or a \/24? In this [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":738,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,11,16,9],"tags":[77,75,74,78,79,76,80],"class_list":["post-737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ipv4","category-networking","category-routing","category-sysadmin","tag-gateway","tag-ip-addresses","tag-ipv4","tag-netmask","tag-network-id","tag-subnetting","tag-usable-ips","cat-140-id","cat-11-id","cat-16-id","cat-9-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":7,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":3130,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions\/3130"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/738"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}