{"id":33411,"date":"2019-10-09T10:56:20","date_gmt":"2019-10-09T07:26:20","guid":{"rendered":"https:\/\/airoserver.com\/?p=1534"},"modified":"2022-04-04T09:21:18","modified_gmt":"2022-04-04T04:51:18","slug":"what-is-subnet-mask","status":"publish","type":"post","link":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/","title":{"rendered":"What is Subnet mask?"},"content":{"rendered":"<p>In our last post, we explained about <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/ip-address-classes\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"IP classes (opens in a new tab)\">IP classes<\/a> and we said every IP consists of Network ID and Host ID. Now let&#8217;s see how we can distinguish Network ID (the fixed octets) from Host ID (the variable octets).For this matter, we have to explain about subnet mask first.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Subnet mask:<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>In fact, Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size. In another word it has 4 octets that each octet contains 8 bits. From left to right every bit can get the value of 0 or 1. All of the bits that have the value of 1, show the Network ID and all of the bits that have the value of 0 show our Host ID. This means that a subnet mask in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Binary_number\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"binary (opens in a new tab)\">binary<\/a> is something like this:<\/p>\r\n\r\n\r\n\r\n<p><strong>11111111 00000000 00000000 00000000<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Now if we want to show the exact subnet mask in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Decimal\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Decimal (opens in a new tab)\">decimal<\/a>, It&#8217;ll be something like this:<\/p>\r\n\r\n\r\n\r\n<p><strong>255.0.0.0<\/strong><\/p>\r\n\r\n\r\n\r\n<p>As you might have understood from the example above, for every fixed octet of an IP, the octet is 255 in subnet mask.<\/p>\r\n\r\n\r\n\r\n<p><strong>Another example:<\/strong> 255.255.255.0<\/p>\r\n\r\n\r\n\r\n<p>This subnet mask shows that this IP is a class C IP because the first three octets of our subnet mask are 255 that means they are fixed octets. In IP classes post we said that if the first three octets of an IP show our Network ID, that IP is class C.<\/p>\r\n\r\n\r\n\r\n<p>We have to mention that all octets of a masks (in Decimal) that show us the Network ID aren&#8217;t always 255 in size. This only happens when all 8 bits of an octet are 1 in value. If the octets have less value than 255, it means that the whole octet is not our Network ID and we have to convert the decimal subnet mask to binary to figure it out. Look at the picture below for some examples:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-1539\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/EN-binary-subnet-mask.png\" alt=\"Subnet-mask\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>The first column shows the number of bits that are 1 in value. So, \/8 is class A, \/16 class is B and \/24 is Class C.<\/p>","protected":false},"excerpt":{"rendered":"<p>In our last post, we explained about IP classes and we said every IP consists of Network ID and Host ID. Now let&#8217;s see how we can distinguish Network ID (the fixed octets) from Host ID (the variable octets).For this matter, we have to explain about subnet mask first. Subnet mask: In fact, Subnet mask [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33968,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,182,178],"tags":[85,184],"class_list":["post-33411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-shared-hosting","category-airo-vps","tag-airoserver","tag-network"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Subnet mask?<\/title>\n<meta name=\"description\" content=\"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Subnet mask?\" \/>\n<meta property=\"og:description\" content=\"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-09T07:26:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-04T04:51:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/What-is-Subnet-mask-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"321\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"What is Subnet mask?\",\"datePublished\":\"2019-10-09T07:26:20+00:00\",\"dateModified\":\"2022-04-04T04:51:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/\"},\"wordCount\":339,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\",\"Network\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"Shared Hosting\",\"VPS\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/\",\"name\":\"What is Subnet mask?\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2019-10-09T07:26:20+00:00\",\"dateModified\":\"2022-04-04T04:51:18+00:00\",\"description\":\"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is Subnet mask?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/fa\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Subnet mask?","description":"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/","og_locale":"fa_IR","og_type":"article","og_title":"What is Subnet mask?","og_description":"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.","og_url":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2019-10-09T07:26:20+00:00","article_modified_time":"2022-04-04T04:51:18+00:00","og_image":[{"width":700,"height":321,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/What-is-Subnet-mask-1.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"SEO Team","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"2 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"What is Subnet mask?","datePublished":"2019-10-09T07:26:20+00:00","dateModified":"2022-04-04T04:51:18+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/"},"wordCount":339,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver","Network"],"articleSection":["AiroServer","Dedicated","Shared Hosting","VPS"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/","url":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/","name":"What is Subnet mask?","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2019-10-09T07:26:20+00:00","dateModified":"2022-04-04T04:51:18+00:00","description":"Subnet mask is something to help us distinguish Network ID and Host ID in an IP. Like an IPv4, subnet mask is 32 bit in size.","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/what-is-subnet-mask\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"What is Subnet mask?"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/fa\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/comments?post=33411"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33411\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media\/33968"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media?parent=33411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/categories?post=33411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/tags?post=33411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}