• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Consultant

  • Network Automation
    • Network Automation Consultant
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox Training
      • Infrahub
      • NautoBot
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

VTP password and other wierdness

Home » CCIE Certification

I was working through INE’s Vol 3 workbook tonight and thought I would do VTP. This should have been a very simple topic to master – there are not too many commands and it is a very simple technology.

Although as many of you will know to be treated with care as it can destroy your network in one foul swoop. This is why in all the places I have worked we turn it off.

So I started off with my 4 switches wiped with clean config and setup a few trunks to connect them all together.

Configured SW1 as the server and the others as clients and for some reason SW4 was just not getting the vlan’s

How to troubleshoot VTP

The first command is sh vtp status
SW1#sh vtp status
VTP Version                     : 2
Configuration Revision          : 10
Maximum VLANs supported locally : 1005
Number of existing VLANs        : 17
VTP Operating Mode              : Server
VTP Domain Name                 : CISCO
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Enabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0xE3 0x60 0xB3 0x97 0x29 0xF2 0xE0 0xA9
Configuration last modified by 0.0.0.0 at 3-6-93 08:15:08
Local updater ID is 0.0.0.0 (no valid interface found)

There are a few interesting things here that I have found.

1. Ensure all switches are running the same version of vtp. Although the switch will say VTP Version 2 this does not mean it is running version 2 you need to ensure VTP V2 mode says enabled – if not put your switch into server mode and type vtp version 2

For some reason one of my switches says VTP Version : running V2

not sure why that is – will look into it.

So all your switches are running the same version. Still not vlans appearing

check the VTP password.

This is another strange one as the vtp password does not show in the config

To check type sh vtp password
SW1#sh vtp password
VTP Password: cisco
SW1#

I did this on all switches and one switch SW4 did not have the password set, I set the password and everything worked.

Remember that all the vlan data is not stored in the running-config but in a file in flash called vlan.dat
SW1#sh flash:

Directory of flash:/

2  -rwx     7963038   Mar 1 1993 00:44:13 +00:00  c3560-advipservicesk9-mz.122-25.SEE2.bin
3  -rwx        1304   Mar 6 1993 08:15:08 +00:00  vlan.dat
4  -rwx        3002   Mar 6 1993 02:08:32 +00:00  config.text
5  drwx         192   Mar 1 1993 00:06:00 +00:00  c3560-ipbase-mz.122-25.SEB2
358  -rwx          24   Mar 6 1993 02:08:32 +00:00  private-config.text

If you want to erase a switch completely you need to delete this file or else when you clear the config and reload the vlans just come back.

One last thing is debugs

If you are still getting nowhere
SW1#debug sw-vlan vtp ?
events      vtp events
packets     vtp packets
pruning     vtp pruning events
redundancy  vtp redundancy
xmit        vtp packets transmitted

Ok now all that is working on to Mixing VTP modes

Cisco Documentation explains it so well:

Understanding VLAN Trunk Protocol

Category: CCIE CertificationTag: vtp, vtp debugs, vtp password
ansible course for network engineers
Get Access to my Ansible Course NOW
Next Post:Switchport Host Command

Reader Interactions

Comments

  1. curious

    March 20, 2015 at 8:13 am

    Hi,

    I wonder, if you found why some shows : VTP Version : 2
    Even if running vtp v1.
    Found on C2950 with c2950-i6k2l2q4-mz.121-22.EA14.bin

    VTP updates are working fine (running v1).

    Thnx.

    • Roger Perkin

      March 20, 2015 at 10:52 am

      Please post the full show stp status output

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

Python for Network Engineers Course

Topics

Network Automation
Ansible Network Automaton
Python for Network Automation
CCIE
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers Course

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2026 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms