0% found this document useful (0 votes)
36 views17 pages

VLAN Configuration on Switches

This document provides steps to configure VLANs across three switches. It first describes the network topology and equipment. It then outlines steps to erase switch configurations, disable ports, and re-enable user ports on two switches. VLANs are created on the first switch and ports are assigned to the VLANs on the second and third switches. IP addresses are configured for switch management, trunk links are configured between switches, and the native VLAN is set.

Uploaded by

Angel XD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views17 pages

VLAN Configuration on Switches

This document provides steps to configure VLANs across three switches. It first describes the network topology and equipment. It then outlines steps to erase switch configurations, disable ports, and re-enable user ports on two switches. VLANs are created on the first switch and ports are assigned to the VLANs on the second and third switches. IP addresses are configured for switch management, trunk links are configured between switches, and the native VLAN is set.

Uploaded by

Angel XD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ngel Martnez Reyes

603

Manejo de Redes

PRACTICA 10
Propsito de la prctica
Crear VLANs en un switch, de acuerdo a las caractersticas solicitadas VLAN, para su operacin

Materiales, Herramientas, Instrumental,


Maquinaria y Equipo.
6
3
6
2

Estaciones de trabajo
switchs.
cables directo.
cables cruzados.

PASOS.
1. Creacin de la topologa indicada
Se colocan los dispositivos a utilizar y se conectan como se indica.

ngel Martnez Reyes


603

Manejo de Redes

2. Borre configuraciones existentes en los switches e inicializar todos los


puertos en estado desactivado.
Damos doble clic en un switch para ver sus configuraciones, y entramos en
la pestaa Config y despus en el botn Erase, y despus yes

Se debe hacer esto a los tres switch.


3. Desabilitar los 3 switch de la topologia
Switch#config term
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface range fa0/1-24
Switch(config-if-range)#shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively
down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed
state to down
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to administratively
down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to administratively
down

ngel Martnez Reyes


603

Manejo de Redes

%LINK-5-CHANGED: Interface FastEthernet0/7, changed state to administratively


down
%LINK-5-CHANGED: Interface FastEthernet0/8, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/9, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to administratively
down
%LINK-5-CHANGED: Interface FastEthernet0/12, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/13, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/14, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/15, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/16, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/17, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/19, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/20, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/21, changed state to
administratively down

ngel Martnez Reyes


603

Manejo de Redes

%LINK-5-CHANGED: Interface FastEthernet0/22, changed state to


administratively down
%LINK-5-CHANGED: Interface FastEthernet0/23, changed state to
administratively down
%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to
administratively down

4. Vuelva a habilitar los puertos de los usuarios en S2 Y S3.


Se har las configuraciones del Switch2 y Swicth3, en orden.
S2(config)#interface range fa0/6, fa0/11, fa0/18
S2(config-if-range)#switchport mode access
S2(config-if-range)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed
state to up
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed
state to up
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed
state to up
S2(config-if-range)#

S3(config)#interface range fa0/6, fa0/11, fa0/18


S3(config-if-range)#switchport mode access
S3(config-if-range)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed
state to up
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed
state to up
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to up

ngel Martnez Reyes


603

Manejo de Redes

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed


state to up
S3(config-if-range)#
S3#
%SYS-5-CONFIG_I: Configured from console by console

5. Configurar y activar las interfaces Ethernet


Se ingresa los datos necesarios para la IP del router. Para realizar esto nos
basaremos con la tabla de re direccionamiento, que se harn primero a las 6 PC.

ngel Martnez Reyes


603
PC1

PC2

Manejo de Redes

ngel Martnez Reyes


603
PC3

PC4

Manejo de Redes

ngel Martnez Reyes


603
PC5

PC6

Manejo de Redes

ngel Martnez Reyes


603

Manejo de Redes

6. Configurar las VLAN en el switch1.


En la pestaa de CLI, para introducir los comandos.
S1(config)#vlan 10
S1(config-vlan)#name faculty/staff
S1(config-vlan)#vlan 20
S1(config-vlan)#name students
S1(config-vlan)#vlan 30
S1(config-vlan)#name guest
S1(config-vlan)#vlan 99
S1(config-vlan)#name management
S1(config-vlan)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console

7. Verifique que las VLAN estn creadas en S1


Lo realizaremos usando el comando Show vian brief, para la verificacin.
S1#show vlan brief
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12

ngel Martnez Reyes


603

10 faculty/staff
20 students
30 guest
99 management
1002 fddi-default
1003 token-ring-default
1004 fddinet-default
1005 trnet-default
S1#

