How to Configure VLAN on Layer 2 Switch in GNS3 | L2 Switch VLAN Routing | SYSNETTECH Solutions

submitted by tolqabaqci on 11/14/20 1

This video shows you the steps to create VLANs on Cisco Layer 2 Switches using the GNS3 network simulator program, as well as the steps of configuring Inter-VLAN routing to communicate computers on two different VLANs. ✅ S U B S C R I B E ► goo.gl/8d0iG9 ✅ Article ► www.sysnettechsolutions.com/en/configure-vlan-in-layer-2-switch/ To create and configure #VLANs: Step 1: First, install the #GNS3 program on your computer and then add the L2 Switch on it. Step 2: Add one Cisco Router, two L2 Switches, and three Virtual PCs to the workspace. Step 3: Create the network topology you see in our video tutorial in your workspace and connect the VPCS to SW1 and connect SW1 to the Router. Step 4: Connect your SW2 device to SW1 only. Step 5: Before creating VLAN5 and VLAN10 on your network topology, determine their IP Subnet addresses and write them down in the workspace. Step 6: Select which VPCS you want to add to the VLANs we will create and write them down. Thus, you can better understand the working logic of virtual networks. Step 7: Now configure the TCP/IP settings of the VPCS's respectively and assign one IP address. Do not forget to write down the IP address of the default gateway while doing this. For example; ip address 192.168.5.5/24 192.168.5.1 Step 8: You can use the show ip command to view the settings you have made on Virtual PCs. Also, do not forget to save the settings with the save command because if you restart them, all the settings you have made will be lost. Step 9: After configuring the VPCS, create a new VLAN with the vlan 5 and vlan 10 commands at the CLI command prompt of L2 SW1. Name the network with the name command in config mode of each virtual network you create. Step 10: You can control the VLANs you created with the show vlan command in the enable mode of the #switch. The point you need to pay attention to here is to add FastEthernet or GigabitEthernet interfaces to the Ports section of the output. Step 11: Now, to add the computers to VLANs, execute the switchport mode access and switchport access vlan (vlan number) commands in the config mode of the corresponding ethernet interface in the CLI of the Switch. Step 12: Since SW2 added to the network topology is connected to the Gig0 / 3 interface of SW1, this port must be in Trunk mode to carry VLAN information. To do this, execute the switchport mode trunk and switchport trunk encapsulation dot1q commands on the respective interface. Step 13: You also need to configure SW1's interface connected to the Router as Trunk. It is enough to execute switchport mode trunk and switchport trunk encapsulation dot1q commands in config mode of the relevant port. Step 14: You can use the show interfaces switchport command in enable mode to control information such as VLAN information, encapsulation type, etc. about interfaces on the switch. Step 15: Now create VLAN5 in SW2 and assign the Gig0/1 interface to which the VPCS is connected to VLAN5. Step 16: Since SW2 is connected to SW1, configure the Gig0/0 interface as trunking so that it can receive VLAN information. Step 17: Ping PC1 and PC2 through PC3 in SW2 and test the network connection. PC3 will not be able to ping PC2 because both computers are on a different subnet and no routing has been configured on the Router. Step 18: Now, at the CLI command prompt of the Cisco Router, go to the interface configuration with the interface fastethernet0/0 command and open the port with the no shutdown command. Step 19: After opening the port, exit the relevant interface with exit and execute the interface fastethernet 0/0. The VLAN-Number value here is the number of the virtual networks you created. This value is usually assigned according to VLAN numbers to avoid complexity in network design. Step 20: After executing the subinterface command, execute the encapsulation dot1q (VLAN ID) command in the config subif mode of the interface. Then assign an IP address according to VLAN5. Likewise, execute these commands for VLAN10. Step 21: So far everything is working perfectly and smoothly. PC3 was not pinging PC2, try again now and check the result. Step 22: NOTE: Since there is only one cable connection between Router and Switch, VLAN Routing on a stick is configured in this topology. Step 23: Do not forget to subscribe to our YouTube channel for more videos on Cisco networking training with GNS3! ───────────────RELATED VIDEOS─────────────── ➊ How to Configure RIPv1 ➦ www.youtube.com/watch?v=839dk8lYhFU ➋ How to Configure RIPv2 ➦ www.youtube.com/watch?v=1tsGWuCtEIw ➌ How to Configure Cloud ➦ www.youtube.com/watch?v=DVokiwWzlxk ➍ How to Configure EIGRP ➦ www.youtube.com/watch?v=rJC3UERvdnQ ───────────────FOLLOW US─────────────────── ✔ Facebook ➦ www.facebook.com/SysnettechSolutions/ ✔ Twitter ➦ twitter.com/SysnettechS/ ✔ LinkedIn ➦ linkedin.com/in/tolqabaqci/ ███████████████████████████████████████████

Leave a comment

Be the first to comment

Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×