You are on page 1of 22

PRACTICA 13

Resolucin de problemas en la configuracin de la funcin VTP


bajo procedimiento.
Todos los Switches cisco estn configurados por defecto como servidores
VTP. Para configurar VTP (VLAN Trunking Protocol), primero necesitamos
configurar

el

funcionamiento

nombre
del

de

Switch

dominio,
(Modo

seguido
Server,

por

Modo

el

modo

Cliente,

de

Modo

Transparente), establecer una contrasea a VTP (opcional pero si


recomendado), todo esto desde configuracin

global.

En resumen los pasos para configurar VTP, son las

siguientes:

Paso 1: Lo primero es configurar que los Switches estn en modo


Trunk. Paso

2:

Configurar

el

Configurar

el

nombre

de

dominio Paso 3: Configurar el modo de funcionamiento del Switch


(mode server, mode client,
Paso
Paso
Paso

4:
5:

Configurar

Configurar
6:

VTP

Habilitar

mode
una
Pruning
VTP

tranparent)

contrasea
en

el

(Opcional)

Servidor (Opcional)

versin

(Opcional)

En este ejemplo configuraremos tres Switches. El primero lo pondremos


en Modo Server, el segundo en Modo Transparente y el tercero en Modo
Cliente. Tal como se muestra en la siguiente imagen.

Modos VTP (VLAN Trunking Protocol).


Lo primero es configurar las interfaces donde tenemos conectados los
Switches en modo Trunk.
Configurar la interface Fa0/1 en el Switch1.
Switch1#configure
terminal
Switch1(config)#int
fa0/1
Switch1(config-if)#switchport mode
trunk
Switch1(config-if)#end
Switch1#show int trunk

Port

Mode

Encapsulation Status

Native vlan

Fa0/1

on

802.1q

trunking

Port
Vlans allowed on
trunk
Fa0/1
1-4094

Port
Vlans allowed and active in management
domain
Fa0/1
1

Port
Vlans in spanning tree forwarding state and not
pruned
Fa0/1
1

Switch1#show run int


fa0/1
Building
configuration...

Current configuration : 56 bytes


!
Configurar Interfaces Fa0/1 y Fa0/2 en el Switch2.
nterface FastEthernet0/1
Switch2#configure
switchport
mode trunk end
i
terminal
Switch2(config)#int
fa0/1
Switch2(config-if)#switchport mode
trunk

Switch2(config-if)#exit
Switch2(config)#int
fa0/2
Switch2(config-if)#switchport mode
trunk
Switch2(config-if)#end
Switch2#show int trunk

Port

Mode

Encapsulation Status

Native
vlan

Fa0/1

on

802.1q

trunking

Fa0/2

on

802.1q

trunking

Port
Vlans allowed on
trunk
Fa0/1
1-4094
Fa0/2

1-4094

Port
Vlans allowed and active in management
domain
Fa0/1
1
Fa0/2

Port
Vlans in spanning tree forwarding state and not
pruned
Fa0/1
1
Fa0/2

Switch2#show run int fa0/1

Building configuration...

Current configuration : 56 bytes


!
nterface FastEthernet0/1
Switch2#show
run int
switchport
mode
trunk end
i
fa0/2
Building
configuration...

Current configuration : 56 bytes


!
Configurar
Interface Fa0/1 en
el Switch3.
nterface FastEthernet0/2
switchport
mode trunk end
Switch3#configure
i
terminal
Switch3(config)#int f0/1
Switch3(config-if)#switchport mode
trunk
Switch3(config-if)#end
Switch3#show int trunk

Port
Fa0/1

Mode
on

Encapsulation Status
802.1q

trunking

Native
vlan
1

Port
Vlans allowed on
trunk
Fa0/1
1-4094

Port
Vlans allowed and active in management
domain
Fa0/1
1

Port
Vlans in spanning tree forwarding state and not
pruned
Fa0/1
1
Switch3#show run int
fa0/1
Building
configuration...

Current configuration : 56 bytes


!
Configurar el nombre de dominio, Modo Server, un password y el VTP
nterface
FastEthernet0/1
switchport mode trunk
Pruning
en el
Switch1.
end
i
Switch1#configure
terminal
Switch1(config)#vtp domain delfirosales

Changing VTP domain name from NULL to delfirosales


Switch1(config)#vtp mode server
Verificamos la configuracin de VTP en el Switch1
Device mode already VTP SERVER.
Switch1(config)#vtp password cisco
Setting device VLAN database password to cisco
Switch1(config)#vtp pruning
Pruning switched on
Switch1(config)#end
Switch1#

Switch1#show vtp status


VTP Version

:2

Configuration Revision

:4

Maximum VLANs supported locally : 128


Number of existing VLANs

:8

VTP Operating Mode

: Server

VTP Domain Name

: delfirosales

VTP Pruning Mode


: Enabled
Configuration last modified by 192.168.1.1 at 3-1-93
00:25:41
VTP V2 Mode
: Disabled
Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered
VLAN
VTP Traps Generation
: Disabled
interface
found)
MD5 digest
: 0x34 0xFC 0x71 0x0B 0x6F 0x86 0x1B 0x6D
Switch1#

Switch2#configure
terminal
domain
delfirosales
Domainyname
Configurar
un Switch2(config)#vtp
nombre de dominio, VTP
en modo
Transparente
un already set to del
Setting device VLAN database password to cisco Switch2(config)#end
password en el Switch2.
Switch2#

Verificamos la configuracion realizada en el Switch2.

Switch2#show vtp status


VTP Version
Configuration Revision

:2
:0

Maximum VLANs supported locally : 128

Number of existing VLANs

:8

VTP Operating Mode

: Transparent

VTP Domain Name

: delfirosales

VTP Pruning Mode


: Disabled
Switch3#configure
terminal
domain
delfirosales
name already set to del
Configurar
un Switch3(config)#vtp
nombre de dominio, vtp
en Modo
Cliente Domain
y un password
Setting device to VTP CLIENT mode. Switch3(config)#vtp password cisco
el
Switch3.
VTP
V2 Modepassword to: Disabled
Setting deviceen
VLAN
database
cisco Switch3(config)#end
Switch3#
VTP Traps Generation
: Disabled
MD5 digest

: 0x6C 0x55 0x26 0x46 0x3B 0xBA 0xAD 0xA1

Configuration last modified by 192.168.1.1 at 3-1-93 00:16:19


Switch2#

Verificamos la configuracin de VTP.


Switch3#show vtp
status
VTP Version
Configuration Revision

2
3

Maximum VLANs supported locally : 128

Number of existing VLANs

:8

Hemos terminado de configurar los tres Switches, el primero en modo


VTP el
Operating
: Client
Server,
segundoMode
en modo Tranparente
y el tercero en modo Cliente.
Ahora lo que aremos es verificar que VTP funcione correctamente, para
VTP Domain Name
: delfirosales
esto debemos de saber que funciones realiza cada Switch.
VTP Pruning Mode
: Disabled
Modo Server: El modo Server como lo mencione anteriormente, esta
habilitado
switches cisco, necesita al menos un
VTP V2 por
Modedefecto en :los
Disabled
servidor de dominio VTP para propagar la informacin de las VLANs a
VTPde
Traps
: Disabled
travs
eseGeneration
dominio. Un Switch
en modo server puede crear, agregar
y borrar VLANs. Cuando en un VTP Server se crean o borran las VLANs,
digest
: 0x84
0x35conectados,
0x8C 0x3F 0x2C
estaMD5
informacin
se enva
a 0xA5
todos0x24
los 0x73
switches
asi que
Configuration
last
modified
192.168.1.1
3-1-93
00:16:19
cualquier
cambio
realizado
enbyun
Switch en at
Modo
Server
se envia toda
la informacin en todo el dominio
Switch3#

VTP.

Modo Transparente: Un Switch en modo Transparente si recibe la


informacin del dominio VTP, el detalle es que no ejecuta ninguna
informacin recibida, mantiene su propia base de datos y solo enva la
informacin

de

dominio

VTP

todos

los

demas Switches.

Modo Cliente: Los Switches en Modo cliente si reciben la informacion


de los servers de VTP, tambin envan informacin a los dems Switches,
as que el comportamiento de este modo es parecido a los de modo
Server. La diferencia es que en este modo no se pueden crear, modificar
o borrar VLANs.
VTP Pruning: Habilitar VTP pruning nos da una forma de preservar el
ancho de

banda

mediante

la

reduccion

de

paquetes

broadcast,

multicast y unicast. Lo que hace es darse cuenta que paquetes deben


de avanzar hacia

el

siguiente

Switch.

Crear una VLAN en el Switch1 (modo server), esto har que el Switch2
reciba informacin de la creacin de una VLAN pero no le har caso, lo
que har es enviar la informacin al Switch3 (cliente) donde si se creara
la VLAN. Vamos a verificar que VTP funcione correctamente.
Switch1#configure
terminal
Switch1(config)#vlan
3
Switch1(config-vlan)#name
users
Switch1(config-vlan)#end
Switch1#
Verficicamos el estado de VTP y las VLANs en el Switch1 (Modo Server)
Switch1#show vtp
status
VTP Version
Configuration Revision

2
5

Maximum VLANs supported locally :


128
Number of existing VLANs
:9

VTP Operating Mode

: Server

VTP Domain Name

: delfirosales

VTP Pruning Mode

: Enabled

VTP V2 Mode

: Disabled

VTP Traps Generation


MD5 digest

: Disabled

: 0x68 0x34 0x28 0xF9 0xBC 0x11 0xFD 0x0D

Configuration last modified by 192.168.1.1 at 3-1-93 00:34:23


Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN
interface found)
Switch1#
VLAN Name

StatusPorts

------------------------------------------- ------------------------------Switch1#show
vlan
1default

activeFa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9


Fa0/10, Fa0/11, Fa0/12

2VLAN2

active

3users

active

101 VLAN101
1002 fddi-default

active
act/unsup

105
VLAN105
1003
token-ring-default

active
act/unsup

1004 fddinet-default

act/unsup

1005 trnet-default

VLAN Type SAID


Trans1
Trans2

act/unsup

MTU Parent RingNo BridgeNo Stp BrdgMode

---- ----- ---------- ----- ------ ------ -------- ---- -------- ----------1 enet 100001 1500 - 0

enet 100002

1500 -

enet 100003

1500 -

15 enet 100015

1500 -

101 enet 100101

1500 -

VLAN Type SAID


Trans1
Trans2

MTU Parent RingNo BridgeNo Stp BrdgMode

---- ----- ---------- ----- ------ ------ -------- ---- -------- ---------105 enet 100105 1500 - 0

1002 fddi 101002

1003 tr 101003
1004 fdnet 101004
1005 trnet 101005

1500 1500 -

1500 1500 -

ieee -

ibm -

0
0

0
0
0

0
0

Remote SPAN
VLANs
------------------------------------------------------------------------------

Primary Secondary Type

Ports

------- --------- ----------------- ------------------------------------------

la VLAN 3 llamada users, ahora


Como podemos observar, hemos creado
Verficicar el estado de VTP y las VLANs en el Switch2 (Modo
Transparente). Switch2#show vtp status
VTP Version

Configuration Revision

Maximum VLANs supported locally : 128


Number of existing VLANs

VTP Operating Mode

: Transparent

VTP Domain Name

: delfirosales

VTP Pruning Mode


VTP V2 Mode
VTP Traps Generation
MD5 digest

: Disabled
: Disabled
: Disabled
: 0x6C 0x55 0x26 0x46 0x3B 0xBA 0xAD 0xA1

Configuration last modified by 192.168.1.1 at 3-1-93 00:16:19


Switch2#show vlan

VLAN Name

StatusPorts

---- -------------------------------- --------- ------------------------------1default

activeFa0/3, Fa0/4, Fa0/5, Fa0/6


Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12

VLAN Type SAID


Trans1
Trans2

MTU Parent RingNo BridgeNo Stp BrdgMode

---- ----- ---------- ----- ------ ------ -------- ---- -------- -----active
------2VLAN2
1 enet 100001 1500 - 0
101 VLAN101
active
2 enet 100002 1500 - 0
105 VLAN105
101 enet 100101

0
0

1500 -

active
-

1002 fddi-default
105 enet 100105 1500 -

act/unsup
- -

- act/unsup
- 0

1003
1002
fddi token-ring-default
101002 1500 1004 fddinet-default
1005 trnet-default

act/unsup
act/unsup

1003 tr 101003

1500 -

srb
ieee -

1004 fdnet 101004

1500 -

VLAN Type SAID


Trans1
Trans2

MTU Parent RingNo BridgeNo Stp BrdgMode

---- ----- ---------- ----- ------ ------ -------- ---- -------- ----------1005 trnet 101005 1500 ibm 0

Remote SPAN
VLANs
------------------------------------------------------------------------------

Primary Secondary Type

Ports

------- --------- ----------------- ------------------------------------------

Tal como se muestra no se creo ninguna VLAN, pero si debi de enviar


Verficicar el estado de VTP y las VLANs en el Switch3 (Modo Cliente).

Switch3#show vtp status


VTP Version
Configuration Revision

:2
:5

Maximum VLANs supported locally : 128

la

Number of existing VLANs


VTP Operating Mode
VTP Domain Name

:9
: Client
: delfirosales

VTP Pruning Mode


:
Enabled
VTP V2 Mode
:
Disabled
VTP Traps Generation
:
Disabled
MD5 digest
: 0x68 0x34 0x28 0xF9 0xBC 0x11 0xFD
0x0D
Configuration last modified by 192.168.1.1 at 3-1-93
00:34:23
Switch3#show
vlan

VLAN Name

StatusPorts

---- -------------------------------- --------- ------------------------------1default

activeFa0/2, Fa0/3, Fa0/4, Fa0/5


Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12

3users

active

101 VLAN101

active

VLAN
Type
SAID
MTU Parentactive
RingNo BridgeNo Stp BrdgMode
105
VLAN105
Trans1
Trans2
1002 fddi-default
act/unsup
---- ----- ---------- ----- ------ ------ -------- ---- -------- -----1003 token-ring-default
act/unsup
-----1 enet 100001 1500 - 0
1004 fddinet-default
act/unsup
2 enet 100002 1500 - 0
3

1005 trnet-default
enet 100003 1500 -

act/unsup
- -

0
0

101 enet 100101

1500 -

105 enet 100105

1500 -

1002 fddi 101002

1500 -

VLAN Type SAID


Trans1
Trans2

MTU Parent RingNo BridgeNo Stp BrdgMode

---- ----- ---------- ----- ------ ------ -------- ---- -------- ----------1003 tr 101003
1500 - srb
0
1004 fdnet 101004
1005 trnet 101005

1500 1500 -

ieee ibm -

0
0
0

Remote SPAN
VLANs
------------------------------------------------------------------------------

Primary Secondary Type

Ports

------- --------- ----------------- ------------------------------------------

0
0

Como podemos observar el Switch3 ha creado la VLAN 3 llamada users

Ahora en el Switch3 si tratamos de crear vlans en el switch3, no podremos


crearlas ni borrarlas.
Switch3#configure
terminal
Switch3(config)#vlan
10
VTP VLAN configuration not allowed when device is in CLIENT
mode.
Switch3(config)#

cambio en el Switch2 modo tranparente si podemos crear vlans, pero


En
Switches.
Switch2#configure terminal
Switch2(config)#vlan
20
Switch2(config-vlan)#name VLAN20
Switch2(config-vlan)#exit
Switch2(config)#end
Switch2#show vlan
brief
VLAN Name

Status

Ports

---- -------------------------------- --------- ------------------------------1 default


Fa0/6

active

Fa0/3, Fa0/4, Fa0/5,

Fa0/7, Fa0/8, Fa0/9,


Fa0/10

Fa0/11, Fa0/12
2VLAN2
informacion a los diferentes Switches.
Switch1
Switch1#show vlan brief

20VLAN20

active
active

101 VLAN101

active

105 VLAN105

active

1002 fddi-default

act/unsup

1003 token-ring-default

act/unsup

1004 fddinet-default
1005 trnet-default

act/unsup
act/unsup

Switch2#
VLAN Name
StatusPorts
En el Switch1 y el Switch3 no se crea ninguna VLAN, ya que el modo tranparente n
---- -------------------------------- --------- ------------------------------1default

activeFa0/2, Fa0/3, Fa0/4, Fa0/5


Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12

2VLAN2

users

active

active

101 VLAN101

active

105 VLAN105

active

1002 fddi-default

act/unsup

1003 token-ring-default

act/unsup

1004 fddinet-default
1005 trnet-default

act/unsup
act/unsup

Switch1#
Switch2
Switch3#show vlan brief

VLAN Name

StatusPorts

---- -------------------------------- --------- -------------------------------

1default

activeFa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

2VLAN2
3users
1004
fddinet-default
101
VLAN101
1005
trnet-default
105
VLAN105

active
active
act/unsup
active
act/unsup
active

Switch3#
1002 fddi-default
act/unsup
Si se te ha olvidado el password de VTP
1003 token-ring-default
act/unsup
Switch3#show
vtp
password
VTP Password:
cisco
Switch3#
Algo basico en la configuracion de VTP (VLAN Trunking Protocol).

You might also like