{"id":91,"date":"2014-02-25T15:35:33","date_gmt":"2014-02-25T15:35:33","guid":{"rendered":"https:\/\/learncisco.net\/index.php\/variable-length-subnet-mask\/"},"modified":"2023-01-05T16:17:19","modified_gmt":"2023-01-05T09:17:19","slug":"variable-length-subnet-mask","status":"publish","type":"page","link":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html","title":{"rendered":"Variable Length Subnet Mask"},"content":{"rendered":"

VLSM occurs when more than one mask is used in a single Class A, B, or C network. Although route summarization causes more than one mask to be used, requiring support for VLSM, you can also simply design a network to use multiple subnet masks. By using VLSM, you can reduce the number of wasted IP addresses in each subnet, allow for more subnets, and avoid having to obtain another registered IP network number from the NIC.<\/p>\n

The following schematic depicts the same familiar network with two different subnet masks (255.255.0.0 and 255.255.255.0) used in network 10.0.0.0.<\/p>\n

\"VLSM\"<\/p>\n

This figure shows a typical choice of using a \/30 prefix (mask 255.255.255.252) on point-topoint serial links, with some other mask (255.255.255.0 in this example) on the LAN subnets. The only real requirements for VLSM are that the subnets do not overlap and that the routing protocol supports VLSM. Subnets overlap when the range of IP addresses in one subnet includes some addresses in the range of valid addresses in another subnet. When using a single mask in a single Class A, B, or C network, you can usually avoid overlapping subnets easily. However, with VLSM, you can more easily overlook cases in which you assign subnets that overlap.<\/span><\/p>\n

To create VLSMs quickly and efficiently, you need to understand how block sizes and charts work together to create the VLSM masks. The following table shows you the block sizes used when creating VLSMs with Class C networks. For example, if you need 25 hosts, then you’ll need a block size of 32. If you need 11 hosts, you’ll use a block size of 16. Need 43 hosts? Then you’ll need a block of 64. You cannot just make up block sizes – they’ve got to be the block sizes shown in the table. So memorize the block sizes in this table – it’s easy. They’re the same numbers we used with subnetting!<\/p>\n\n\n\n\n\n\n\n\n\n
Prefix<\/th>\nMask<\/th>\nHosts<\/th>\nBlock Size<\/th>\n<\/tr>\n
\/25<\/td>\n128<\/td>\n126<\/td>\n128<\/td>\n<\/tr>\n
\/26<\/td>\n192<\/td>\n62<\/td>\n64<\/td>\n<\/tr>\n
\/27<\/td>\n224<\/td>\n30<\/td>\n32<\/td>\n<\/tr>\n
\/28<\/td>\n240<\/td>\n14<\/td>\n16<\/td>\n<\/tr>\n
\/29<\/td>\n248<\/td>\n6<\/td>\n8<\/td>\n<\/tr>\n
\/30<\/td>\n254<\/td>\n2<\/td>\n4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"VLSM occurs when more than one mask is used in a single Class A, B, or C network. Although route summarization causes more than one mask to be used, requiring support for VLSM, you can also simply design a network to use multiple subnet masks. By using VLSM, you can reduce the number of wasted … Read more<\/a>","protected":false},"author":5,"featured_media":0,"parent":87,"menu_order":50,"comment_status":"closed","ping_status":"closed","template":"cisco-page.php","meta":{"_acf_changed":false,"footnotes":""},"acf":[],"yoast_head":"\nVariable Length Subnet Mask - learncisco.net<\/title>\n<meta name=\"description\" content=\"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Variable Length Subnet Mask - learncisco.net\" \/>\n<meta property=\"og:description\" content=\"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html\" \/>\n<meta property=\"og:site_name\" content=\"learncisco.net\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-05T09:17:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html\",\"url\":\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html\",\"name\":\"Variable Length Subnet Mask - learncisco.net\",\"isPartOf\":{\"@id\":\"https:\/\/www.learncisco.net\/#website\"},\"datePublished\":\"2014-02-25T15:35:33+00:00\",\"dateModified\":\"2023-01-05T09:17:19+00:00\",\"description\":\"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.learncisco.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cisco Certification Courses\",\"item\":\"https:\/\/www.learncisco.net\/courses.html\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CCNA 200-301\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"IP Addressing and Subnetting\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-2-ip-addressing-and-subnetting.html\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Variable Length Subnet Mask\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.learncisco.net\/#website\",\"url\":\"https:\/\/www.learncisco.net\/\",\"name\":\"learncisco.net\",\"description\":\"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.\",\"publisher\":{\"@id\":\"https:\/\/www.learncisco.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.learncisco.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.learncisco.net\/#organization\",\"name\":\"learncisco.net\",\"url\":\"https:\/\/www.learncisco.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"contentUrl\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"width\":154,\"height\":24,\"caption\":\"learncisco.net\"},\"image\":{\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Variable Length Subnet Mask - learncisco.net","description":"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.","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:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html","og_locale":"en_US","og_type":"article","og_title":"Variable Length Subnet Mask - learncisco.net","og_description":"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.","og_url":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html","og_site_name":"learncisco.net","article_modified_time":"2023-01-05T09:17:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html","url":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html","name":"Variable Length Subnet Mask - learncisco.net","isPartOf":{"@id":"https:\/\/www.learncisco.net\/#website"},"datePublished":"2014-02-25T15:35:33+00:00","dateModified":"2023-01-05T09:17:19+00:00","description":"This article explains the VLSM, which occurs when more than one mask is used in a single Class A, B, or C network.","breadcrumb":{"@id":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.learncisco.net\/courses\/ccna\/part-2-ip-addressing-and-subnetting-nat\/variable-length-subnet-mask.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.learncisco.net\/"},{"@type":"ListItem","position":2,"name":"Cisco Certification Courses","item":"https:\/\/www.learncisco.net\/courses.html"},{"@type":"ListItem","position":3,"name":"CCNA 200-301","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html"},{"@type":"ListItem","position":4,"name":"IP Addressing and Subnetting","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/part-2-ip-addressing-and-subnetting.html"},{"@type":"ListItem","position":5,"name":"Variable Length Subnet Mask"}]},{"@type":"WebSite","@id":"https:\/\/www.learncisco.net\/#website","url":"https:\/\/www.learncisco.net\/","name":"learncisco.net","description":"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.","publisher":{"@id":"https:\/\/www.learncisco.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.learncisco.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.learncisco.net\/#organization","name":"learncisco.net","url":"https:\/\/www.learncisco.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/","url":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","contentUrl":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","width":154,"height":24,"caption":"learncisco.net"},"image":{"@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/91"}],"collection":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":2,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/91\/revisions"}],"predecessor-version":[{"id":1157,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/91\/revisions\/1157"}],"up":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/87"}],"wp:attachment":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/media?parent=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}