{"id":591,"date":"2017-02-21T09:33:24","date_gmt":"2017-02-21T09:33:24","guid":{"rendered":"https:\/\/visworlditsolution.wordpress.com\/?p=591"},"modified":"2017-02-21T09:33:24","modified_gmt":"2017-02-21T09:33:24","slug":"how-to-configure-vlan-in-cisco-switch","status":"publish","type":"post","link":"https:\/\/linux.thingsomething.com\/index.php\/2017\/02\/21\/how-to-configure-vlan-in-cisco-switch\/","title":{"rendered":"How to configure VLAN in Cisco Switch"},"content":{"rendered":"<p>Hello guys today we will learn how to configure VLAN(Virtual Area network) in Cisco Switch. Before that we will learn what is VLAN. we can create block in same network through vlan. some times we have to need network block in same network, \u00a0imagine that we want to create two networks block in computer lab and our condition \u00a0is both block cant&#8217;communicate each-other in this condition we will configure VLAN in Switch \u00a0you just follow simple Steps<\/p>\n<p>before we will take two switch and eight Computer and provide ip address like this tables<\/p>\n<table style=\"height:55px;\" border=\"1\" width=\"688\">\n<tbody>\n<tr>\n<td>PC 0<\/td>\n<td>PC 1<\/td>\n<td>PC 2<\/td>\n<td>PC 3<\/td>\n<td>PC 4<\/td>\n<td>PC 5<\/td>\n<td>PC 6<\/td>\n<td>PC 7<\/td>\n<\/tr>\n<tr>\n<td>1.0.0.1<\/td>\n<td>1.0.0.2<\/td>\n<td>1.0.0.3<\/td>\n<td>1.0.0.4<\/td>\n<td>1.0.0.5<\/td>\n<td>1.0.0.6<\/td>\n<td>1.0.0.7<\/td>\n<td>1.0.0.8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"color:#ff0000;\">Step 2 now will go to switch 1 CLI mod and configure vlan like this<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-594\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/02\/screenshot-84.png?w=300\" alt=\"vlan\" width=\"496\" height=\"491\" \/><\/p>\n<p>Switch&gt;en<\/p>\n<h4><span style=\"color:#99cc00;\"> Switch#config t<\/span><br \/>\n<span style=\"color:#99cc00;\"> Enter configuration commands, one per line. End with CNTL\/Z.<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#vlan 10<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-vlan)#name ccna<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-vlan)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#int Fa0\/1<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport mode access<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport access vlan 10<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#int fa0\/2<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport mode access<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport access vlan 10<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#vlan 20<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-vlan)#name linux<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-vlan)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#int fa0\/3<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport mode access<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport access vlan 20<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#int Fa0\/4<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport mode access<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#switchport access vlan 20<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#99cc00;\"> Switch(config)#<\/span><\/h4>\n<h3><span style=\"color:#ff0000;\">Step 2 we can look our vlan through<span style=\"color:#008000;\"><em> <strong>show vlan<\/strong><\/em><\/span> commands\u00a0<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-595\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/02\/screenshot-832.png?w=300\" alt=\"screenshot-83\" width=\"629\" height=\"396\" \/><\/p>\n<h3><span style=\"color:#ff0000;\"><strong>Step 3 now will go to switchb 2 \u00a0and Configuration vlan same like this<\/strong><\/span><\/h3>\n<h4><span style=\"color:#008000;\">Switch#config t<\/span><br \/>\n<span style=\"color:#008000;\"> Enter configuration commands, one per line. End with CNTL\/Z.<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config)#vlan 10<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-vlan)#name ccna<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-vlan)#exit<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config)#int fa0\/1<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport mod access<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport access vlan 10<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config)#int fa0\/2<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport mod access<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport access vlan 10<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config)#vlan 20<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-vlan)#name linux<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-vlan)#int fa0\/3<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport mod access<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport access vlan 20<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#exit<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config)#int fa0\/4<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport mod access<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#switchport access vlan 20<\/span><br \/>\n<span style=\"color:#008000;\"> Switch(config-if)#exit<\/span><span style=\"color:#008000;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-596\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/02\/screenshot-841.png?w=300\" alt=\"vlan\" width=\"492\" height=\"487\" \/><\/span><\/h4>\n<h3><span style=\"color:#ff0000;\">Step 3 now we r connect both switch and connect VALN 10 and VLAN 20<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-598\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/02\/screenshot-85.png?w=300\" alt=\"vlan\" width=\"729\" height=\"282\" \/><\/p>\n<p>Go to Switch 1 and configure trunk on port fa0\/5<br \/>\nSwitch&gt;en<br \/>\nSwitch#config t<br \/>\nEnter configuration commands, one per line. End with CNTL\/Z.<br \/>\nSwitch(config)#int fa0\/5<br \/>\nSwitch(config-if)#switchport trunk allowed vlan all<br \/>\nSwitch(config-if)#switchport mode trunk<br \/>\nSwitch(config-if)#<\/p>\n<p>Now go to switch 2 and configure trunk on port fa0\/5<\/p>\n<p>Switch&gt;en<br \/>\nSwitch#config t<br \/>\nEnter configuration commands, one per line. End with CNTL\/Z.<br \/>\nSwitch(config)#int fa0\/5<br \/>\nSwitch(config-if)#switchport trunk allowed vlan all<br \/>\nSwitch(config-if)#switchport mode trunk<\/p>\n<p>now Cisco switch on complete VLAN configuretion<\/p>\n<h3>how to remove VLAN<\/h3>\n<p>if we want to remove VLAN then go to switch CLI mode and type just no vlan<\/p>\n<p>Switch(config-if)#no vlan 10<br \/>\nSwitch(config)#no vlan 20<\/p>\n<p>if you have any problem in this process then comments here i will solve your problem you can <a href=\"https:\/\/drive.google.com\/open?id=0B-DQGzWetNG3VEVVbGFtZU1OMlk\">also download vlan lab through this link\u00a0<\/a><\/p>\n<p>Thank you<\/p>\n<p>by Vishnu Sharma<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello guys today we will learn how to configure VLAN(Virtual Area network) in Cisco Switch. Before that we will learn what is VLAN. we can &hellip; <span class=\"ml-btn\"><a href=\"https:\/\/linux.thingsomething.com\/index.php\/2017\/02\/21\/how-to-configure-vlan-in-cisco-switch\/\" class=\"more-link\">Read More<\/a><\/span><\/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":[4,20],"tags":[99,216,217],"class_list":["post-591","post","type-post","status-publish","format-standard","hentry","category-ccna","category-vlan-in-switch","tag-how-to-configure-vlan-in-cisco-router","tag-vlan","tag-vlan-in-cisco-router"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/591"}],"collection":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":0,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"wp:attachment":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}