Monday, July 23, 2012

Cisco Switch: Configuring VTP On A 3506/2940

I learned something about VTP today on a Cisco 3506 (not 3560) switch and a Cisco 2940.  I realized that on these switches, in order to do some VTP config, you have to go into the vlan database to do it, unlike on most other Cisco switches.  Here is a sample of what I had to do.

Cisco_3508(config)#vtp ?
  file  Configure IFS filesystem file where VTP configuration is stored.
Cisco_3508(config)#vtp file ?
  WORD  The ascii name of the IFS filesystem file where VTP configuration is stored.
Cisco_3508(config)#vtp file vtp ?
  <cr>

Cisco_3508#vlan data
Cisco_3508(vlan)#vtp domain swoozy
Changing VTP domain name from NULL to swoozy
Cisco_3508(vlan)#exit
Cisco_3508#

I certainly did not know this.  I was thinking I should be able to go into config mode and do the VTP config.  Like this:

Cisco_2950#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Cisco_2950(config)#vtp domain swoozy
Changing VTP domain name from NULL to swoozy
Cisco_2950(config)#exit
Cisco_2950#