lunes, 4 de noviembre de 2013

VTP

VTP = VLAN Trunking Protocol, Un Protocolo Usado Para Configurar Y Administrar Vlans En Equipos Cisco.

Modo Server (Por Defecto Cualquier Switch Configurado Para Usar VTP Arranca En Este Modo), En Cada Dominio VTP Debe Existir Al Menos UN Switch En Modo Server.
En Este Modo Se Puede Crear, Modificar, Agregar O Borrar Cualquier Información Referida A Vlans, La Cual Sera Replicada En Todos Los Otros Switch Del Dominio.

Modo Cliente El Switch Recibe Anuncios Y Efectúa Cambios De Acuerdo Los Contenidos De Estos Avisos En Este Modo No Se Puede Cambiar La Información De Las VLAN

Modo Transparent Las VLAN Creadas, Borradas O Modificadas En Este Estado No Se Aplicaran A Todo El Dominio, Solo Aplican Localmente, O Sea, A Este Switch Únicamente.

Para Realizar La Configuración De VTP, Se Debe Configurar Como Troncales (Trunk), Las Interfaces Que Conectan Los Switches Entre Si, Para Esto Debemos Ingresar Al Método De Configuración Global (Server(Config)#), Utilizando El Comando “Interface” Seguido La Interfaz Correspondiente Ingresamos Al Modo De Configuración De La Interfaz (Server(Config-If)#)  Y Luego Utilizando El Comando “Switchport Mode Trunk” Configuramos El Puerto Como Troncal, Luego De Esto Por Motivos De Seguridad Configuramos Los Demás Puertos Como Acceso Ingresando Al Modo De Configuración De Interfaces (Interface Range Fa0/3 -24)('Range' Para Configurar Varias Interfaces Al Mismo Tiempo) (Server(Config-If-Range)#) Y Utilizamos El Comando “Switchport Mode Access”.

 Switch Server


Switch Client1


Switch Client2




Luego Debemos Configurar El Nombre Del Dominio VTP Desde El Modo De Configuración Global ('Server'(Config)#) Utilizando El Comando “Vtp Domain” Seguido Del Nombre Del Dominio (El Nombre Del Dominio Es Sensible Al Tipo De Letra), Luego Asignamos Una Contraseña Al Dominio Con El Comando “Vtp Password” Seguido De La Contraseña Que Deseamos Utilizar, Luego Debemos Especificar El Modo En El Que El Switch Funcionara, Esto Con El Comando “Vtp Mode” Seguido Del Modo (Server, Client, Transparent).

Switch Server


Switch Client1



Switch Client2



Luego De Haber Configurado VTP Debemos Ingresar Las Vlans En El Switch Que Esta En Modo Servidor Para Que Los Que Están En Modo Cliente Puedan Aprender Las Vlans Automáticamente, Esto Lo Conseguimos Desde El Modo De Configuración Global (Server(Config)#) Utilizando El Comando “Vlan” Seguido Del Numero De La VLAN (1-1005), Luego En El Modo De Configuración De VLAN (Server(Config-Vlan)#) Asignamos Un Nombre A La VLAN Utilizando El Comando “Name” Seguido Del Nombre Que Deseamos Asignar A La VLAN.




Por Ultimo Debemos Asignar Las VLAN A Los Puertos, Esto Lo Conseguimos Desde El Modo De Configuración Global (Client1(Config)#) Utilizando El Comando “Interface” O “Interface Range” Seguido De La Interfaz Que Deseamos Asignar A Una VLAN Especifica, Luego En El Modo De Configuración De Interfaz Utilizamos El Comando “Switchport Access Vlan” Seguido Del Numero De La VLAN Correspondiente.

Switch Client1



Switch Client2



Comandos Utilizados En Esta Topologia



Server>enable
Server#configure terminal
Server(config)#interface fastEthernet 0/1
Server(config-if)#sw
Server(config-if)#switchport mode trunk
Server(config-if)#exit
Server(config)#interface fastEthernet 0/2
Server(config-if)#switchport mode trunk
Server(config-if)#exit
Server(config)#interface range f 0/3 -24
Server(config-if-range)#switchport mode access
Server(config-if-range)#exit

Client1>enable
Client1#configure terminal
Client1(config)#interface fastEthernet 0/1
Client1(config-if)#sw
Client1(config-if)#switchport mode trunk
Client1(config-if)#exit
Client1(config)#interface range fastEthernet 0/2 -3
Client1(config-if-range)#switchport mode access
Client1(config-if-range)#exit
Client1(config)#

Client2>enable
Client2#configure terminal
Client2(config)#interface fastEthernet 0/1
Client2(config-if)#switchport mode trunk
Client2(config-if)#exit
Client2(config)#interface range fastEthernet 0/2 -3
Client2(config-if-range)#switchport mode access
Client2(config-if-range)#exit
Client2(config)#

Server>enable
Server#configure terminal
Server(config)#vtp domain cisco
Server(config)#vtp password cisco
Server(config)#vtp mode server

Client1>enable
Client1#configure terminal
Client1(config)#vtp domain cisco
Client1(config)#vtp password cisco
Client1(config)#vtp mode client

Client2>enable
Client2#configure terminal
Client2(config)#vtp domain cisco
Client2(config)#vtp password cisco
Client2(config)#vtp mode client

Server>enable
Server#vlan database
Server(vlan)#vlan 10 name Administracion
Server(vlan)#vlan 20 name Gerencia

Client1>enable
Client1#configure terminal
Client1(config)#interface fastEthernet 0/2
Client1(config-if)#switchport access vlan 10
Client1(config-if)#exit
Client1(config)#interface fastEthernet 0/3
Client1(config-if)#switchport access vlan 20
Client1(config-if)#exit

Client2>enable
Client2#configure terminal
Client2(config)#interface fastEthernet 0/2
Client2(config-if)#switchport access vlan 10
Client2(config-if)#exit
Client2(config)#interface fastEthernet 0/3
Client2(config-if)#switchport access vlan 20
Client2(config-if)#exit

No hay comentarios:

Publicar un comentario