Introduction: Configure VLAN in Cisco Packet Tracer

About: Electronic Engineer, please visit our web site http://www.sparkgt.org

In this instructable will explain how to configure vlans on the switches. Vlans only works on Layer 2.

Configurar VLAN en Cisco Packet Tracer

En este instuctable se explicará como configurar por medio de comandos las vlans para los switches. Hay que tomar en consideración de que las vlans funcionan únicamente para capa 2.

Step 1: Place

Step 1: Place and connect the devices.

Paso 1: Colocar y conectar los equipos.

Step 2: Configure Vlans on All Switches

Step 2: Configure vlans on all switches. To do this, the following commands will be used in global configuration:

Vlan 10

Name RED

Exit

Vlan 20

Name BLUE

Exit

Vlan 30

Name GREEN

Exit


Paso 2: Configurar las vlans en todos los switches. Para ello se utilizarán los siguientes comandos en configuración global:

Vlan 10

Name RED

Exit

Vlan 20

Name BLUE

Exit

Vlan 30

Name GREEN

Exit

Step 3: Configure the Trunk Mode

Step 3: Now configure the mode trunk to all interfaces of the switches that connect to another switch. The commands are:

Int Fa0/24

Switchport mode trunk

Switchport nonegotiate

Int Fa0/23

Switchport mode trunk

Switchport nonegotiate

Exit


Paso 3: Ahora hay que configurar el modo troncal a todas las interfaces de los switches que estén conectadas hacia otro switch. Los comandos son:

Int Fa0/24

Switchport mode trunk

Switchport nonegotiate

Int Fa0/23

Switchport mode trunk

Switchport nonegotiate

Exit

Step 4: Configured in Access Mode

Step 4: In this step will be configured in access mode to all the interfaces of the switches that are connected to end devices such as laptops, you must be careful since in this step will be allowed the access of a single vlan per interface. The commands are:

Int fa0/1

Switchport mode access

Switchport access vlan 10

Int fa0/2

Switchport mode access

Switchport access vlan 20

Int fa0/3

Switchport mode access

Switchport access vlan 30

Do write memory

Paso 4: En este paso se configurara en modo acceso a todas las interfaces de los switchs que estén conectadas a dispositivos finales como las laptops, hay que tener cuidado ya que en este paso se permitirá el acceso de una sola vlan por cada interfaz. Los comandos son:

Int fa0/1
Switchport mode access

Switchport access vlan 10

Int fa0/2

Switchport mode access

Switchport access vlan 20

Int fa0/3

Switchport mode access

Switchport access vlan 30

Do write memory

Step 5: Configure the IP Address and Subnet Mask

Step 5: As a next step we must configure the IP address and Subnet Mask for each laptop, there are no layer 3 devices on the network so the default gateway will not be configured. As a demonstration purpose these will be the network addresses that we will use for each vlan.

VLAN 10 192.168.10.0 /24

VLAN 20 192.168.20.0 /24

VLAN 30 192.168.30.0 /24

Paso 5: Como siguiente paso debemos de configurar la dirección IP y la Subnet Mask para cada laptop, como no hay dispositivos de capa 3 no se configurará la puerta de enlace predeterminada. Como fin demostrativo estas serán las direcciones de red que utilizaremos para cada vlan.

VLAN 10 192.168.10.0 /24

VLAN 20 192.168.20.0 /24

VLAN 30 192.168.30.0 /24

Step 6: Communication in the Same Vlan

Step 6: To verify that this configuration is correct, we will verify that the laptops that are in the same vlan have communication. A ping test will be done.

Paso 6: Para corroborar de que este bien la configuración comprobaremos de que las laptops que están en una misma vlan tengan comunicación. Se realizará una serie de ping.

Step 7: No Communication in Different Vlan

Step 7: Finally it will be verified the most important, that there is no communication between final devices that are in different vlans. Like step 6 a ping between the laptops will be made.

Paso 7: Para finalizar se comprobará lo más importante, que no haya comunicación entre dispositivos finales que estén en distintas vlans. Al igual que el paso 6 se realizaran un ping entre las laptops.

Makerspace Contest 2017

Participated in the
Makerspace Contest 2017