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

Roger Perkin

Learn Network Automation

  • Network Automation
    • Ansible Network Automation
      • Ansible Hosts File
      • What is Ansible?
    • Python Network Automation
      • Python for Network Engineers
    • Python Tutorial for Beginners
    • Terraform
    • pyATS
    • Docker
    • GIT
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • COURSES

VTP password and other wierdness

Home » CCIE

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: CCIETag: vtp, vtp debugs, vtp password
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 Technical Architect focussed on Network Automation CCIE #50038
About Roger | Twitter | Linkedin

Recent Posts

  • Hashicorp Vault Tutorial
  • Ansible Tower vs Ansible Automation Platform
  • Cisco Certified DevNet Expert Getting Started Guide
  • Python for Network Engineers Course
  • Gitlab vs Github the Differences Explained

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF

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 training 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

Home

Blog

About

Contact

Network Tools

Python VENV Tutorial

Contact

Get in touch with me here

[email protected]

Buy me a coffeeBuy me a coffee

YouTube

Don’t forget to take a look at my YouTube Channel

youtube button

Tech

Best Vertical Mouse for RSI

Copyright © 2022 · Roger Perkin · All Rights Reserved · Powered by Mai Theme