VTP (VLAN Trunking Protocol) |
VTP
(VLAN Trunking Protocol)
VTP is VLAN Trunking Protocol it is use for VLAN’s
creation and management in the network. Let’s suppose we have a huge network
consist of multiple switches and we have to create more than 200 VLAN’s on all
switches of the network. In this situation VTP helps us to create and manage
VLAN’s on every switch of the network. With the help of this protocol we can
create, delete or modify VLAN’s.
VTP is Cisco proprietary protocol used to maintain
the VLAN’s throughput within the same VTP domain. This protocol have its own
domain. Which can be assigned manually and it can be anything. Domain name will
be case sensitive.
To use this protocol we have to keep an eye on few
things, which are mentioned below.
1. VTP
Domain should be the same on all switches connected in the network.
2. Domain
name will be case sensitive.
3. One
Switch must be in Server mode.
4. It
is necessary the VTP version should be same on all switches connected in the
network.
5. Authentication
method should be same.
VTP
Mode: -
VTP have three modes which are mentioned below.
1. Server
2. Client
3. Transparent
Server
Mode: -
By default all switches will be in server mode. This
mode allows to create, delete, add and modify VLAN’s in the network. Any
changes made on this switch which is in server mode, will be advertised to the
whole network switches which will be in the same domain. configuration are
saved in NVRAM in this mode.
Show
command: -
thetechnetworkSW0#show vtp status
VTP
Domain Creation and VTP mode selection commands in server mode.
thetechnetworkSW0#VTP
domain THETECHNETWORK
thetechnetworkSW0#vtp
mode server
thetechnetworkSW0#vtp
password cisco
Client Mode: -
In
this mode switches only can receive VLAN’s from the server. It cannot create,
add, delete or modify VLAN’s. In this mode switches receives the updates from
the server and pass it to the network for other clients. Simply in this mode
switches learns the updates receives from the server mode and advertise the
updates to the network for other vtp clients.
VTP
Domain Creation and VTP mode selection commands in client’s mode.
thetechnetworkSW1#VTP
domain THETECHNETWORK
thetechnetworkSW1#vtp
mode client
thetechnetworkSW1#vtp
password cisco
Transparent
Mode: -
This mode only advertise the received updates but
don’t update its own VLAN database. It only passes it to the other clients
which are directly connected in the network. No database change received by the
transparent mode. This mode keep itself as it is.
VTP
Domain Creation and VTP mode selection commands in transparent mode.
thetechnetworkSW2#VTP
domain THETECHNETWORK
thetechnetworkSW2#vtp
mode Transparent
thetechnetworkSW2#vtp
password cisco
Configuration Revision Number: -
Configuration
revision number is a 32 bit number which consist of number of changes or
modifications made in the database. When we create, delete or modify any VLAN.
It increments in the configuration revision number. Every change increments in
the revision number.