{"id":1267,"date":"2024-09-02T03:24:33","date_gmt":"2024-09-02T03:24:33","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=1267"},"modified":"2024-09-02T03:24:33","modified_gmt":"2024-09-02T03:24:33","slug":"subnet-mask-table","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/subnet-mask-table.html","title":{"rendered":"Subnet Mask Table"},"content":{"rendered":"<p>The following table provides a quick reference guide for subnet masks and their corresponding CIDR notation from \/30 up to \/8. It helps determine the number of available IP addresses, total network size, and broadcast addresses within a subnet.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zalvis.com\/docs\/subnet-mask-table.html\/#IPv4\" >IPv4<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zalvis.com\/docs\/subnet-mask-table.html\/#Example\" >Example:<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"IPv4\"><\/span>IPv4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"table-responsive\">\n<table class=\"table table-striped\" border=\"1px\" cellspacing=\"10px\" cellpadding=\"10px\">\n<tbody>\n<tr>\n<td><strong>CIDR<\/strong><\/td>\n<td><strong>Netmask<\/strong><\/td>\n<td><strong>Total addresses<\/strong><\/td>\n<td><strong>Usable<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>\/30<\/strong><\/td>\n<td>255.255.255.252<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td><strong>\/29<\/strong><\/td>\n<td>255.255.255.248<\/td>\n<td>8<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td><strong>\/28<\/strong><\/td>\n<td>255.255.255.240<\/td>\n<td>16<\/td>\n<td>13<\/td>\n<\/tr>\n<tr>\n<td><strong>\/27<\/strong><\/td>\n<td>255.255.255.224<\/td>\n<td>32<\/td>\n<td>29<\/td>\n<\/tr>\n<tr>\n<td><strong>\/26<\/strong><\/td>\n<td>255.255.255.192<\/td>\n<td>64<\/td>\n<td>61<\/td>\n<\/tr>\n<tr>\n<td><strong>\/25<\/strong><\/td>\n<td>255.255.255.128<\/td>\n<td>128<\/td>\n<td>125<\/td>\n<\/tr>\n<tr>\n<td><strong>\/24<\/strong><\/td>\n<td>255.255.255.0<\/td>\n<td>256<\/td>\n<td>253<\/td>\n<\/tr>\n<tr>\n<td><strong>\/23<\/strong><\/td>\n<td>255.255.254.0<\/td>\n<td>512<\/td>\n<td>509<\/td>\n<\/tr>\n<tr>\n<td><strong>\/22<\/strong><\/td>\n<td>255.255.252.0<\/td>\n<td>1,024<\/td>\n<td>1,021<\/td>\n<\/tr>\n<tr>\n<td><strong>\/21<\/strong><\/td>\n<td>255.255.248.0<\/td>\n<td>2,048<\/td>\n<td>2,045<\/td>\n<\/tr>\n<tr>\n<td><strong>\/20<\/strong><\/td>\n<td>255.255.240.0<\/td>\n<td>4,096<\/td>\n<td>4,093<\/td>\n<\/tr>\n<tr>\n<td><strong>\/19<\/strong><\/td>\n<td>255.255.224.0<\/td>\n<td>8,192<\/td>\n<td>8,189<\/td>\n<\/tr>\n<tr>\n<td><strong>\/18<\/strong><\/td>\n<td>255.255.192.0<\/td>\n<td>16,384<\/td>\n<td>16,381<\/td>\n<\/tr>\n<tr>\n<td><strong>\/17<\/strong><\/td>\n<td>255.255.128.0<\/td>\n<td>32,768<\/td>\n<td>32,765<\/td>\n<\/tr>\n<tr>\n<td><strong>\/16<\/strong><\/td>\n<td>255.255.0.0<\/td>\n<td>65,536<\/td>\n<td>65,533<\/td>\n<\/tr>\n<tr>\n<td><strong>\/12<\/strong><\/td>\n<td>255.240.0.0<\/td>\n<td>1,048,544<\/td>\n<td>1,048,541<\/td>\n<\/tr>\n<tr>\n<td><strong>\/8<\/strong><\/td>\n<td>255.0.0.0<\/td>\n<td>16,777,214<\/td>\n<td>16,777,211<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The subnet: 192.168.5.0\/30 has 4 addresses<\/p>\n<p>192.168.5.0 &#8211; Network Address<\/p>\n<p>192.168.5.1 &#8211; Gateway<\/p>\n<p>192.168.5.2 &#8211; Usable IP<\/p>\n<p>192.168.5.3 &#8211; Broadcast<\/p>\n<p>&nbsp;<\/p>\n<p><strong>More information:<\/strong><\/p>\n<ol>\n<li><strong>Network Address<\/strong>: The network address represents the starting address of a subnet. It is used to identify the network itself and cannot be assigned to a host.<\/li>\n<li><strong>CIDR Notation<\/strong>: CIDR (Classless Inter-Domain Routing) notation represents the subnet mask using a combination of an IP address and a slash (&#8220;\/&#8221;) followed by the prefix length. For example, the CIDR notation &#8220;192.168.10.0\/30&#8221; signifies a subnet with a prefix length of 30.<\/li>\n<li><strong>Usable IP Addresses<\/strong>: The usable IP addresses are the range of IP addresses that can be assigned to devices within a subnet. These IP addresses exclude the network and broadcast addresses.<\/li>\n<li><strong>Broadcast Address<\/strong>: The broadcast address represents the last address in a subnet and is used to send a message to all devices within that subnet. It cannot be assigned to a host.<\/li>\n<li><strong>Total IP Addresses<\/strong>: The total IP addresses in a subnet refer to the sum of usable IP addresses, network address, and broadcast address. It provides an overview of the size of the subnet.<\/li>\n<\/ol>\n<div class=\"glnkr69fb0cb057e51\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.glnkr69fb0cb057e51 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.glnkr69fb0cb057e51 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.glnkr69fb0cb057e51 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.glnkr69fb0cb057e51 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.glnkr69fb0cb057e51 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>The following table provides a quick reference guide for subnet masks and their corresponding CIDR notation from \/30 up to \/8. It helps determine the number of available IP addresses, total network size, and broadcast addresses within a subnet. IPv4 CIDR Netmask Total addresses Usable \/30 255.255.255.252 4 1 \/29 255.255.255.248 8 5 \/28 255.255.255.240 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1267","post","type-post","status-publish","format-standard","hentry","category-server-setup"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=1267"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/1267\/revisions"}],"predecessor-version":[{"id":1269,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/1267\/revisions\/1269"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}