VTP – Understand and Configure VLAN Trunk Protocol

If you get a CCNA job, it is likely that you will manage a lot of switches. You will work a lot with VLANs, adapting the network to business needs. Since this could potentially eat all of your time, we can use some tools to make our job fast. VTP – VLAN Trunk Protocol, is one of the tools that Cisco offers for that. With VTP, we can propagate VLAN changes to all our switches in seconds. However, to do that we need to understand how the VLAN Trunk protocol works. If used in the wrong way, it can destroy your network. In this article, we are going to explain all the secrets to avoid that and use it safely.

This article explains to you how VTP works, and then teaches you the configuration with a lab. You can download, for free, the Cisco Packet Tracer lab about VTP by clicking on the link below.

Once you do, just open the Packet Tracer file (it is in a .zip archive) and follow the article. You will be able to try what you learn in this emulated network. In less than you might think, you will become completely confident with it.

Understanding VTP

A brief overview

The VLAN Trunk Protocol has a simple goal: VLAN propagation. In other words, it makes sure that the VLAN database is consistent on all your switches. You configure a new VLAN on a switch, and VTP adds it to all other switches. You delete it, VTP deletes it everywhere else.

To work, VTP relies on four items: domain, password, version, and revision number. We say that two switches are in the same domain if they share identical domain names, passwords, and VTP versions. Once two switches agree that they are in the same domain, they can start to sync their VLAN database. However, this is possible only on Trunks: two switches connected with an access link won’t sync.

How does the sync happen? This is where the revision number starts to play a key role. This is an integer that indicates how up-to-date the VLAN database is. The higher the revision number, the most up-to-date the database. Therefore, the two switches will check each other’s revision number, and the one with the higher one will push the database to the other. Every time you create, delete or modify a VLAN on a switch, the revision number on that switch increases by one.

A brief overview of the VTP operation.

By default, all switches are part of the “NULL” domain. If you don’t change it when deploying a network, you will expose it to serious threats. If you attach a switch with no VLAN to an existing network, and with a high revision number, it can propagate an empty database and erase your network.

VTP Modes

With VTP version 1 and 2, each switch can play three different roles: server, client and transparent.

  • A switch in server mode will allow the administrator to configure VLANs (or modify/delete them). It will increase the revision number on each modification and propagate the database to other switches. This is the default.
  • In client mode, the switch doesn’t allow the configuration of VLANs. However, it can receive VTP databases from servers and clients and propagate to the connected switches
  • A switch in transparent mode doesn’t sync with other VTP switches, but it allows VTP messages to pass through it (and propagate to other switches, acting as a bridge)

The only difference between server and client mode is that you can configure VLANs only in the first. However, a client switch can update the VLAN database of a server if it has a higher revision number.

Considerations and Limitations

Recall your knowledge about VLANs. We can divide them in standard and extended range: respectively VLANs 2-1000 and 1006-4096. VTP, in version 1 and 2, can only propagate the standard range. This limitation, like many others, has been fixed in VTP version 3, which is out of scope for the CCNA as it adds more complexity.

Nonetheless, our major consideration is about how harmful VTP can be. If you attach a new switch to the network, that for any reason happens to have a higher revision number, it will propagate its VLAN database. You don’t want that. So, before attaching a new switch to a network you need to set its revision number to zero. However, Cisco hasn’t created a command for that. Instead, we need to force it into transparent mode and then back into client/server mode. This will effectively reset its revision number.

It is also worth mentioning that VTP only propagates VLAN configuration. You will still need to connect on each switch and manually configure the ports you need.

Configuring VTP

For this lab, we are going to start with the configuration of the Top switch. As you can guess from the requirements, it must be the server. We will need to define its domain, password, and version, as well as the mode. Instead, the revision number will automatically increase as we configure VLANs.

So, we can start that easily by entering the global configuration mode. From there, we can use vtp domain to set the domain, vtp password to set the password, vtp version for the version and vtp mode for the mode. Here’s a complete list of what we have to type.

