
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Configure VLAN Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/configure-vlan/feed/" rel="self" type="application/rss+xml" />
	<link>https://168.138.42.164/tag/configure-vlan/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sun, 29 Mar 2020 03:43:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Configure VLAN Archives - TECHNIG</title>
	<link>https://168.138.42.164/tag/configure-vlan/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Configure Inter VLAN Routing on Cisco Router and Layer 3 Switches</title>
		<link>https://www.technig.com/configure-inter-vlan-routing-cisco-router/</link>
					<comments>https://www.technig.com/configure-inter-vlan-routing-cisco-router/#comments</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Thu, 01 Jun 2017 04:58:04 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CCNA]]></category>
		<category><![CDATA[CCNA Lab Manual]]></category>
		<category><![CDATA[CCNA Packet Tracer Lab]]></category>
		<category><![CDATA[Cisco Router Configuration]]></category>
		<category><![CDATA[Configure VLAN]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Inter VLAN Routing]]></category>
		<category><![CDATA[Packet Tracer Lab]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=2449</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure Inter VLAN Routing" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg 840w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>A complete guide to configure Inter VLAN Routing on Cisco Router and Layer 3 switch to learn inter VLAN routing. </p>
<p>The post <a href="https://www.technig.com/configure-inter-vlan-routing-cisco-router/">Configure Inter VLAN Routing on Cisco Router and Layer 3 Switches</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure Inter VLAN Routing" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg 840w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>A step by step guide to configure Inter-VLAN Routing on the Cisco router or layer 3 switches. Basically, on a VLAN, no host can communicate with hosts within other VLANs. It means only hosts that are members of the same VLAN can communicate with each other. So if you want your VLANs hosts can communicate with each other, you must configure inter-VLAN routing using a router or a layer 3 switch. Here we completely demonstrate the Inter-VLAN configuration using a Cisco router and a layer 3 switch.</p>
<p>The router you are using for Inter-VLAN routing must be compatible and support <a href="https://en.wikipedia.org/wiki/Cisco_Inter-Switch_Link" target="_blank" rel="noopener noreferrer">Inter-Switch Link</a> (ISL) which is a Cisco Systems proprietary protocol, and IEEE 802.1q frame format for routing on the Fast Ethernet interfaces. In Inter-VLAN the physical Fast Ethernet interface of the router is divided into sub-Interfaces for each VLAN. You can set IP address for each sub-Interface in order to route between VLANs.</p>
<figure id="attachment_2450" aria-describedby="caption-attachment-2450" style="width: 840px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg"><img decoding="async" class="wp-image-2450 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg" alt="Configure Inter VLAN Routing" width="840" height="420" srcset="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.jpg 840w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></a><figcaption id="caption-attachment-2450" class="wp-caption-text">Configure Inter VLAN Routing</figcaption></figure>
<h2>How to Create VLAN on Cisco Switches?</h2>
<p>Let&#8217;s configure it on the below Inter-VLAN routing Lab. Download the Packet Tracer <a href="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing-Technig.zip" target="_blank" rel="noopener noreferrer">Inter-VLAN routing</a> Lab for CCNA or create your own Lab.</p>
<p><strong>1.</strong> First of all, create two VLAN in the switch and named VLAN A and VLAN B with the following command.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Switch&gt;enable 
Switch#configure terminal 
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name VLAN-A
Switch(config-vlan)#vlan 3
Switch(config-vlan)#name VLAN-B
Switch(config-vlan)#exit</pre>
<p><strong>2.</strong> OK, the VLANs A and B are created successfully. Now check them with &#8220;<strong>show vlan</strong>&#8221; command.</p>
<figure id="attachment_2457" aria-describedby="caption-attachment-2457" style="width: 563px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Inter-VLAN-Routing.jpg"><img decoding="async" class="wp-image-2457 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Inter-VLAN-Routing.jpg" alt="Inter-VLAN Routing" width="563" height="271" srcset="https://www.technig.com/wp-content/uploads/2015/04/Inter-VLAN-Routing.jpg 563w, https://www.technig.com/wp-content/uploads/2015/04/Inter-VLAN-Routing-300x144.jpg 300w" sizes="(max-width: 563px) 100vw, 563px" /></a><figcaption id="caption-attachment-2457" class="wp-caption-text">Configure Inter-VLAN Routing</figcaption></figure>
<p><strong>3.</strong> You see the result in the screenshot, the VLANs are ready for assigning switch ports to them.</p>
<h2>Assigning Switch Ports for VLANs</h2>
<p>In this section, the switch ports are divide and assign to VLANs. Before configuring Inter-VLAN routing, a host in a VLAN can only communicate within its own VLAN and not reach to other VLANs. So let&#8217;s configure it.</p>
<p><strong>1.</strong> Try to assign switch ports for each VLANs with the following commands.</p>
<figure id="attachment_2459" aria-describedby="caption-attachment-2459" style="width: 278px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Assigning-Switch-Ports-to-VLANs.jpg"><img loading="lazy" decoding="async" class="wp-image-2459 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Assigning-Switch-Ports-to-VLANs.jpg" alt="Assigning Switch Ports to VLANs" width="278" height="189" /></a><figcaption id="caption-attachment-2459" class="wp-caption-text">Assigning Switch Ports to VLANs</figcaption></figure>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface fastEthernet 0/5
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit</pre>
<p><strong>2.</strong> Now the port <strong>FastEthernet 0/2</strong> and <strong>FastEthernet 0/5</strong> are members of <strong>VLAN 2</strong> which named <strong>VLAN-A</strong>. Go to set the PC3 and PC2 to <strong>VLAN-B</strong>.</p>
<p><strong>3.</strong> Let&#8217;s assign a range of ports to a VLAN using &#8220;<strong>interface range</strong>&#8221; command.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Switch(config)#interface range fastEthernet 0/3-4
Switch(config-if-range)#switchport mode access 
Switch(config-if-range)#switchport access vlan 3
Switch(config-if-range)#exit</pre>
<p><strong>Note: </strong>The <strong>interface range</strong> command can assign a range of interfaces to a VLAN. Read more about basic VLAN configuration on &#8220;<a href="https://www.technig.com/configure-vlan-cisco-switches/" target="_blank" rel="noopener noreferrer">Configure VLAN on Cisco Switches Using Cisco Packet Tracer</a>&#8221; post.</p>
<figure id="attachment_2461" aria-describedby="caption-attachment-2461" style="width: 570px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Assign-Switch-Ports-to-VLAN.jpg"><img loading="lazy" decoding="async" class="wp-image-2461 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Assign-Switch-Ports-to-VLAN.jpg" alt="Assign Switch Ports to VLAN" width="570" height="257" srcset="https://www.technig.com/wp-content/uploads/2015/04/Assign-Switch-Ports-to-VLAN.jpg 570w, https://www.technig.com/wp-content/uploads/2015/04/Assign-Switch-Ports-to-VLAN-300x135.jpg 300w" sizes="(max-width: 570px) 100vw, 570px" /></a><figcaption id="caption-attachment-2461" class="wp-caption-text">Assign Switch Ports to VLAN</figcaption></figure>
<p><strong>4.</strong> Now we have just done the basic VLAN configuration like creating VLAN and assigning switch ports to VLANs. Let&#8217;s enable Trunking mode on the switch port to the router and then configure Inter-VLAN routing on the router.</p>
<h2>Configure Trunking Ports on Switch</h2>
<p>With the command &#8220;<strong>switch port mode trunk</strong>&#8221; you can configure trunking on the <strong>FastEthernet 0/1</strong> port of the <strong>SW1</strong>. The <strong>VLAN Trunking Protocol</strong> (VTP) let the VLANs transmit theirs traffics over a physical line simultaneously. Read more about <strong><a href="https://en.wikipedia.org/wiki/VLAN_Trunking_Protocol" target="_blank" rel="noopener noreferrer">VTP</a> </strong>on Wikipedia website.</p>
<figure id="attachment_2466" aria-describedby="caption-attachment-2466" style="width: 249px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Configuring-Trunk-Ports.jpg"><img loading="lazy" decoding="async" class="wp-image-2466 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Configuring-Trunk-Ports.jpg" alt="Configuring Trunk Ports" width="249" height="157" /></a><figcaption id="caption-attachment-2466" class="wp-caption-text">Configuring Trunk Ports</figcaption></figure>
<p><strong>1.</strong> Just navigate to <strong>FastEthernet 0/1</strong> interface and type &#8220;<strong>switchport mode trunk</strong>&#8220;<strong> </strong>the press enter to enable trunking on <strong>Fa0/1</strong> interface line.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk 
Switch(config-if)#</pre>
<p><strong>2.</strong> Now the VLANs can transmit traffic over the <strong>FastEthernet 0/1</strong> without any problems.</p>
<p><strong>Note:</strong> Try to enable trunking mode only to interface between to switch or router devices. It&#8217;s not necessary to enable it on the interface of the switch to PC.</p>
<h2>Configure Inter-VLAN Routing on Cisco Router</h2>
<p>Finally, the lab is ready to configure Inter-VLAN routing. If you test the PCs, they can ping with each other within a VLAN but not with other VLANs. So in order to communicate they need routing. Not network routing protocols such as <strong><a href="https://www.technig.com/ccna-configure-static-routing-in-cisco-packet-tracer/" target="_blank" rel="noopener noreferrer">Static routing</a></strong> or dynamic routing like <strong><a href="https://www.technig.com/configure-routing-information-protocol/" target="_blank" rel="noopener noreferrer">RIP</a></strong>, and <strong><a href="https://www.technig.com/configure-ospf-routing-protocol/" target="_blank" rel="noopener noreferrer">OSPF</a></strong>. Just need Inter-VLAN Routing which you simply configure according to below step by step Inter-VLAN routing guide.</p>
<p><strong>1.</strong> Try to assign an IP address to the router and enable the interface you want to configure inter-VLAN routing.</p>
<figure id="attachment_2470" aria-describedby="caption-attachment-2470" style="width: 275px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/VLAN-Routing.jpg"><img loading="lazy" decoding="async" class="wp-image-2470 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/VLAN-Routing.jpg" alt="VLAN Routing" width="275" height="130" /></a><figcaption id="caption-attachment-2470" class="wp-caption-text">VLAN Routing</figcaption></figure>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Router&gt;enable 
Router#configure terminal 
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.248
Router(config-if)#no shutdown</pre>
<p><strong>2.</strong> Good, the IP <strong>192.168.10.1</strong> with the subnet mask of <strong>255.255.255.248</strong> is assigned for physical <strong>FastEthernet 0/0</strong> interface.</p>
<p><strong>Note: </strong>We need to have subinterface for each VLANs on the router. The subinterface is a virtual interface card that inter-VLAN doing routing using them.</p>
<p><strong>3.</strong> Now try to create a subinterface for each VLAN with <strong>interface</strong> command and assign IP address from the different network for each VLAN. In this case, I have subnetted the<strong> 192.168.10.0/24</strong> IP address to <strong>3</strong> networks.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 192.168.10.9 255.255.255.248
Router(config-subif)#</pre>
<p><strong>4.</strong> See the result with &#8220;<strong>do show ip interface brief</strong>&#8221; from sub-interface area.</p>
<figure id="attachment_2471" aria-describedby="caption-attachment-2471" style="width: 618px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Create-Sub-Interface.jpg"><img loading="lazy" decoding="async" class="wp-image-2471 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Create-Sub-Interface.jpg" alt="Create Sub-Interface" width="618" height="133" srcset="https://www.technig.com/wp-content/uploads/2015/04/Create-Sub-Interface.jpg 618w, https://www.technig.com/wp-content/uploads/2015/04/Create-Sub-Interface-300x65.jpg 300w" sizes="(max-width: 618px) 100vw, 618px" /></a><figcaption id="caption-attachment-2471" class="wp-caption-text">Create Sub-Interface</figcaption></figure>
<p>The virtual sub-interface <strong>FastEthernet0/0.2</strong> has created and it has the 192.168.10.9 IP address. This sub-interface act as a default gateway for VLAN-A with an address of <strong>192.168.10.8/29</strong>.</p>
<p><strong>5.</strong> Do the same to create a sub-interface for VLAN-B also.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Router(config)#interface fastEthernet 0/0.3
Router(config-subif)#ip address 192.168.10.17 255.255.255.248

% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.

Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip address 192.168.10.17 255.255.255.248
Router(config-subif)#</pre>
<p><strong>6.</strong> Everything is fine, but you see the error with red colour! It is because we forgot to set the <strong>encapsulation dot1Q</strong> command. Before assigning an IP address to a sub-interface, you should set IEEE 802.1q with <strong>encapsulation</strong> command.</p>
<p>Finally, all VLANs hosts can communicate with each other. That&#8217;s all you need to configure Inter-VLAN routing on your corporate network. Download the complete Lab of <a href="https://www.technig.com/wp-content/uploads/2015/04/Configure-Inter-VLAN-Routing.zip" target="_blank" rel="noopener noreferrer">Inter-VLAN routing</a> Cisco Packet Tracer Lab. Follow the below steps if you want to configure inter-VLAN on Layer 3 Switches or troubleshooting inter-VLAN on routers and switches.</p>
<h2>Configure Inter-VLAN Using Layer 3 Switches</h2>
<p>Work the same, just need a Cisco Layer 3 switch. To configure Inter-VLAN on a Layer 3 switch, you must assign an IP address to VLANs instead of sub-interfaces. Assigning an IP address to VLAN is easy, only read the &#8220;<strong>Assigning IP address to VLAN</strong>&#8221; section at the end of this articles.</p>
<p>To configure Inter-VLAN routing using layer 3 switches, you don&#8217;t need router anymore. All configuration has done within the layer 3 switch.</p>
<h2>Troubleshooting and Assigning IP address to VLANs</h2>
<p>As this post is related to configure Inter-VLAN routing, so we must do some more about VLAN configuration such as assigning IP address to VLANs, controlling VLANs remotely with Telnet, and some essential troubleshooting commands.</p>
<h3>How to Assign an IP address to VLANs?</h3>
<p>In order to assign an IP address to a VLAN, simply go to VLAN and set the IP address like assigning IP address to an interface of a router.</p>
<pre class="toolbar:2 nums-toggle:true lang:default decode:true">Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.10.4 255.255.255.248
Switch(config-if)#no shutdown</pre>
<p>Check it with &#8220;<strong>do show ip interface brief</strong>&#8221; command, whether the default <strong>VLAN 1</strong> has gotten the IP address of <strong>192.168.10.4/29</strong> or not.</p>
<figure id="attachment_2472" aria-describedby="caption-attachment-2472" style="width: 550px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Default-VLAN-1.jpg"><img loading="lazy" decoding="async" class="wp-image-2472 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Default-VLAN-1.jpg" alt="Default VLAN 1" width="550" height="45" srcset="https://www.technig.com/wp-content/uploads/2015/04/Default-VLAN-1.jpg 550w, https://www.technig.com/wp-content/uploads/2015/04/Default-VLAN-1-300x25.jpg 300w" sizes="(max-width: 550px) 100vw, 550px" /></a><figcaption id="caption-attachment-2472" class="wp-caption-text">Default VLAN 1 &#8211; Configure Inter-VLAN Routing</figcaption></figure>
<p>Yes, that&#8217;s fine. This can help you remotely configure VLANs through the internet or network.</p>
<h3>Troubleshooting Inter-VLAN Routing</h3>
<p>To see the VLANs on a switch, type the &#8220;<strong>show vlan</strong>&#8221; command. This command will list all created VLANs within a switch.</p>
<p>The &#8220;<strong>show interface trunk</strong>&#8221; command shows encapsulation and trunking status.</p>
<p>The &#8220;<strong>show interfaces fastEthernet 0/1 switchport</strong>&#8221; display the status of a specific switch port. See the result on the screenshot.</p>
<figure id="attachment_2473" aria-describedby="caption-attachment-2473" style="width: 404px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Encapsulation-Status.jpg"><img loading="lazy" decoding="async" class="wp-image-2473 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Encapsulation-Status.jpg" alt="Configure Inter-VLAN routing - Encapsulation Status" width="404" height="343" srcset="https://www.technig.com/wp-content/uploads/2015/04/Encapsulation-Status.jpg 404w, https://www.technig.com/wp-content/uploads/2015/04/Encapsulation-Status-300x255.jpg 300w" sizes="(max-width: 404px) 100vw, 404px" /></a><figcaption id="caption-attachment-2473" class="wp-caption-text">Configure Inter-VLAN routing &#8211; Encapsulation Status</figcaption></figure>
<p>OK, I think it&#8217;s enough for Configuring Inter-VLAN routing. I hope you find this configure Inter-VLAN routing article&#8217;s helpful and if you have any problem or question regarding this article, ask us through the comment section.</p>
<p>The post <a href="https://www.technig.com/configure-inter-vlan-routing-cisco-router/">Configure Inter VLAN Routing on Cisco Router and Layer 3 Switches</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-inter-vlan-routing-cisco-router/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2449</post-id>	</item>
		<item>
		<title>Configure VLAN on Cisco Switch Using Cisco Packet Tracer</title>
		<link>https://www.technig.com/configure-vlan-cisco-switches/</link>
					<comments>https://www.technig.com/configure-vlan-cisco-switches/#comments</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Tue, 30 May 2017 07:40:40 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CCNA]]></category>
		<category><![CDATA[CCNA Lab]]></category>
		<category><![CDATA[Cisco Router Configuration]]></category>
		<category><![CDATA[Cisco Switch Configuration]]></category>
		<category><![CDATA[Configure VLAN]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Inter-VLAN]]></category>
		<category><![CDATA[Packet Tracer Lab]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=2403</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure VLAN on Cisco Switches" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches.jpg 840w, https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>This is how to configure VLAN on Cisco Switch or Virtual LAN on Cisco Switches in your network. A VLAN is a switched network that is logically segmented by function, project team, or application, without regard to the physical locations of the users. VLANs have the same attributes as physical LANs, but you can group computers [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-vlan-cisco-switches/">Configure VLAN on Cisco Switch Using Cisco Packet Tracer</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure VLAN on Cisco Switches" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches.jpg 840w, https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>This is how to configure VLAN on Cisco Switch or Virtual LAN on Cisco Switches in your network. A <a href="https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/12-2SX/configuration/guide/book/vlans.html">VLAN </a>is a switched network that is logically segmented by function, project team, or application, without regard to the physical locations of the users. VLANs have the same attributes as physical LANs, but you can group computers even if they are not physically located on the same LAN segment. Any switch port can belong to a VLAN, and unicast, broadcast, and multicast packets are forwarded and flooded only to end stations in the VLAN.</p>
<p>Each VLAN is considered a logical network, and packets destined for stations that do not belong to the VLAN must be forwarded through a router or bridge or layer 3 switches. Because a VLAN is considered a separate logical network.</p>
<p>Here we just configure VLAN on Cisco switch and not talking about VTP, STP, and other advanced Switching techniques. It is the basic VLAN configuration. Read more about VLAN on <a href="https://www.technig.com/packet-tracer-ccna-practical-labs/">Cisco Packet Tracer CCNA Lab</a>.</p>
<h2>How to Configure VLAN on Cisco Switch?</h2>
<p>Let&#8217;s start to configure VLAN on Cisco switch using Cisco Packet Tracer. You can download the <a href="https://www.technig.com/wp-content/uploads/2015/04/Configure-VLAN-on-Cisco-Switches.zip">VLAN Lab</a> or create your lab within Cisco packet tracer or other network simulators.</p>
<figure id="attachment_2409" aria-describedby="caption-attachment-2409" style="width: 300px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Create-VLAN.jpg"><img loading="lazy" decoding="async" class="wp-image-2409 size-medium" src="https://www.technig.com/wp-content/uploads/2015/04/Create-VLAN-300x245.jpg" alt="Configure VLAN on Cisco Switch" width="300" height="245" srcset="https://www.technig.com/wp-content/uploads/2015/04/Create-VLAN-300x245.jpg 300w, https://www.technig.com/wp-content/uploads/2015/04/Create-VLAN.jpg 374w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2409" class="wp-caption-text">Configure VLAN on Cisco Switch</figcaption></figure>
<p><strong>1.</strong> Open the VLAN lab and create these three VLAN and named Marketing, Accounting, and Sales. So let&#8217;s create them with the following commands.</p>
<p><strong>2.</strong> First, change the switch name with &#8220;<strong>hostname</strong>&#8221; command.</p>
<pre class="toolbar:2 nums-toggle:true plain:false lang:batch decode:true">Switch&gt;enable 
Switch#configure terminal 
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#</pre>
<p><strong>3.</strong> Now create the VLANs using &#8220;<strong>VLAN&#8221;</strong> command.</p>
<pre class="toolbar:2 nums-toggle:true plain:false lang:batch decode:true">SW2(config)#vlan 2
SW2(config-vlan)#name Marketing 
SW2(config-vlan)#vlan 3
SW2(config-vlan)#name Accounting 
SW2(config-vlan)#vlan 4
SW2(config-vlan)#name Sales
SW2(config-vlan)#</pre>
<p><strong>4.</strong> Just type the &#8220;<strong>do sh vlan</strong>&#8221; command from config mod to see whether VLANs are created or not.</p>
<figure id="attachment_2410" aria-describedby="caption-attachment-2410" style="width: 636px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Show-Vlan-Command.jpg"><img loading="lazy" decoding="async" class="wp-image-2410 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Show-Vlan-Command.jpg" alt="Show Vlan Command" width="636" height="306" srcset="https://www.technig.com/wp-content/uploads/2015/04/Show-Vlan-Command.jpg 636w, https://www.technig.com/wp-content/uploads/2015/04/Show-Vlan-Command-300x144.jpg 300w" sizes="(max-width: 636px) 100vw, 636px" /></a><figcaption id="caption-attachment-2410" class="wp-caption-text">Show VLAN Command</figcaption></figure>
<p>You see the VLANs are created successfully.</p>
<p><strong>5.</strong> Now try to add interfaces to each of these VLANs. All the Interfaces ports are within the default VLAN and not yet grouped to Marketing, Accounting, and Sales. So try to add an interface to a VLAN with the &#8220;<strong>Switchport</strong>&#8221; command.</p>
<pre class="toolbar:2 nums-toggle:true plain:false lang:batch decode:true">SW2(config)#interface fastEthernet 0/5
SW2(config-if)#switchport mode access 
SW2(config-if)#switchport access vlan 2
SW2(config-if)#exit
SW2(config)#interface fastEthernet 0/6
SW2(config-if)#switchport mode access 
SW2(config-if)#switchport access vlan 2
SW2(config-if)#</pre>
<p>I have added the [<strong>fastEthernet 0/5</strong>] and [<strong>fastEthernet 0/6</strong>] to VLAN 2 which is our Marketing VLAN. In this method, we add each interface one by one, but you can use &#8220;<strong>Interface range&#8221;</strong> command to add a group of ports to a VLAN.</p>
<pre class="toolbar:2 nums-toggle:true plain:false lang:batch decode:true">SW2(config)#interface range fastEthernet 0/2-4
SW2(config-if-range)#switchport mode access 
SW2(config-if-range)#switchport access vlan 4</pre>
<p><strong>6.</strong> Finally type &#8220;<strong>do sh vlan</strong>&#8221; and see the result again.</p>
<figure id="attachment_2412" aria-describedby="caption-attachment-2412" style="width: 600px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/04/Create-and-Configure-Vlan.jpg"><img loading="lazy" decoding="async" class="wp-image-2412 size-full" src="https://www.technig.com/wp-content/uploads/2015/04/Create-and-Configure-Vlan.jpg" alt="Create and Configure Vlan" width="600" height="279" srcset="https://www.technig.com/wp-content/uploads/2015/04/Create-and-Configure-Vlan.jpg 600w, https://www.technig.com/wp-content/uploads/2015/04/Create-and-Configure-Vlan-300x140.jpg 300w" sizes="(max-width: 600px) 100vw, 600px" /></a><figcaption id="caption-attachment-2412" class="wp-caption-text">Create and Configure VLAN</figcaption></figure>
<p>Now you can set up VLAN on your network Switches. The next step is configuring <a href="https://www.technig.com/configure-inter-vlan-routing-cisco-router/">Inter-VLAN Routing</a>. I hope you find this article helpful and do comment us about the qualities and improvements of Technig articles.</p>
<p>The post <a href="https://www.technig.com/configure-vlan-cisco-switches/">Configure VLAN on Cisco Switch Using Cisco Packet Tracer</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-vlan-cisco-switches/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2403</post-id>	</item>
	</channel>
</rss>
