{"id":445,"date":"2026-11-25T01:38:42","date_gmt":"2026-11-25T01:38:42","guid":{"rendered":"https:\/\/techgayan.com\/?p=445"},"modified":"2026-11-30T01:29:28","modified_gmt":"2026-11-30T01:29:28","slug":"what-is-a-vlan","status":"publish","type":"post","link":"https:\/\/techgayan.com\/hi\/what-is-a-vlan\/","title":{"rendered":"What Is a VLAN and Why Do Networks Use It?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A VLAN (virtual LAN) splits one physical switch into several separate logical networks. Devices in different VLANs can&#8217;t talk directly to each other, even when they plug into the same switch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use VLANs<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Security:<\/strong> keep guest devices away from finance or <a href=\"https:\/\/techgayan.com\/hi\/ip-address-vs-mac-address-whats-the-difference\/\" data-type=\"link\" data-id=\"https:\/\/techgayan.com\/ip-address-vs-mac-address-whats-the-difference\/\">server<\/a> traffic.<\/li>\n\n\n\n<li><strong>Performance:<\/strong> smaller broadcast domains mean less unnecessary traffic.<\/li>\n\n\n\n<li><strong>Organization:<\/strong> group devices by department instead of by cable location.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Access ports and trunk ports<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An access port belongs to one VLAN and connects an end device such as a PC. A trunk port carries several VLANs between switches, using 802.1Q tags to mark which VLAN each frame belongs to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Cisco configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Switch(config)# vlan 10<br>Switch(config-vlan)# name Sales<br>Switch(config-vlan)# exit<br>Switch(config)# interface fastethernet0\/1<br>Switch(config-if)# switchport mode access<br>Switch(config-if)# switchport access vlan 10<br>Switch(config-if)# exit<br>Switch(config)# interface gigabitethernet0\/1<br>Switch(config-if)# switchport mode trunk<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code><strong>show vlan brief<\/strong><\/code> to see which ports belong to each VLAN and <code>show interfaces trunk<\/code> to check your trunk links<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Communication between VLANs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Devices in different VLANs need a router or a layer 3 switch to exchange traffic. This is called inter-VLAN routing, and it is a core CCNA topic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>A plain-language guide to VLANs: what they separate, how switch ports are assigned, and a basic Cisco configuration example.<\/p>","protected":false},"author":2,"featured_media":352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[],"class_list":["post-445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking"],"uagb_featured_image_src":{"full":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network.png",1774,887,false],"thumbnail":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network-150x150.png",150,150,true],"medium":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network-300x150.png",300,150,true],"medium_large":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network-768x384.png",768,384,true],"large":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network-1024x512.png",1024,512,true],"1536x1536":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network-1536x768.png",1536,768,true],"2048x2048":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network.png",1774,887,false],"trp-custom-language-flag":["https:\/\/techgayan.com\/wp-content\/uploads\/2026\/11\/Neon-Routing-and-Switching-Network.png",18,9,false]},"uagb_author_info":{"display_name":"TechGayan","author_link":"https:\/\/techgayan.com\/hi\/author\/techgayan\/"},"uagb_comment_info":4,"uagb_excerpt":"A plain-language guide to VLANs: what they separate, how switch ports are assigned, and a basic Cisco configuration example.","_links":{"self":[{"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/posts\/445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":5,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":558,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/posts\/445\/revisions\/558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/media\/352"}],"wp:attachment":[{"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgayan.com\/hi\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}