How does the VTP database get saved on a CATOS switch?

Dragon0x40
Dragon0x40 used Ask the Experts™
on
If a CATOS switch is put in text config mode where the config is not automatically saved to NVRAM but saved with the write mem command to flash then how is the VTP information saved?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If you're in TEXT MODE, it's not going to be saved unless you set the AutoSave interval.




Author

Commented:
thanks TonyPh12345,

But if I "wr mem" the vlan database and the vtp config  should be safed to the startup-config?
Well, certainly the VTP config will.   The VLAN configuration, which is learned from the VTP Server is NOT stored in NVRAM.  It is stored in Volatile RAM.    Only the SERVER stores the VLAN Database in NVRAM.

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
So if a switch is in vtp client mode then you do not have to worry about it overwriting other switches vlan configuration?

If you install/reinstall a switch and it is in server mode then the revision number should be reset to 0 but if the switch is in client mode then it will boot with a revision number of 0?

Author

Commented:
If a switch is in VTP client mode do you have to worry about the revision number if you return it to the network after being down or in a lab?
Commented:
to make changes to the vlan database you enter the vlan database from privileged exec mode with the command vlan database. to commit changes to the vlan database you type 'exit' while in the vlan database and it will commit changes and exit.

if a switch is in client mode it will not propagate vlans that are local, furthermore there are commands that will not be executable while in client mode.

the revision doesn't matter in client mode only in server mode when the master election occurs.

I do not think that the revision number zeroes out when you just reboot a switch. I think you need to delete the vlan.dat file and then reboot the switch to reset the revision number on the switch in server mode. the revision mode on the client is dependent entirely on what the server has and is not stored locally.

hope this helps, if you need more info on VTP I could recomend some spot on resources on the cisco website.

-t
Aaron StreetTechnical Infrastructure Architecture and Global Network Manager
Commented:
The VLAN config is not stored in the startup-config

even in client mode it is saved to a seperate file. like Decoleur said its saved in the vlan.dat file and this containes a full lsiting of the VLAN data base that has been learnt from the server switch.

you wont see any refrence to the VTP or VLANS in the running config or start up config it is all heald in the vlan.dat file. so running a write erase. of deleting the config will still leave the VLAN data base in check...

ok if you are in client it wioll nto over write the rest of the network, but unless its revision number is lower and the domain and such is set up correctly, then you vlan data base will not update correctly

So yes dragon you should be worried, we bringin a switch from lab to production.

jsut find where the vlan.dat file is a delete it before you add the switch to the network, ou wil then have to set up the VTP again,

you can also change the mode from client to server and back to client while the switch is off the network, this will set the revition number to 0.

Author

Commented:
thanks decoleur and DevilWAH,

So if I am in text configuration mode instead of binary configuration mode then it does not affect how the vlan.dat is saved?

If the VTP mode is server then the Vlan.dat will be saved to nvram regardless of the switch configurtion mode?
Aaron StreetTechnical Infrastructure Architecture and Global Network Manager
Commented:
yes as i undersand it VLAN and switch config are completly seperate..

you may use the CLI to configure both, but no VLAN information or VTP information is held in the normalconfig. it is saved in its own seperate file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial