VLAN on Packet Tracer

In this tutorial, we are going to apply VLAN on packet tracer. Let us create a topology with one switch and multiple hosts like in the figure below.
1
if we go to the switch and enter the command “show vlan ”. It shows the following. 
 afadsfadsf
As we can see in the figure above all the interfaces are being displayed and they are all the part of the default vlan 1. Now let us apply vlans on the switch. We are going to create three vlans as follows.
 dsgs
Now, that we have created the vlans. Lets see if they are visible to us.
ds
In the above figure, vlans are visible. Now, we are going to assign interfaces to vlans. They are two ways to do this.
i. We can select an interface and assign that interface to a specific vlan
ii. We can select multiple interfaces (range of interfaces) at once and assign those interfaces to vlan.
In the figure below, we have done both of these.

yyy
Now, when we write “show vlan “ command and observe it. We will realize that interfaces have been assigned to desired vlans respectively.
 ggggggggg
Let us assign IP addresses to PCs. Open the PC.
 fff
Assign IP address.
 kljljk
After assigning IP addresses, when we try to communicate between two PCs belonging to two different vlans, it will fail. Thus, we have achieved our purpose.
 klj
The message sending failure status can be seen in the bottom right corner.
 uu

Reactions:

4 comments:

  1. I configured vlan on switch, but the ping between router and hosts not working, without vlan under switch it was working, but I want scenario such that there should be no ping between host under the switch,but they can access all other resources out of the switch(for example in a class there should be no communication between students, they can access course website)

    ReplyDelete
    Replies
    1. Hi, tech ..what i understood is you want hosts belonging to different vlans to communicate with the router but not with each other. i think that would be difficult to achieve without applying the concept of intervlan routing. I have a tutorial for that too , here it is

      http://cs-study.blogspot.com/2012/11/inter-vlan-routing-router-on-stick.html

      Thats what vlans are for, to provide you full proof security and only those devices belonging to the same vlans can communicate with each other. For inter communication in vlans, refer to the above mentioned article. Cheers.

      Delete
  2. mje koi VLAN bnana sikha de plz its urgent

    ReplyDelete