vtp password

Answered Question
Jun 27th, 2007
User Badges:
  • Silver, 250 points or more

hello


suppose i need to add a new switch to an existing network, but no one knows the vtp password. is there a way to know it? or should i reconfigure it in all switches?

Correct Answer by mohammedmahmoud about 9 years 9 months ago

Hi,


On one of your switches do this:


Switch#show vtp password


VTP Password:xxxx



HTH,

Mohammed Mahmoud.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
mheusing Wed, 06/27/2007 - 00:51
User Badges:
  • Cisco Employee,

Hi,


The best situation is to know the VTP password. So changing it during the next maintainance window will be the best solution.

As a quick and dirty workaround you could copy the vlan.dat file from an existing switch in your production environment into the new switch in a lab environment, as it contains the VTP config. Then do a manual cleanup BEFORE you add the switch to the existing network. Make sure you follow the guidelines described in the "Configuring VTP" section of the appropriate configuration guide when adding the new switch to your network.


Regards, Martin



Wassim Aouadi Thu, 02/21/2013 - 04:49
User Badges:

Martin, could you elaborate on the sentence "Then do a manual cleanup BEFORE you add the switch" ?

Correct Answer
mohammedmahmoud Wed, 06/27/2007 - 00:55
User Badges:
  • Green, 3000 points or more

Hi,


On one of your switches do this:


Switch#show vtp password


VTP Password:xxxx



HTH,

Mohammed Mahmoud.

ohassairi Wed, 06/27/2007 - 01:15
User Badges:
  • Silver, 250 points or more

thanks all


ok mohammed, but this seems to be a new introduced command, because in my current (old)switches: cisco WS-C3548-XL ( Version 12.0(5)WC10) this command does not exist.

CS-BR-EG-03#sho vtp ?

counters VTP statistics

status VTP domain status



mohammedmahmoud Wed, 06/27/2007 - 02:43
User Badges:
  • Green, 3000 points or more

Hi,


Ok, you are right, i tried it on one of my old 3548-XL and it didn't work, but you can do the following:


3500#more flash:vlan.dat


and you can find the password in the second line of the output (note that the output will contain a lot of scrambled strings).



HTH,

Mohammed Mahmoud.

royalblues Wed, 06/27/2007 - 03:06
User Badges:
  • Green, 3000 points or more

Mohammed,


that was a good info.....rated


Narayan

mohammedmahmoud Wed, 06/27/2007 - 06:06
User Badges:
  • Green, 3000 points or more

Hi Narayan,


Thank you my friend, i really enjoy supporting this forum with persons like your self :)


BR,

Mohammed Mahmoud.

drsejjuko Wed, 06/27/2007 - 05:32
User Badges:

Hi,

when i do a service password encryption? does the vtp password become a victim?

mohammedmahmoud Wed, 06/27/2007 - 06:05
User Badges:
  • Green, 3000 points or more

Hi,


No, the service password encryption affects the passwords saved on the startup/running configuration, and has nothing to do with the info stored in the vlan.dat file.


HTH,

Mohammed Mahmoud.

Actions

This Discussion