vtp domain company
vtp password ictshore
vtp version 2
vtp mode server

You now have configured the server. We will come back to that at the end to configure VLANs. The client configuration is identical, it only changes the VTP mode as specified below.

vtp domain company
vtp password ictshore
vtp version 2
vtp mode client

We need to push this exact configuration on Left, BottomLeft, and BottomRight switches. Now our VTP configuration is almost at the end, we only need to configure the transparent switch. Since it is transparent, it won’t need to know the domain nor password. We can simply add vtp mode transparent on Right switch.

Preparing the VLANs

For this lab, we were asked to create three VLANs: 10, 20, and 30. We need to name them “Data”, “Voice” and “Servers”. You should be able to do it on your own, but in case you don’t, we prepared the copy-and-paste commands here.

vlan 10
 name Data
vlan 20
 name Voice
vlan 30
 name Servers

Add these commands on the server. In a few seconds (at most), VLANs will be created on all the switches but Right (which is transparent). You can verify that with show vlan brief. Congratulations, you now have configured VTP! Your score should be 100%.

Troubleshooting VTP

When working with VTP, there’s almost nothing to troubleshoot. Instead, it either works or doesn’t work – in the worst case it can blow up your network, but you know it’s because of revision numbers. Nonetheless, Cisco offers us a great command to check the overall VTP configuration of our switch: show vtp status. In case you finished the lab, as we did, here’s the output we expect to see on “Top”.

Use show vtp status to check the overall condition of VLAN Trunk Protocol on Cisco switches
Output on the server switch.

As you can see, we can have a pretty good overview. It shows all the configuration parameters, as well as the existing VLANs and how many VLANs our switch can support (255 in this case). Furthermore, you can see when was the database modified the last time.

Conclusion

VTP – VLAN Trunk Protocol, is an awesome tool to do better and faster configurations. While configuring it is easy  (you have all the commands starting with vtp), understanding it requires attention. Nevertheless, in this article, we covered everything you need to configure it.

  • VTP modes define how the switch works when interacting with other switches (server and client propagates and install updates, transparent propagates updates but doesn’t install them in its database)
  • Switches can exchange updates only on trunks and when they have the same domain, password and version
  • Never use VTP in a Data Center, in case something goes wrong you will take it down

With this knowledge, you are ready to jump-start in Switch Configuration, being faster and efficient. Furthermore, you are now ready to face more complex switching technologies like STP.

Related Posts

Leave a Reply

Your email address will not be published.

