05 December, 2013

Cisco CCNP Switch Chapter 5

#Configuring a VTP Managements Domain
Switch(config)# vtp domain [domine-name]        ! 32 characters long

*Note: A Switch can belong to only one VTP domain. In VTP v2 transparent switches do forward recived VTP advertisements out of thir trunk ports, acting as VTP relay. (Regardless VTP domain name setting)

#Configure VTP Mode
Switch(config)# vtp mode [ server | client | transparent ]

*Note: Is very important to always force any newly added network switches to have revision number 0 before being atached to the network.

*Note: If You need delete revisions numbers, Change the switch VTP mode to transparent and then change the mode back to server or change the domain name.

*Note: VTP domain servers send summary advertisements every 300 seconds and every time a VLAN database change occurs.

*Note: When VTP client Switch first powers up, it sends a summary advertisements from its own stored database.

#Configure VTP Password
Switch(config)# vtp password [PASSWORD]         ! 1 to 32 characters (case sensitive).

#Configure VTP Version
Switch(config)# vtp version [ 1 | 2 ]           ! By Default, a Switch use Version 1

*Note: In VTP v1, a transparent mode switch does not even relay VTP information

#Current VTP parameters for a management domain
Switch# show vtp  status
VTP Version                     : 2
Configuration Revision          : 3
Maximum VLANs supported locally : 36
Number of existing VLANs        : 8
VTP Operating Mode              : Server
VTP Domain Name                 :
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x68 0x5D 0x97 0x73 0x98 0x28 0xFB 0x54
Configuration last modified by 0.0.0.0 at 3-1-02 05:00:26
Local updater ID is 0.0.0.0 (no valid interface found) 

#Reveal VTP Message and Error Counters
Switch2# show vtp counters
VTP statistics:
Summary advertisements received    : 0
Subset advertisements received     : 0
Request advertisements received    : 0
Summary advertisements transmitted : 0
Subset advertisements transmitted  : 0
Request advertisements transmitted : 0
Number of config revision errors   : 0
Number of config digest errors     : 0
Number of V1 summary errors        : 0
VTP pruning statistics:
Trunk            Join Transmitted Join Received    Summary advts received from
                                                   non-pruning-capable device
---------------- ---------------- ---------------- ---------------------------

#Enabling VTP Pruning
Switch(config)# vtp pruning 

*Note: If You Use This Command on a VTP Server, All Other Switches (Servers,Clients) listening to that advertisement also will enable pruning.

Switch(config)# interface FastEthernet 1/1
Switch(config-if)# switchport trunk pruning vlan [[[ add | exept | remove ] vlan-list ] | none ]

*Note: Be aware that VTP pruning has no effect on switches in the VTP transparent mode.

#Troubleshooting VTP
If a switch does not seem to be receiving updated information from a VTP server, consider these possible causes: 
* The Switch is Configured for VTP transparent mode.
* If The Switch is configured as a VTP client, there might not be another switch functioning as a VTP server.
* The Link toward the VTP server is not in trunking mode. 
* Make Sure the VTP dmain is configured correctly
* Make sure the VTP version is compatible. 
* Make sure the VTP password matches others in the VTP domain.