I have so much conflicting information about these two configuration options. I have a 2950 guide that shows both config# vlan 1
as options to set vtp mode and create a vlan.
Cisco press flash cards says to use vlan database cmd to enter vlan configuration mode on 2950 switches to set the vtp mode type and to create a vlan. vlan # to enter config-vlan mode is for 1900 switches.
Cisco Press ICND Volume 1 module 2 configuring vlans references a 2950 but never mentions the vlan database cmd at all.
To set the ip address for the switch in the ICND it shows
config)#interface vlan 1
config-if)#ip add 10.5.5.11 255.255.255.0
On the simulator for the Cisco Press flash cards and test it shows
config)#ip add 10.5.5.11 255.255.255.0
On a real switch Im sure I could figure it out but I dont want to miss an otherwise simple question on the exam.
When is one mode desirable over the other?
When is one mode the only option?
Which way do you set the ip address for the switch and on which models?
Confused and frustrated please help!!!
When I try to enter vlan database on a 3550, it tells me:
% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode."
That tells me that I should not use vlan database mode.
As far as the IP address, you cannot set an IP address on "the switch". It should be on an SVI.
 Dang it, Anthony beat me to it!
I do not have access to a 2950 right now, but I would be willing to bet that you can do both methods for VLAN manipulation. You could do the VLAN Database Mode or the VLAN configuration mode. I would be familiar with both methods for the exam just in case the simulation only supports one or the other.
Just so you know, Cisco prefers the VLAN configuration mode approach. I think they would like to kill off the legacy VLAN Database approach.
So the preferred Cisco config looks like this:
Sw1# configure terminal
Sw1(config)# vlan 10
Sw1(config-vlan)# name MYSPECIALVLAN
As far as assigning an IP address to a VLAN, the only way I know is to use a Switch Virtual Interface (I call it a VLAN Interface for short):
Sw1(config)# interface vlan 10
Sw1(config-if)# ip address 10.0.0.1 255.255.255.0
Anthony J. Sequeira