Manejo de Redes
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
active
active
active
active
active
active
active
active

8. Asigne puertos al switch a las VLAN en S2 y S3


Configuracin del switch2:
S2(config)#interface range fa0/6-10
S2(config-if-range)#switchport access vlan 30
S2(config-if-range)#interface range fa0/11-17
S2(config-if-range)#switchport access vlan 10
S2(config-if-range)#interface range fa0/18-24
S2(config-if-range)#switchport access vlan 20
S2(config-if-range)#end
S2#
%SYS-5-CONFIG_I: Configured from console by console
S2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

ngel Martnez Reyes


603
Configuracin del Switch3:
S3(config)#interface range fa0/6-10
S3(config-if-range)#switchport access vlan 30
S3(config-if-range)#interface range fa0/11-17
S3(config-if-range)#switchport access vlan 10
S3(config-if-range)#interface range fa0/18-24
S3(config-if-range)#switchport access vlan 20
S3(config-if-range)#end
S3#
%SYS-5-CONFIG_I: Configured from console by console
S3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

9. Asignacin de direcciones IP de administracin a los switch


S1:
S1(config)#interface vlan 99
S1(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#
S2:

Manejo de Redes

ngel Martnez Reyes


603

Manejo de Redes

S2(config)#interface vlan 99
S2(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
S2(config-if)#ip address 172.17.99.12 255.255.255.0
S2(config-if)#no shutdown
S2(config-if)
S3:
S3(config)#interface vlan 99
S3(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
S3(config-if)#ip address 172.17.99.13 255.255.255.0
S3(config-if)#no shutdown
S3(config-if)#
10. Configure los enlaces troncales y la VLAN nativa para los puertos de enlace
troncales en todos los switches.
Dentro de cada switch en su configuraciones se insertaran estos comandos.
S1
S1(config)#interface range fa0/1-5
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down
S1(config-if-range)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S2

ngel Martnez Reyes


603

Manejo de Redes

S2(config)#interface range fa0/1-5


S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed
state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to
up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down
S2(config-if-range)#end
S2#
%SYS-5-CONFIG_I: Configured from console by console
S3
S3(config)#interface range fa0/1-5
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#switchport trunk native vlan 99
S3(config-if-range)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to
up
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down

ngel Martnez Reyes


603

Manejo de Redes

%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down


S3(config-if-range)#end
S3#
%SYS-5-CONFIG_I: Configured from console by console
11. Verifique que los enlaces troncales se hayan configurado mediante el comando
Show interface trunk.
S1
S1#show interface trunk
Port
Mode
Encapsulation Status
Native vlan
Fa0/1
on
802.1q
trunking
99
Fa0/2
on
802.1q
trunking
99
Port
Fa0/1
Fa0/2

Vlans allowed on trunk


1-1005
1-1005

Port
Fa0/1
Fa0/2

Vlans allowed and active in management domain


1,10,20,30,99
1,10,20,30,99

Port
Fa0/1
Fa0/2
S1#

Vlans in spanning tree forwarding state and not pruned


1,10,20,30,99
1,10,20,30,99

ngel Martnez Reyes


603
S2
S2>show interface trunk
Port
Mode
Encapsulation Status
Native vlan
Fa0/1
on
802.1q
trunking
99
Port
Fa0/1

Vlans allowed on trunk


1-1005

Port
Fa0/1

Vlans allowed and active in management domain


1,10,20,30,99

Port
Fa0/1

Vlans in spanning tree forwarding state and not pruned


1,10,20,30,99

S3
S3>show interface trunk
Port
Mode
Encapsulation Status
Native vlan
Fa0/2
on
802.1q
trunking
99
Port
Fa0/2

Vlans allowed on trunk


1-1005

Port
Fa0/2

Vlans allowed and active in management domain


1,10,20,30,99

Port
Fa0/2

Vlans in spanning tree forwarding state and not pruned


1,10,20,30,99

Manejo de Redes

ngel Martnez Reyes


603

Manejo de Redes

12. Verifique que los switches se puedan comunicar


Desde S1, haga ping a la direccion de administracion en S2 y S3
S1>ping 172.17.99.12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.99.12, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 2/8/19 ms
S1>ping 172.17.99.13
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.99.13, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 2/6/12 ms
S1>
13. Ubique la PC1 en la misma VLAN que la PC2
S2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#interface fastethernet 0/11
S2(config-if)#switchport access vlan 20
S2(config-if)#end
S2#

ngel Martnez Reyes


603
%SYS-5-CONFIG_I: Configured from console by console

Ya quedo la practica finalizada y este es el resultado obtenido:

Manejo de Redes

You might also like