You are on page 1of 7

instructables

Configure VLAN in Cisco Packet Tracer

by Viktor17gt

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.

Configure VLAN in Cisco Packet Tracer: Page 1


Step 2: Configure Vlans on All Switches

Step 2: Configure vlans on all switches. To do this, Paso 2: Configurar las vlans en todos los switches.
the following commands will be used in global Para ello se utilizarán los siguientes comandos en
configuration: configuración global:

Vlan 10 Vlan 10

Name RED Name RED

Exit Exit

Vlan 20 Vlan 20

Name BLUE Name BLUE

Exit Exit

Vlan 30 Vlan 30

Name GREEN Name GREEN

Exit Exit

Configure VLAN in Cisco Packet Tracer: Page 2


Step 3: Configure the Trunk Mode

Step 3: Now configure the mode trunk to all interfaces Paso 3: Ahora hay que configurar el modo troncal a
of the switches that connect to another switch. The todas las interfaces de los switches que estén
commands are: conectadas hacia otro switch. Los comandos son:

Int Fa0/24 Int Fa0/24

Switchport mode trunk Switchport mode trunk

Switchport nonegotiate Switchport nonegotiate

Int Fa0/23 Int Fa0/23

Switchport mode trunk Switchport mode trunk

Switchport nonegotiate Switchport nonegotiate

Exit Exit

Configure VLAN in Cisco Packet Tracer: Page 3


Step 4: Configured in Access Mode

Step 4: In this step will be configured in access mode Paso 4: En este paso se configurara en modo acceso
to all the interfaces of the switches that are connected a todas las interfaces de los switchs que estén
to end devices such as laptops, you must be careful conectadas a dispositivos finales como las laptops,
since in this step will be allowed the access of a hay que tener cuidado ya que en este paso se
single vlan per interface. The commands are: permitirá el acceso de una sola vlan por cada
interfaz. Los comandos son:
Int fa0/1
Int fa0/1
Switchport mode access Switchport mode access

Switchport access vlan 10 Switchport access vlan 10

Int fa0/2 Int fa0/2

Switchport mode access Switchport mode access

Switchport access vlan 20 Switchport access vlan 20

Int fa0/3 Int fa0/3

Switchport mode access Switchport mode access

Switchport access vlan 30 Switchport access vlan 30

Do write memory Do write memory

Configure VLAN in Cisco Packet Tracer: Page 4


Step 5: Configure the IP Address and Subnet Mask

Step 5: As a next step we must configure the IP Paso 5: Como siguiente paso debemos de configurar
address and Subnet Mask for each laptop, there are la dirección IP y la Subnet Mask para cada laptop,
no layer 3 devices on the network so the default como no hay dispositivos de capa 3 no se configurará
gateway will not be configured. As a demonstration la puerta de enlace predeterminada. Como fin
purpose these will be the network addresses that we demostrativo estas serán las direcciones de red que
will use for each vlan. utilizaremos para cada vlan.

VLAN 10 192.168.10.0 /24 VLAN 10 192.168.10.0 /24

VLAN 20 192.168.20.0 /24 VLAN 20 192.168.20.0 /24

VLAN 30 192.168.30.0 /24 VLAN 30 192.168.30.0 /24

Configure VLAN in Cisco Packet Tracer: Page 5


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.

Configure VLAN in Cisco Packet Tracer: Page 6


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.

Configure VLAN in Cisco Packet Tracer: Page 7

You might also like