4.3.3. Configuración del VTP.





Objetivos de aprendizaje
Investigar la configuración actual.
En esta tarea solo se necesita verificar la configuración actual de los switches con el objetivo de identificar alguna problemática inicial en cuanto a direccionamiento y vlan existentes. Ejecuta los siguientes comandos para analizarlo:
S1#show vlan briefS1#show running-config
  • Configurar S1 como servidor VTP.
La siguiente imagen muestra la topología de red, es siempre importante tenerla en cuenta puesto que la mayoría de problemas surgen desde el ámbito físico.
El S1 es el servidor para el VTP. Debes establecer el S1 en modo servidor mediante los siguientes comandos.
S1 (config) #vtp mode server
Device mode already VTP SERVER.
Observa que el switch ya está establecido para el modo servidor por defecto. Sin embargo, es importante que  configures este comando de manera explícita para que te asegurares que el switch esté en modo servidor.
En esta parte también debes configurar el S1 con CCNA como nombre de dominio VTP. Recuerda que los nombres de dominio VTP distinguen mayúsculas de minúsculas.

S1 (config) #vtp domain CCNA
Changing VTP domain name from NULL to CCNA
 
Posteriormente configure el S1 con cisco como contraseña de dominio VTP. Recuerde que las contraseñas de dominio VTP distinguen mayúsculas de minúsculas.
 
S1 (config) #vtp password cisco
Setting device VLAN database password to cisco.
 
Para que completes este primer objetivo utiliza el comando show vtp status del S1 para confirmar que el modo y el dominio VTP se configuraron correctamente.
 
S1#show vtp status
 
Para verificar la contraseña VTP, utilice el comando show vtp password.
 
S1#show vtp password
VTP Password: cisco
 
  • Configurar S2 y S3 como clientes VTP.
El S2 y el S3 son los clientes VTP. Debes establecer el S2 y S3 en modo cliente mediante los siguientes comandos.
S2 (config) #vtp mode client
Device mode already VTP CLIENT.

S3 (config) #vtp mode client
Device mode already VTP CLIENT.
 
Antes de que S2 y S3 acepten las publicaciones VTP desde S1, deben pertenecer al mismo dominio VTP. Configura S2 y S3 con CCNA como el nombre de dominio de VTP. Recuerde que los nombres de dominio VTP distinguen mayúsculas de minúsculas.
 
S2 (config) #vtp domain CCNA
Changing VTP domain name from NULL to CCNA

 S3 (config) #vtp domain CCNA
Changing VTP domain name from NULL to CCNA
 
Además, S2 y S3 deben utilizar la misma contraseña antes de que puedan aceptar las publicaciones VTP del servidor VTP. Configura S2 y S3 con cisco como la contraseña de dominio de VTP. Recuerde que las contraseñas de dominio VTP distinguen mayúsculas de minúsculas.

S2 (config) #vtp password cisco
Setting device VLAN database password to cisco.

S3 (config) #vtp password cisco
Setting device VLAN database password to cisco.
 
Para garantizar cambios correctos aplica los mismos comandos para verificar que se utilizaron para completar  el objetivo 1.
  • Configurar las VLAN en S1.
S1 (config)#vlan 99S1 (config-vlan)#name Management&NativeS1 (config-vlan)#exitS1 (config)#vlan 10S1 (config-vlan)#name Faculty/StaffS1 (config-vlan)#exitS1 (config)#vlan 20S1 (config-vlan)#name StudentsS1 (config-vlan)#exitS1 (config)#vlan 30S1 (config-vlan)#name Guest(Default)S1 (config-vlan)#exit
  • Configurar enlaces troncales en S1, S2 y S3.
S 1(config) #interface fa0/1S1 (config-if) #switchport mode trunkS1 (config-if) #switchport trunk native vlan 99S1 (config-if) #interface fa0/3S1 (config-if) #switchport mode trunkS1 (config-if) #switchport trunk native vlan 99S1 (config-if) #end

S2 (config) #interface fa0/1S2 (config-if) #switchport mode trunk S2 (config-if) #switchport trunk native vlan 99S2 (config-if) #end

S3 (config) #interface fa0/3S3 (config-if) #switchport mode trunk  S3 (config-if) #switchport trunk native vlan 99S3 (config-if) #end
  • Verificar el estado del VTP en S1, S2 y S3.
Usa los comandos show vtp status y show vlan brief para verificar lo siguiente: S1 debe mostrar el estado del servidor, S2 y S3 deben mostrar el estado de cliente y S2 y S3 deben tener VLAN de S1.
  • Asignar VLAN a puertos en S2 y S3.
Asigna VLAN a los puertos de S2.
  • Fa0/11 en VLAN 10
  • Fa0/18 en VLAN 20
  • Fa0/6 en VLAN 30
S2(config)#interface fa0/11
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 10
S2(config-if)#exit
S2(config)#interface fa 0/18
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#exit
S2(config)#interface fa 0/6
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 30

Asigna VLAN a los puertos en S3.

  • Fa0/11 en VLAN 10
  • Fa0/18 en VLAN 20
  • Fa0/6 en VLAN 30
S3(config)#interface fa0/11
S3(config-if)#switchport mode access
S3(config-if)#switchport access vlan 10
S3(config-if)#exit
S3(config)#interface fa 0/18
S3(config-if)#switchport mode access
S3(config-if)#switchport access vlan 20
S3 (config-if)#exit
S3( config)#interface fa 0/6
S3(config-if)#switchport mode access
S3 (config-if)#switchport access vlan 30