(Virtual Trunking Protocol) : Cisco Ccna Bootcamp
(Virtual Trunking Protocol) : Cisco Ccna Bootcamp
VTP
(Virtual Trunking Protocol)
Internetworking 1
What is VTP? Small Network VLAN Management
Internetworking 2
What is VTP?
• What is VTP?
–VTP allows a network manager to configure a switch so that it
will propagate VLAN configurations to other switches in the
network.
• Switch can be configured a VTP server or VTP client.
• VTP only learns about normal-range VLANs (VLAN IDs 1 to
1005). Extended-range VLANs (IDs greater than 1005) are
not supported by VTP.
• VTP Overview
–VTP allows a network manager to makes changes on a switch
that is configured as a VTP server.
• The VTP server distributes and synchronizes VLAN
information to VTP-enabled switches throughout the
switched network, which minimizes the configuration
inconsistencies.
–VTP stores VLAN configurations in the VLAN database called
vlan.dat.
• For example: In the figure, a trunk link is added between S1, a VTP
server, and S2, a VTP client.
–After a trunk is established, VTP advertisements are
exchanged between the switches.
• VTP advertisements will not be exchanged if the trunk
between the switches is inactive.
Internetworking 3
Benefits of VTP
Internetworking 4
VTP Components
• VTP Domain - Consists of one or more interconnected switches.
–All switches in a domain share VLAN configuration details
using VTP advertisements.
–Router or Layer 3 switch defines the boundary of domain.
• VTP Modes - 3 different VTP modes
–VTP Server - VTP servers advertise the VTP VLAN information
to other switches in the same VTP domain.
• VTP servers store the VLAN information for the domain in
NVRAM.
• The server is where VLAN can created, deleted, or renamed
for the domain.
–VTP Client - VTP clients function the same way as VTP servers,
but you cannot create, change, or delete VLANs.
• A VTP client only stores the VLAN information for the entire
domain while the switch is on.
• A switch reset deletes the VLAN information. You must
configure VTP client mode on a switch.
–VTP Transparent - Transparent switches forward VTP
advertisements to VTP clients and VTP servers.
• Transparent switches do not participate in VTP.
• VLANs that are created, renamed, or deleted on transparent
switches are local to that switch only.
Internetworking 5
Default VTP Configuration
• The Cisco command show VTP status displays the VTP status.
• The default VTP settings are.
–VTP Version = 1
–VTP Domain Name = null
–VTP Mode = Server
–Configuration Revision = 0
–VLANs = 1
• The following briefly describes the show VTP status parameters:
VTP Version - Displays the VTP version the switch is running.
• By default, the switch implements version 1.
• Only one VTP version is allowed in a VTP domain.
Configuration Revision - Current configuration revision number.
–Maximum VLANs Supported Locally - Maximum number of VLANs supported locally.
Number of Existing VLANs - Number of existing VLANs.
VTP Operating Mode - Can be server, client, or transparent.
VTP Domain Name - Name that identifies the administrative domain.
–VTP Pruning Mode - Displays whether pruning is enabled or disabled.
–VTP V2 Mode - Displays if VTP version 2 mode is enabled. VTP version 2 is disabled by
default.
–VTP Traps Generation - Displays whether VTP traps are sent to a network management
station.
–MD5 Digest - A 16-byte checksum of the VTP configuration.
–Configuration Last Modified - Date and time of the last configuration modification.
Displays the IP address of the switch that caused the configuration change to the
database.
Internetworking 6
VTP Domains
Internetworking 9
VTP Modes Overview
• Server Mode
–In server mode, you can create, modify, and delete VLANs for
the entire VTP domain.
• VTP server mode is the default mode for a Cisco switch.
• VTP servers advertise their VLAN configurations to other switches
in the same VTP domain and synchronize their VLAN
configurations with other switches based on advertisements
received over trunk links.
• VTP servers track of updates through a configuration revision
number.
• Other switches in the same VTP domain compare their
configuration revision to see if they need to synchronize their VLAN
database.
• Client Mode
–If a switch is in client mode, you cannot create, change, or
delete VLANs.
• The VLAN configuration information that a VTP client switch
receives from a VTP server switch is stored in a VLAN database,
not in NVRAM.
• When a VTP client is shut down and restarted, it sends a request
advertisement to a VTP server for updated VLAN information.
• Transparent Mode
–Switches configured in transparent mode forward VTP
advertisements that they receive on trunk ports to other
switches.
• VTP transparent mode switches do not advertise their VLAN and do
not synchronize their VLAN configuration with other switch.
• A VTP transparent mode switch reboots, it does not revert to a
default VTP server mode, but remains in VTP transparent mode.
Internetworking 10
VTP Configuration Guidelines
• VTP Server Switches
–Confirm that all of switches you are have been set to default
settings.
–Always reset the configuration revision number before installing a
previously configured switch into a VTP domain.
• Not resetting the configuration revision number allows for potential
disruption in the VLAN configuration across the rest of the switches.
–Configure at least two VTP server switches in your network.
• In case the primary VTP server becomes disabled, if all the switches are
in VTP client mode, you cannot create new VLANs on the network.
–Configure a VTP domain on the VTP server.
• Other switches connected through trunk links receive the VTP domain
information automatically through VTP advertisements.
–If there is an existing VTP domain, make sure that you match the
name exactly.
• VTP domain names are case-sensitive.
–If you are configuring a VTP password, ensure that the same
password is set on all switches in the domain.
• Switches without password or with the wrong password reject VTP
advertisements.
–Ensure that all switches are configured to use the same VTP
version.
• VTP version 1 is not compatible with VTP version 2. By default, Cisco
Catalyst 2960 switches run version 1 but are capable of running version
2.
–Create the VLAN after you have enabled VTP on the VTP server.
• VTP information is only exchanged on trunk ports.
Internetworking 11
VTP Configuration Guidelines
Internetworking 12
Configuring VTP: Step 1
Configure the VTP Server
• Initially none of the devices are connected.
–The topology highlights switch S1. You will configure
this switch to be a VTP server.
• The output of the show vtp status command confirms that
the switch is by default a VTP server.
–the revision number is still set to 0
–the switch does not belong to VTP domain.
Internetworking 13
Configuring VTP: Step 2
Configure the VTP client
Internetworking 14
Configuring VTP: Step 3 Confirm and Connect
• After configuring the main VTP server and the VTP clients, you will
connect the VTP client switch S2 to the switch S1 VTP server.
–The topology highlights the trunks that will be added to this
topology.
• Confirm VTP Operation
–There are 2 commands for confirming that VTP domain and
VLAN configurations have been transferred.
• Use show VTP status command to verify the following:
–Configuration revision number has been incremented to 6.
–There are now three new VLANs indicated by the existing
number of VLANs showing 8.
–Domain name has been changed to cisco1.
• Use show vtp counters command to confirm that the advertisements
took place.
• Configure Access Ports
–The task now is to configure the port F0/11 on switch S2 to be in
VLAN 20. Use the switchport access vlan [number] interface
command
Internetworking 15
Troubleshooting VTP Connections
• In this topic, you will learn about
common VTP configuration problems.
This information, combined with your
VTP configuration skills, will help you
when troubleshooting VTP configuration
problems.
Internetworking 16
Troubleshooting VTP: Incompatible VTP Versions
Internetworking 17
Troubleshooting VTP: VTP Password Issues
Internetworking 18
Troubleshooting VTP: Incorrect VTP Domain Name
Internetworking 19
Troubleshooting VTP: Switches Set to VTP Client Mode
Internetworking 20
Managing VLANs on a VTP Server
Internetworking 21
-- End of presentation --
Internetworking 22