{"id":1129,"date":"2024-04-22T23:56:36","date_gmt":"2024-04-23T04:56:36","guid":{"rendered":"https:\/\/techlensfocus.com\/?p=1129"},"modified":"2024-05-05T19:40:06","modified_gmt":"2024-05-06T00:40:06","slug":"cisco-packet-tracer-tutorial-vlan-configuration","status":"publish","type":"post","link":"https:\/\/techlensfocus.com\/index.php\/2024\/04\/22\/cisco-packet-tracer-tutorial-vlan-configuration\/","title":{"rendered":"Cisco Packet Tracer Tutorial: VLAN Configuration"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<div class=\"wp-block-ideabox-toc ib-block-toc\" data-anchors='h2,h3,h4,h5,h6' data-collapsable='true' ><div class=\"ib-toc-container ib-toc-list-style-numbers ib-toc-hierarchical ib-toc-expanded\"><div class=\"ib-toc-header\"><div class=\"ib-toc-header-title\">Table of Contents<\/div><div class=\"ib-toc-header-right\"><span class=\"ib-toc-icon-collapse\"><span class=\"dashicon dashicons dashicons-minus\"><\/span><\/span><span class=\"ib-toc-icon-expand\"><span class=\"dashicon dashicons dashicons-plus\"><\/span><\/span><\/div><\/div><div class=\"ib-toc-separator\" style=\"height:2px\"><\/div><div class=\"ib-toc-body\"><ol class=\"ib-toc-anchors\"><\/ol><\/div><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>This lab will guide you through step by step of configuring VLANs on a simulated network using Cisco Packet Tracer. Before we jump into the lab, let&#8217;s have a quick review of what VLAN is.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a VLAN?<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>VLAN stand for Virtual Local Area Network. VLANs allow us to segment a network, separating devices into different broadcast domains (or different subnets), even if they are physically connected to the same network switch. Devices within a VLAN can communicate freely, but traffic is restricted between VLANs, improving network security and performance.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Benefits of VLAN<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enhanced Security:<\/strong>&nbsp;By isolating traffic, VLANs prevent unauthorized access to sensitive data across different departments or user groups.<\/li>\n\n\n\n<li><strong>Improved Network Performance:<\/strong>&nbsp;Limiting broadcast traffic within a VLAN reduces congestion and improves overall network speed for devices.<\/li>\n\n\n\n<li><strong>Simplified Network Management:<\/strong>&nbsp;VLANs make it easier to manage and troubleshoot network issues by segmenting devices based on their purpose.<\/li>\n\n\n\n<li><strong>Increased Scalability:<\/strong>&nbsp;As your network grows, you can easily add new devices to specific VLANs without major reconfiguration.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Essential VLAN terminologies<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Broadcast Domain:<\/strong>&nbsp;A group of devices that can see all broadcast traffic on the network segment. VLANs create separate broadcast domains.<\/li>\n\n\n\n<li><strong>Port:<\/strong>&nbsp;The physical connection point on a switch where devices are plugged in.<\/li>\n\n\n\n<li><strong>Access Port:<\/strong>&nbsp;A switch port configured to belong to a single VLAN, restricting devices connected to that port to communicate only with others within the same VLAN.<\/li>\n\n\n\n<li><strong>Trunk Port:<\/strong>&nbsp;A switch port configured to carry traffic for multiple VLANs, allowing communication between different VLANs (usually connects switches).<\/li>\n\n\n\n<li><strong>VLAN ID:<\/strong>&nbsp;A unique identifier assigned to each VLAN to differentiate traffic and manage access control.<\/li>\n\n\n\n<li><strong>Port tagging<\/strong>: or VLAN tagging, is a technique used to identify and manage different virtual LANs (VLANs) on a network switch.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lab Setup<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Here is the network topology for this lab:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"429\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.VLAN-Topology-1.png\" alt=\"\" class=\"wp-image-1147\" style=\"width:521px;height:auto\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.VLAN-Topology-1.png 705w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.VLAN-Topology-1-300x183.png 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>We will configure <strong>PC1 <\/strong>and <strong>PC2 <\/strong>in <strong>VLAN 10<\/strong>. And <strong>PC3 <\/strong>and <strong>PC4 <\/strong>in <strong>VLAN 20<\/strong>.<\/li>\n\n\n\n<li><strong>VLAN 10 <\/strong>will be named &#8220;HR&#8221;.<\/li>\n\n\n\n<li><strong>VLAN 20 <\/strong>will be named &#8220;Marketing&#8221;.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VLAN Configuration<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>VLAN 1 <\/strong>is the default VLAN on Cisco. Therefore, all the switch port are member of VLAN1. We can check by using the command &#8220;<strong>show vlan&#8221;<\/strong> or &#8220;<strong>show vlan brief&#8221;<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#show vlan\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/1, Fa0\/2, Fa0\/3, Fa0\/4\n                                                Fa0\/5, Fa0\/6, Fa0\/7, Fa0\/8\n                                                Fa0\/9, Fa0\/10, Fa0\/11, Fa0\/12\n                                                Fa0\/13, Fa0\/14, Fa0\/15, Fa0\/16\n                                                Fa0\/17, Fa0\/18, Fa0\/19, Fa0\/20\n                                                Fa0\/21, Fa0\/22, Fa0\/23, Fa0\/24\n                                                Gig0\/1, Gig0\/2\n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    \n\nVLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2\n---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------\n1    enet  100001     1500  -      -      -        -    -        0      0\n1002 fddi  101002     1500  -      -      -        -    -        0      0   \n1003 tr    101003     1500  -      -      -        -    -        0      0   \n1004 fdnet 101004     1500  -      -      -        ieee -        0      0   \n1005 trnet 101005     1500  -      -      -        ibm  -        0      0   <\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the output, under &#8220;VLAN Name,&#8221; you can see <strong>VLAN 1<\/strong> listed as &#8220;default,&#8221;.<\/li>\n\n\n\n<li>The &#8220;Ports&#8221; column shows which ports are members of each VLAN. In this case, all FastEthernet (Fa0\/1 &#8211; Fa0\/24) and GigabitEthernet (Gig0\/1, Gig0\/2) ports are members of VLAN1.<\/li>\n<\/ul>\n\n\n\n<p>Note that because all ports are in the same <strong>VLAN 1<\/strong>, we are able to ping between hosts. For example, we can ping <strong>PC5 <\/strong>(10.0.0.12) from <strong>PC2 <\/strong>(10.0.0.11)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"298\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.ping_.png\" alt=\"\" class=\"wp-image-1256\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.ping_.png 1000w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.ping_-300x89.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/01.ping_-768x229.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create and name the VLAN<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>In this step, we will create two VLANs on the switch, that is  <strong>VLAN 10 <\/strong>with the name &#8220;<strong>HR&#8221; <\/strong>and <strong>VLAN 20 <\/strong>with the name &#8220;<strong>Marketing&#8221;<\/strong>.<\/p>\n\n\n\n<p>First, create <strong>VLAN 10<\/strong> and name it &#8220;HR&#8221;:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#vlan 10\nSwitch(config-vlan)#name HR\nSwitch(config-vlan)#exit<\/pre>\n\n\n\n<p>Second, create <strong>VLAN 20<\/strong> and name it &#8220;Marketing&#8221;<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#vlan 20\nSwitch(config-vlan)#name Marketing\nSwitch(config-vlan)#exit<\/pre>\n\n\n\n<p>Next, we use the command &#8220;<strong>show vlan brief<\/strong>&#8221; to check the result. You will notice that <strong>VLAN 10<\/strong> is named &#8220;HR,&#8221; and <strong>VLAN 20 <\/strong>is named &#8220;Marketing.&#8221;<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#show vlan brief\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/1, Fa0\/2, Fa0\/3, Fa0\/4\n                                                Fa0\/5, Fa0\/6, Fa0\/7, Fa0\/8\n                                                Fa0\/9, Fa0\/10, Fa0\/11, Fa0\/12\n                                                Fa0\/13, Fa0\/14, Fa0\/15, Fa0\/16\n                                                Fa0\/17, Fa0\/18, Fa0\/19, Fa0\/20\n                                                Fa0\/21, Fa0\/22, Fa0\/23, Fa0\/24\n                                                Gig0\/1, Gig0\/2\n10   HR                               active    \n20   Marketing                        active    \n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    <\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Assign switch ports to VLAN<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Next we will assign port to VLAN. Because these port belong to a single VLAN so we configure these port as access port. We will assign <strong>F0\/1<\/strong> and <strong>F0\/3<\/strong> to <strong>VLAN 10<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#int f0\/1\nSwitch(config-if)#switchport mode access\nSwitch(config-if)#switchport access vlan 10\nSwitch(config-if)#do show vlan\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/2, Fa0\/3, Fa0\/4, Fa0\/5\n                                                Fa0\/6, Fa0\/7, Fa0\/8, Fa0\/9\n                                                Fa0\/10, Fa0\/11, Fa0\/12, Fa0\/13\n                                                Fa0\/14, Fa0\/15, Fa0\/16, Fa0\/17\n                                                Fa0\/18, Fa0\/19, Fa0\/20, Fa0\/21\n                                                Fa0\/22, Fa0\/23, Fa0\/24, Gig0\/1\n                                                Gig0\/2\n10   HR                               active    Fa0\/1\n20   Marketing                        active    \n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    \n<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#int f0\/3\nSwitch(config-if)#switchport mode access\nSwitch(config-if)#switchport access vlan 10\nSwitch(config-if)#do show vlan\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/2, Fa0\/4, Fa0\/5, Fa0\/6\n                                                Fa0\/7, Fa0\/8, Fa0\/9, Fa0\/10\n                                                Fa0\/11, Fa0\/12, Fa0\/13, Fa0\/14\n                                                Fa0\/15, Fa0\/16, Fa0\/17, Fa0\/18\n                                                Fa0\/19, Fa0\/20, Fa0\/21, Fa0\/22\n                                                Fa0\/23, Fa0\/24, Gig0\/1, Gig0\/2\n10   HR                               active    Fa0\/1, Fa0\/3\n20   Marketing                        active    \n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    <\/pre>\n\n\n\n<p>From the output, you can see that <strong>VLAN 10 <\/strong>(&#8220;HR&#8221;) has ports<strong> Fa0\/1<\/strong> and <strong>Fa0\/3<\/strong> assigned to it.<\/p>\n\n\n\n<p>Next, we continue assign port <strong>F0\/2 <\/strong>and <strong>F0\/4 <\/strong>to <strong>VLAN 20<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#int f0\/2\nSwitch(config-if)#switchport mode access\nSwitch(config-if)#switchport access vlan 20\nSwitch(config-if)#exit\nSwitch(config)#int f0\/4\nSwitch(config-if)#switchport mode access\nSwitch(config-if)#switchport access vlan 20\nSwitch(config-if)#do show vlan\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/5, Fa0\/6, Fa0\/7, Fa0\/8\n                                                Fa0\/9, Fa0\/10, Fa0\/11, Fa0\/12\n                                                Fa0\/13, Fa0\/14, Fa0\/15, Fa0\/16\n                                                Fa0\/17, Fa0\/18, Fa0\/19, Fa0\/20\n                                                Fa0\/21, Fa0\/22, Fa0\/23, Fa0\/24\n                                                Gig0\/1, Gig0\/2\n10   HR                               active    Fa0\/1, Fa0\/3\n20   Marketing                        active    Fa0\/2, Fa0\/4\n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active  <\/pre>\n\n\n\n<p>As you can see, the output from command &#8220;do show vlan&#8221; shows <strong>VLAN 20 <\/strong>(&#8220;Marketing&#8221;) has ports <strong>Fa0\/2<\/strong> and <strong>Fa0\/4<\/strong> assigned to it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the result<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Now you have finished VLAN configuration, let&#8217;s try to test the connectivity between VLANs.<\/p>\n\n\n\n<p>Ping <strong>PC1 <\/strong>(10.0.0.10, VLAN 10) from <strong>PC2 <\/strong>(10.0.0.11, VLAN 10). The ping should be successful because <strong>PC1 <\/strong>and <strong>PC2 <\/strong>are in the same <strong>VLAN 10<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"297\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/02.ping_.png\" alt=\"\" class=\"wp-image-1257\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/02.ping_.png 998w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/02.ping_-300x89.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/02.ping_-768x229.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/figure>\n\n\n\n<p>Ping <strong>PC5 <\/strong>(10.0.0.12, VLAN 1) from <strong>PC2 <\/strong>(10.0.0.11, VLAN 10). The ping will fail because <strong>PC5 <\/strong>and <strong>PC2 <\/strong>are not in the same VLAN, even though <strong>PC5 <\/strong>and <strong>PC2 <\/strong>are in the same subnet. VLAN has logically segmented the network into separate broadcast domains. To be able to communicate with each other, devices need to send their packets to a router, which then route the packets between VLANs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"249\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/06.Ping_.png\" alt=\"\" class=\"wp-image-1236\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/06.Ping_.png 969w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/06.Ping_-300x77.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2024\/04\/06.Ping_-768x197.png 768w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Notes<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Cisco, normal VLAN ID range is<strong> 1-1005<\/strong>.<\/li>\n\n\n\n<li>VLAN ID <strong>1002-1005<\/strong> are reserved. <strong>VLAN 1 <\/strong>is also reserved as the default VLAN.<\/li>\n\n\n\n<li>Extended Range VLANs<strong> (1006-4094):<\/strong> Some Cisco switches allow for an extended range of VLAN IDs, but enabling this feature might require specific configurations.<\/li>\n\n\n\n<li>It is not recommended to use<strong> VLAN 1 <\/strong>for security reason because if attackers can gain access to this VLAN, they can access all devices on the network.<\/li>\n<\/ul>\n\n\n\n<p>If you delete a VLAN, the port assigned to that VLAN are automatically removed from the VLAN and become inactive. That port will return to the default VLAN (<strong>VLAN 1<\/strong>). However, if you also shutdown <strong>VLAN 1<\/strong>, the port will no longer be part of any VLAN. It means the port will be in an administratively down state and will not pass any traffic. <\/p>\n\n\n\n<p>For example, let&#8217;s remove the <strong>VLAN 20 <\/strong>assigned to port <strong>F0\/2 <\/strong>and <strong>F0\/4<\/strong> with command &#8220;<strong>no switchport access vlan<\/strong>&#8220;. After that, we completely remove <strong>VLAN 20 <\/strong>from the switch configuration with command &#8220;<strong>no vlan 20<\/strong>&#8220;:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch>enable\nSwitch#configure terminal\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#int f0\/2\nSwitch(config-if)#no switchport access vlan 20\nSwitch(config-if)#exit\nSwitch(config)#int f0\/4\nSwitch(config-if)#no switchport access vlan 20\nSwitch(config-if)#do show vlan brief\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/2, Fa0\/4, Fa0\/5, Fa0\/6\n                                                Fa0\/7, Fa0\/8, Fa0\/9, Fa0\/10\n                                                Fa0\/11, Fa0\/12, Fa0\/13, Fa0\/14\n                                                Fa0\/15, Fa0\/16, Fa0\/17, Fa0\/18\n                                                Fa0\/19, Fa0\/20, Fa0\/21, Fa0\/22\n                                                Fa0\/23, Fa0\/24, Gig0\/1, Gig0\/2\n10   HR                               active    Fa0\/1, Fa0\/3\n20   Marketing                        active    \n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    <\/pre>\n\n\n\n<p>As you can see from the output, port <strong>F0\/2<\/strong> and <strong>F0\/4<\/strong> are no longer belong to <strong>VLAN 20<\/strong>. Next, we remove <strong>VLAN 20<\/strong>: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch(config)#no vlan 20\nSwitch(config)#do show vlan brief\n\nVLAN Name                             Status    Ports\n---- -------------------------------- --------- -------------------------------\n1    default                          active    Fa0\/2, Fa0\/4, Fa0\/5, Fa0\/6\n                                                Fa0\/7, Fa0\/8, Fa0\/9, Fa0\/10\n                                                Fa0\/11, Fa0\/12, Fa0\/13, Fa0\/14\n                                                Fa0\/15, Fa0\/16, Fa0\/17, Fa0\/18\n                                                Fa0\/19, Fa0\/20, Fa0\/21, Fa0\/22\n                                                Fa0\/23, Fa0\/24, Gig0\/1, Gig0\/2\n10   HR                               active    Fa0\/1, Fa0\/3\n1002 fddi-default                     active    \n1003 token-ring-default               active    \n1004 fddinet-default                  active    \n1005 trnet-default                    active    <\/pre>\n\n\n\n<p>The output shows <strong>VLAN 20 <\/strong>has been removed from the switch configuration. Notice that <strong>F0\/2<\/strong> and <strong>F0\/4 <\/strong>are now belong to the default <strong>VLAN 1<\/strong>.<\/p>\n\n\n\n<p>Here are some more commands that you may find it useful when configuring VLAN:<\/p>\n\n\n\n<p>The &#8220;<strong>show mac address-table<\/strong>&#8221; command provides information about MAC addresses learned by the switch and their associated VLANs and ports:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#show mac address-table\n          Mac Address Table\n-------------------------------------------\n\nVlan    Mac Address       Type        Ports\n----    -----------       --------    -----\n\n  10    000a.41b3.6e8c    DYNAMIC     Fa0\/3\n  10    00e0.8f33.1ac3    DYNAMIC     Fa0\/1<\/pre>\n\n\n\n<p>The &#8220;<strong>show flash<\/strong>&#8221; command displays the contents of the flash memory on the switch, which typically stores the operating system image (IOS) and configuration files:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#show flash\nDirectory of flash:\/\n\n    1  -rw-     4670455          &lt;no date>  2960-lanbasek9-mz.150-2.SE4.bin\n    5  -rw-        1284          &lt;no date>  config.text\n    4  -rw-         676          &lt;no date>  vlan.dat\n\n64016384 bytes total (59343969 bytes free)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the output, the third file listed is &#8220;<strong>vlan.dat<\/strong>&#8220;, which stores the VLAN configuration information.<\/li>\n<\/ul>\n\n\n\n<p>The &#8220;<strong>show interfaces status<\/strong>&#8221; command provide a status summary of all interfaces on the switch:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#show interfaces status\nPort      Name               Status       Vlan       Duplex  Speed Type\nFa0\/1                        connected    10         auto    auto  10\/100BaseTX\nFa0\/2                        connected    20         auto    auto  10\/100BaseTX\nFa0\/3                        connected    10         auto    auto  10\/100BaseTX\nFa0\/4                        connected    20         auto    auto  10\/100BaseTX<\/pre>\n\n\n\n<p>You can specify a particular interface with the command &#8220;<strong>show interfaces &lt;interface&gt;<\/strong>&#8221; to view detailed information about that interface:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Switch#show interfaces F0\/1\nFastEthernet0\/1 is up, line protocol is up (connected)\n  Hardware is Lance, address is 00d0.978c.3801 (bia 00d0.978c.3801)\n BW 100000 Kbit, DLY 1000 usec,\n     reliability 255\/255, txload 1\/255, rxload 1\/255\n  Encapsulation ARPA, loopback not set\n...<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>You have successfully finish the basics of VLAN configuration in this Cisco Packet Tracer lab. Now you can segment your network for improved security, manageability, and performance. In the up coming post, we will learn <a href=\"https:\/\/techlensfocus.com\/index.php\/2024\/05\/05\/cisco-packet-tracer-tutorial-configuring-vlan-trunks\/\" target=\"_blank\" rel=\"noopener\" title=\"\">how to configure trunk port<\/a> on the switch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This step-by-step lab guide with Cisco Packet Tracer will show you how to configure VLANs<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,7],"tags":[56,57,55],"class_list":["post-1129","post","type-post","status-publish","format-standard","hentry","category-it","category-networking","tag-cisco","tag-packet-tracer","tag-vlan"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/1129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/comments?post=1129"}],"version-history":[{"count":116,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/1129\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/1129\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/media?parent=1129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/categories?post=1129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/tags?post=1129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}