VLAN creation on cisco packet tracer.



VLAN creation on cisco packet tracer.
1.    We will discuss in this lesson about VLAN. What is its purpose and why do we create it?
   2.      VLAN stands for virtual local area network that means we can divide resources virtually in different type of tasks. For example, in a company there are three department HR, ADMIN and IT department. All resources connected to each other in single LAN by physically, but we can divide them into three VLANs which will be separately for each department.
  3.    Let’s understand with practical way. In this below picture we have taken one router, one switch and 6 PCs. We will assign each two PC in different VLANs.
VLAN

 4.    Put Unique VLAN ID for each Department like vlan 10 for HR, vlan 11 for ADMIN and vlan 12 for IT Department. Assign IPs to each PC according to given in the picture. As I have put on PC0.
Vlan



     5.    As you can see on above picture, I have put IP for PC0 192.168.1.10 and default gateway for this 192.168.1.1 Its mean default gateway will be 192.168.1.1, 192.168.2.1 and 192.168.3.1 for each Department HR, ADMIN and IT. IPs will be next network host like 192.168.1.2 192.168.1.3 and so on ….
         6.     In next step we will configure VLAN on switch, Kindly follow below configuration
Switch>en
Switch#config t
Switch(config)#vlan 10
Switch(config-vlan)#name HR
Switch(config-vlan)#exit
Switch(config)#vlan 11
Switch(config-vlan)#name ADMIN
Switch(config-vlan)#exit
Switch(config)#vlan 12
Switch(config-vlan)#name IT
Switch(config-vlan)#exit
Switch(config)#
7   7.    Further step we need to assign switch ports as access or trunk. So ports F0/1 to F0/6 will be access because they will carry single VLAN data and port F0/7 will be trunk because it carries all VLAN data. Follow below configuration to assign ports to particular VLAN.
Switch>
Switch>en
Switch#config t
Switch(config)#int range f0/1-2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#int range f0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 11
Switch(config-if-range)#exit
Switch(config)#int range f0/5-6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 12
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#int f0/7
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 10
Switch(config-if)#switchport trunk allowed add vlan 11
Switch(config-if)#switchport trunk allowed add vlan 12
Switch(config-if)#
                      8.     Go to router and need to configure below for further steps.
Router>en
Router#config t
Router(config)#int f0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int f0/0.1
Router(config-subif)#encapsulation dot1Q 11
Router(config-subif)#ip address 192.168.2.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#exit
Router(config)#int f0/0.2
Router(config-subif)#encapsulation dot1Q 12
Router(config-subif)#ip address 192.168.3.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#
9.      Now you can try ICMP packets can be sent. As below in the picture.

VLAN




10.  Kindly put comment on comment box below for suggestion or concern.

1 comment:

  1. Happily recommending this 300-625 study guide from Crack4sure to all students.

    ReplyDelete

General Knowledge Exam Test

Read Best Story Books