{"id":6251,"date":"2021-01-26T17:10:54","date_gmt":"2021-01-26T15:10:54","guid":{"rendered":"https:\/\/tekmart.co.za\/t-blog\/?p=6251"},"modified":"2021-01-26T17:10:55","modified_gmt":"2021-01-26T15:10:55","slug":"the-difference-between-vlan-vs-subnet","status":"publish","type":"post","link":"https:\/\/tekmart.co.za\/t-blog\/the-difference-between-vlan-vs-subnet\/","title":{"rendered":"The difference between VLAN vs. subnet."},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2 class=\"wp-block-heading\"><strong>While VLANs are a type of subnet, they have their own unique capabilities and characteristics that differentiate them from subnets. However, the OSI model plays a major role in both.<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/froehlich_andrew.jpg\" alt=\"Andrew Froehlich\"\/><\/figure>\n\n\n\n<p>By <a href=\"https:\/\/www.techtarget.com\/contributor\/Andrew-Froehlich\">Andrew Froehlich<\/a><\/p>\n\n\n\n<p>A prevailing question that many new network administrators ask is the difference between virtual LANs &#8212; or VLANs &#8212; and IP subnetworks, or subnets. While instances occur where one can use the terms&nbsp;<em>VLAN<\/em>&nbsp;and&nbsp;<em>subnet<\/em>&nbsp;interchangeably, distinct differences exist between the two.<\/p>\n\n\n\n<p>To truly understand the divergence between\u00a0VLANs\u00a0vs.\u00a0subnets, one must first understand the OSI model. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>This technical reference model details how applications communicate with one another across a network. In most cases, the type of network protocol used is <strong>IP<\/strong>, which stands for <strong>I<\/strong>nternet <strong>P<\/strong>rotocol.<\/p><\/blockquote><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is the OSI model?<\/strong><\/h3>\n\n\n\n<p>The\u00a0OSI model\u00a0consists of seven different groups, or layers. Each layer builds on top of the other to properly package, address and send data in the packet&#8217;s payload. IP networks use the two following addressing methods:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Media access control (MAC) address.<\/strong>\u00a0This address uses a 16-character hexadecimal address unique to the device&#8217;s network card. MAC addresses function at Layer 2 and are used to communicate with other devices within the same Layer 2 LAN.<\/li><li><strong>IP address.<\/strong>\u00a0This is a 32-bit numbering scheme administrators can assign to each connected device. IP addressing happens at Layer 3 of the OSI model.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>VLANs vs. subnets: Key differences<\/strong><\/h3>\n\n\n\n<p>Without getting too deep into the inner workings of VLANs vs. subnets, network administrators must understand the VLAN&#8217;s purpose is to communicate with other devices within the same LAN, which is known as&nbsp;<em>intra-VLAN communication<\/em>. IP subnets, on the other hand, transmit data between VLANs &#8212; dubbed&nbsp;<em>inter-VLAN communication<\/em>.<\/p>\n\n\n\n<p>Where things get muddled, however, is that devices within the same VLAN must also be configured within the same IP subnet. Essentially, intra-VLAN communication requires\u00a0both a MAC address and an IP address\u00a0within the same subnet to communicate.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"What is the OSI Model (Open Systems Interconnection Model)?\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/jlp8HL_iIqo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>VLANs and subnets in practice<\/strong><\/h3>\n\n\n\n<p>As a business adds more devices to a LAN, a single VLAN\u00a0becomes overutilized\u00a0due to an increase in broadcast traffic. These broadcasts bog down the network until it can no longer transmit and receive data efficiently.<\/p>\n\n\n\n<p>To counter this, network administrators can create additional VLANs. Creating multiple VLANs breaks up the broadcast domains and reduces the amount of broadcast traffic on each LAN segment. However, when a device on one VLAN needs to talk to another device on a different VLAN, it cannot do so without going through a router interface.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Router interfaces operate at Layer 3 of the OSI model and require IP to communicate. Static routes or\u00a0dynamic routing\u00a0protocols can direct traffic initiated from one VLAN to another. Thus, each VLAN must be configured to split into separate broadcast domains at Layer 2 and include how to communicate between VLANs at Layer 3.<\/p><\/blockquote>\n\n\n\n<p>To accomplish this configuration, a network administrator must first create a unique IP subnet for each VLAN. Next, the administrator must assign the subnet a gateway IP address, which is the router interface&#8217;s IP address. When traffic travels between VLANs, the packets are directed first to the VLAN&#8217;s default gateway. From there, the router will perform a routing table lookup to find the destination IP subnet and send the traffic to the corresponding gateway address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>While VLANs are a type of subnet, they have their own unique capabilities and characteristics that differentiate them from subnets. However, the OSI model plays a major role in both. By Andrew Froehlich A prevailing question that many new network administrators ask is the difference between virtual LANs &#8212; or VLANs &#8212; and IP subnetworks, or subnets. While instances occur<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/tekmart.co.za\/t-blog\/the-difference-between-vlan-vs-subnet\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155,4,30,3,195,9,12,76],"tags":[],"class_list":["post-6251","post","type-post","status-publish","format-standard","hentry","category-batting-for-tech-in-the-covid-19-times","category-datacenter-news","category-expert-advise-and-opinion","category-industry-news-and-expert-advise","category-network-visibility","category-tech-definitions","category-tekmart-enterprise-hardware-tips","category-telecoms-networks-and-broadband-communications"],"_links":{"self":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/comments?post=6251"}],"version-history":[{"count":1,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6251\/revisions"}],"predecessor-version":[{"id":6252,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/6251\/revisions\/6252"}],"wp:attachment":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/media?parent=6251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/categories?post=6251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/tags?post=6251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}