INTERCONECTIVIDAD III
FUS – Fundación Universitaria San Mateo Ing. Jaime Vásquez Sastoque
VLAN (VTP)
Ing. Jaime Vásquez Sastoque..
Página 1
Protocolo de Enlace TroncalProtocolo de Enlace TroncalProtocolo de Enlace TroncalProtocolo de Enlace Troncal
Fundación Universitaria San Mateo
En una red pequeña el mantenimiento de las VLAN no suele presentar mucho problema, aunque esto
implique la actualización de cada switch por parte del administrador, pero cuando la red va
creciendo, llega el momento en que la administración manual ya no es opción, por tal motivo se
implemento el VTP (Protocolo de Enlace Troncal para VLAN), el VTP permite a un administrador de
red configurar un switch de modo que propagará las configuraciones de la VLAN hacia los otros
switches en la red. El switch se puede configurar en diferentes funciones.
DESCRIPCION DE LABORATORIO
Un Router (2600A) conectado mediante la interface fastethernet 0/0 al switch (2950A) en la interface fastethernet 0/11, así mismo el switch (2950A) conectado por medio de la interface fastethernet 0/12
al switch (2950B) por la interface fastethernet 0/12 del mismo. Y dos host, conectados a los switch
(2950A y 2950B) en las interfaces fastethernet 0/1 y 0/2 respectivamente.
CONFIGURACION DEL ROUTER 2600A
Entramos al enrutador 2600A, en la interfaz fastethernet 0/0 asignando la dirección ip
192.168.100.1/24,
Router>enable
Router#config terminal
2
Router(config)#hostname 2600A
2600A(config)#enable secret 123456
2600A(config)#line console 0
2600A(config-line)# password 123456
2600A(config-line)#login
2600A(config-line)#line aux 0
2600A(config-line)#password 123456
2600A(config-line)#login
2600A(config-line)#line vty 0 4
2600A(config-line)#password 123456
2600A(config-line)#login
2600A(config-line)#interface fastethernet 0/0
2600A(config-if)#ip address 192.168.100.1 255.255.255.0
2600A(config-if)#description Conexión con la Red LAN
2600A(config-if)#no shutdown
2600A(config-if)#exit
2600A(config)#exit
2600A# wr
2600A#
CONFIGURACION DEL SWITCH 2950A
Switch>enable
Switch#config terminal
Switch(config)#hostname 2950A
2950A(config)#enable password redes2
2905A(config)#line console 0
2950A(config-line)#password console
2950A(config-line)#login
2950A(config-line)#line vty 0 15
2950A(config-line)#password redes2
2950A(config-line)#login
2950A(config-line)#exit
2950A(config)#ip default-gateway 192.168.100.1
2950A(config)#interface VLAN 1
2950A(config-if)#ip address 192.168.100.2 255.255.255.0
2950A(config-if)#exit
2950A(config)#interface fastethernet 0/11
2950A(config-if)#description Conexión con el Router 2600A
2950A(config-if)#switchport mode trunk
2950A(config-if)#speed 100
2950A(config-if)#duplex full
2950A(config-if)#exit
2950A(config-if)#interface fastethernet 0/12
2950A(config-if)#description Conexión con el Switch 2950B
2950A(config-if)#switchport mode trunk
2950A(config-if)#speed 100
2950A(config-if)#duplex full
2950A(config-if)#exit
2950A(config)#exit
2950A#ping 192.168.100.1
2950B#copy running-config startup-config
Ing. Jaime Vásquez Sastoque..
Página 3
CONFIGURACION DEL SWITCH 2950B
Switch>enable
Switch#config terminal
Switch(config)#hostname 2950B
2950B(config)#enable password redes2
2905b(config)#line console 0
2950B(config-line)#password console
2950B(config-line)#login
2950B(config-line)#line vty 0 15
2950B(config-line)#password redes2
2950B(config-line)#login
2950B(config-line)#exit
2950B(config)#ip default-gateway 192.168.100.1
2950B(config)#interface VLAN 1
2950B(config-if)#ip address 192.168.100.3 255.255.255.0
2950B(config-if)#exit
2950B(config-if)#interface fastethernet 0/12
2950B(config-if)#description Conexión con el Switch 2950A
2950B(config-if)#switchport mode trunk
2950B(config-if)#speed 100
2950B(config-if)#duplex full
2950B(config-if)#exit
2950B(config)#exit
2950B#ping 192.168.100.1
2950B#copy running-config startup-config
CONFIGURACION DEL SWITCH 2950A (PROTOCOLO VTP) – DOMINIO
2950A >enable
2950A #configure terminal
2950A(config)#vtp domain interIII
2950A(config)#exit
2950A#copy running-config startup-config
CONFIGURACION DEL SWITCH 2950B (PROTOCOLO VTP) – CLIENTE
2950B >enable
2950B #configure terminal
2950B(config)#vtp domain interIII
2950B(config)#vtp mode client
2950B(config)#exit
2950B#copy running-config startup-config
CREACION DE LAS VLAN EN EL SWITCH 2950A
Creamos tres VLANs en el switch 2950A. (lunes, martes y miercoles).
2950A#vlan database
2950A(vlan)#vlan 2 name lunes
2950A(vlan)#vlan 3 name martes
2950A(vlan)#vlan 4 name miercoles
4
2950A(vlan)# exit
2950A#copy running-config startup-config
2950A# show vlan
VERIFICACION DEL FUNCIONAMIENTO DEL PROTOCOLO VTP
Ingresamos al switch (2950B) y verificamos el funcionamiento del protocolo VTP, visualizando las vlan
que acabamos de crear en el switch 2950A, de la siguiente forma:
2950B >enable
2950B # show vlan
Ing. Jaime Vásquez Sastoque..
Página 5
ASIGNACION DE IP A LOS EQUIPOS DE COMPUTO
Asignamos 4 host distribuidos de la siguiente forma: 2 host en el switchA y 2 host en el switchB. Cada
uno de ellos en las interfaces 0/1 y 0/2 de los switch.
Switch A
Interface Dirección IP Gateway
Fastethenet 0/1 192.168.100.10 / 24 192.168.100.1
Fastethenet 0/2 192.168.100.11 / 24 192.168.100.1
Switch B
Interface Dirección IP Gateway
Fastethenet 0/1 192.168.100.12 / 24 192.168.100.1
Fastethenet 0/2 192.168.100.13 / 24 192.168.100.1
ASIGNACION DE LA INTERFACES A LAS VLAN
Asignaremos las interfaces fastethernet 0/1 de cada switch (A y B) a la vlan 2 ( lunes) y las interfaces
fastethernet 0/1 de cada switch (A y B) a la vlan 3 (martes).
SWITCH 2950A
2950A>enable
2950A#config terminal
2950A(config)#interface fastethernet 0/1
2950A(config-if)#switchport access vlan 2
2950A(config-if)#switchport mode access
2950A(config-if)#exit
2950A(config)#interface fastethernet 0/2
2950A(config-if)#switchport access vlan 3
2950A(config-if)#switchport mode access
2950A(config-if)#exit
2950A(config)#exit
2950A#exit
2950A#copy running-config startup-config
2950A# show vlan
6
SWITCH 2950B
2950B>enable
2950B#config terminal
2950B(config)#interface fastethernet 0/1
2950B(config-if)#switchport access vlan 2
2950B(config-if)#switchport mode access
2950B(config-if)#exit
2950B(config)#interface fastethernet 0/2
2950B(config-if)#switchport access vlan 3
2950B(config-if)#switchport mode access
2950B(config-if)#exit
2950B(config)#exit
2950B#exit
2950B#copy running-config startup-config
2950B# show vlan
Ing. Jaime Vásquez Sastoque..
Página 7
VERIFICACION DE LA SEGMENTACION DE LA RED EN VLAN
Ingresamos al host A, con dirección ip, 192.168.100.12/24, y tratamos de hacer ping 192.168.100.10.
Si observamos pertenecen a la misma vlan 2 (lunes). Obteniendo respuesta satisfactoria.
Ahora trataremos de hacerle ping al host con la dirección Ip, 192.168.100.11, i observaremos que no
hay comunicación, por pertenecer a vlan diferentes. (vlan 2 y vlan 3 respectivamente).