Cerota starlight princess Dari medan menuju jagat maya Eksplorasi keberuntungan sweet bonanza Keberhasilan mahjong ways 2 Kejutan manis sweet bonanza Kemilau keberhasilan mahjong ways Konsistensi pemain olympus1000 Prestasi spektakuler bonanza Starlight princess andalan Strategi rajawali988 Viral! Ibu Rumah Tangga di Riau Kantongi Rp103 Juta dari Mahjong Ways 2 Lewat RAJAWALI988, Warga Heboh di Facebook Santri di Aceh Timur Hebohkan TikTok! Tembus Rp89 Juta dari Mahjong Ways 2, Berkat RAJAWALI988 dari Grup WhatsApp Pemuda Pontianak Raup Rp108 Juta dari Mahjong Ways 2 di RAJAWALI988, Ceritanya Viral di Threads dan Twitter Lokal Penjual Es Kelapa di Banjarmasin Menang Rp98 Juta dari Mahjong Ways 2 Lewat RAJAWALI988, Kisahnya Trending di Facebook Mahasiswa Kupang Dapat Rp89 Juta dari Mahjong Ways 2 RAJAWALI988, Postingannya Viral di TikTok Barista di Maluku Utara Kantongi Rp95 Juta dari Mahjong Ways 2 RAJAWALI988, Warganet: Hoki dari Mesin Kopi ke Mesin Keberuntungan! Guru Honorer Bengkulu Menang Rp93 Juta dari Mahjong Ways 2, Bermula dari Link RAJAWALI988 yang Dikirim Teman Ojol di Makassar Dapat Rp88 Juta dari Mahjong Ways 2, Cerita dari RAJAWALI988 Langsung Trending di Reels Tukang Cukur Pekalongan Hebohkan Jawa Tengah! Menang Rp91 Juta dari Mahjong Ways 2 Lewat RAJAWALI988 Mahasiswa Medan Tembus Rp87 Juta dari Mahjong Ways 3 Lewat RAJAWALI988, Ceritanya Trending di Twitter Lokal Pemuda Tegal Dapat Rp120 Juta dari Olympus1000 di RAJAWALI988, Netizen: Ini Baru Hoki Anak Kos! Petani Garut Sukses Raih Rp99 Juta dari Olympus1000 Lewat RAJAWALI988, Modal Awalnya Jual Kambing Buruh Pabrik Sidoarjo Viral Usai Tembus Rp94 Juta dari Olympus1000 di RAJAWALI988, Disorot Instagram Lokal Mahasiswa Papua Raih Rp88 Juta dari Olympus1000 Lewat RAJAWALI988, Warga Jayapura Ikut Tertarik Nelayan Maluku Dapat Rp90 Juta dari Olympus1000 RAJAWALI988, Beli Perahu Baru untuk Keluarga Pemuda NTB Tembus Rp97 Juta dari Olympus1000 Lewat RAJAWALI988, Ceritanya Viral di WhatsApp Grup Desa Driver Truk Kalimantan Tengah Dapat Rp102 Juta dari Olympus1000 RAJAWALI988, Kisahnya Bikin Heboh Reels Ibu Kos Bandung Kantongi Rp107 Juta dari Olympus1000 RAJAWALI988, Uangnya Buat Biaya Kuliah Anak-anaknya Freelancer Bali Booking Liburan ke Jepang Usai Dapat Rp88 Juta dari Olympus1000 RAJAWALI988 Mahasiswa Hukum NTB Menang Rp96 Juta dari Olympus1000 RAJAWALI988, Berawal dari Scroll TikTok Tengah Malam Lokal Membuat heboh jagat maya ! Main Game mahjong ways Sambil Ngopi Pria Ini Dapat Rp300 Juta dari Nobita138 Di luar dugaan! Cuma Klik-Klik Layar Langsung Cuan Rp500 Juta dari Nobita138 Viral di TikTok! Bukti Transfer Ratusan Juta dari Nobita138 Bikin Netizen Melongo Gak Masuk Akal! Pemain Baru Nobita138 Langsung Dapat Uang Ratusan Juta Bermain mahjong ways 2 Berita Viral Hari Ini! Pemuda Dapat Ratusan Juta dari Main Game mahjong ways di Nobita138 Siapa sangka! Gak Perlu Kerja Kantoran Pemuda Ini Hidup Mewah Berkat Nobita138 Ramai di Medsos! Pemain Nobita138 Menang Jackpot Ratusan Juta Rupiah Bermain Gate Of Olympus 1000 Berita Viral! Pemain Game Gate Of Olympus Menang Besar Raup Ratusan Juta Rupiah Berkat Nobita138 Tak Disangka! Pemuda Ini Raup Rp200 Juta dari Game Nobita138 Secara Legal Raih Keberuntungan! Bermain gate of olympus super scatter di Waktu Senggang Pemuda Ini Menang Rp300 Juta di Nobita138 Cerita Viral Petani Pisang dari Jambi Dapat Uang Rp102 Juta dari Mahjong Ways Lewat RAJAWALI988 Sore-Sore Main di RAJAWALI988, Tukang Becak Asal Semarang Kaget Menang Rp91 Juta dari Mahjong Ways Malam Biasa di Kalimantan Berubah Jadi Rezeki Luar Biasa, Mahjong Ways Bikin Buruh Harian Kantongi Rp93 Juta Heboh di Sumatera Barat! Mahasiswa UIN Bukittinggi Dapat Rp99 Juta Setelah Main Mahjong Ways Lewat RAJAWALI988 Cerita Menakjubkan Ibu Warung di Tasikmalaya yang Menang Rp107 Juta dari Mahjong Ways via RAJAWALI988 Kisah Mengejutkan Remaja SMK di Pontianak Cuan Rp87 Juta Hanya dari Mahjong Ways Lewat RAJAWALI988 Nelayan Tidore Main Mahjong Ways Tengah Malam, Bangun Pagi-Pagi Sudah Transfer Rp100 Juta dari RAJAWALI988 Viral di Gorontalo! Guru Honorer Menang Rp95 Juta Saat Ulang Tahun dari Mahjong Ways di RAJAWALI988 Warga Manado Heboh! Mahjong Ways RAJAWALI988 Bikin Anak Kosan Dapat Rp98 Juta dalam 3 Hari Karyawan SPBU di Riau Bikin Geger: Cuan Rp101 Juta dari Mahjong Ways Sambil Istirahat Shift Malam Cerita Mengejutkan Pramuniaga Bandung Kantongi Rp97 Juta Usai Main Mahjong Ways RAJAWALI988 di Jam Istirahat Viral di Facebook! Santri Pesantren di Aceh Selatan Menangkan Rp89 Juta dari Mahjong Ways Berkat RAJAWALI988 Cerita Unik Pemuda Mataram yang Dapat Modal Nikah Rp90 Juta dari Mahjong Ways Lewat RAJAWALI988 Kakek Penjual Kerupuk di Banyumas Viral! Mahjong Ways Bantu Adit Sopo Jarwo Bawa Pulang Rp86 Juta Lewat RAJAWALI988 Mahasiswi Makassar Ungkap Trik Main Mahjong Ways yang Bikin Ia Dapat Rp100 Juta dari RAJAWALI988 Cerita Sukses Anak Supir Angkot di Palembang: Mahjong Ways Jadi Jalan Menuju Rp92 Juta dari RAJAWALI988 Netizen Heboh! Pegawai Pabrik di Majalengka Dapat THR Tambahan Rp105 Juta Lewat Mahjong Ways RAJAWALI988 Warga Probolinggo Panen Uang dari Mahjong Ways! Rp88 Juta Mengalir Setelah Daftar di RAJAWALI988 Bapak Rumah Tangga di Cilegon Jadi Perbincangan! Cuan Rp96 Juta dari Mahjong Ways via RAJAWALI988 Mahasiswa Kupang Bangkit dari Krisis! Mahjong Ways Bawa Rezeki Tak Terduga Rp99 Juta dari RAJAWALI988 Nobita138 Bikin Kaya! Cerita Nyata Pemain yang Dapat Uang Ratusan Juta Siapa sangka! Pemain Baru Nobita138 Langsung Dapat Uang Ratusan Juta Bermain mahjong ways 2 Viral di Medsos! Pemain Nobita138 Menang Jackpot Ratusan Juta Rupiah Bermain Gate Of Olympus 1000 Viral di TikTok! Bukti Transfer Ratusan Juta dari Nobita138 Bikin Netizen Melongo Bermain gate of olympus super scatter di Waktu Senggang Pemuda Ini Menang Rp300 Juta di Nobita138 Viral di reels instagram! Main Game mahjong ways Sambil Ngopi Pria Ini Dapat Rp300 Juta dari Nobita138 Berita Viral Di facebook! Pemain Game Gate Of Olympus Menang Besar Raup Ratusan Juta Rupiah Berkat Nobita138 Berita Viral Hari Ini! Pemuda Dapat Ratusan Juta dari Main Game mahjong ways di Nobita138 SLOT CUAN: Rahasia Main Slot Gacor Biar Makin Cuan Di Nobita138 Tak Disangka! Pemuda Ini Raup Rp256 Juta dari Game Nobita138 Secara Legal Raih Jackpot Fantastis! Pemain Nobita138 Ini Buktikan Game Bisa Jadi Sumber Cuan