03-20-2009 10:15 AM - edited 03-04-2019 04:01 AM
I usually creat a vlan via the following commands
Switch(config)# vlan 2000
Switch(config-vlan)#
However, what difference is there in
using the vlan database command?
VLAN Configuration Mode
You can use the VLAN configuration commands to create or modify VLAN parameters for VLAN IDs 1 to 1005.
Enter the vlan database privileged EXEC command to access VLAN configuration mode:
Switch# vlan database
Switch(vlan)#
is this router or switch specific?
IOS ver specific?
what benefits are there?
03-20-2009 10:21 AM
No benefits to using vlan database mode.
In the older switches, especially the 1900s, if I recall right, it automatically put you in vlan database mode.
Now you can just create vlans from global config mode the way you displayed. The vlans you do create will be placed in the vlan.data file.
HTH
Victor
03-20-2009 10:56 AM
Also in some of your older 29xx switches you cannot configure vlans from global config you have to go into the vlan database to create and delte them and also manage any VTP configurations also.
Hope this helps
03-20-2009 01:03 PM
Richard
In addition to what has been said be aware that extended range vlans ie. vlans in the range of 1006 - 4094, can only be configured in config mode. You cannot configure these vlans in vlan database mode.
Jon
03-21-2009 11:38 PM
There is one small benefit to using Global Config to create VLAN's. When the config is loaded all required VLAN's can be recreated. Thus, in the event your vlan.dat file were to get corrupted, a simple reload could resolve the issue.
Vlan database is considered depricated by Cisco. On many newer devices you will get a warning message stating such.
03-22-2009 02:54 PM
Depends on the switch appliance and/or IOS of your IOS. VLAN Database still exist in the latest generation of routers and switches and Cisco's been saying that they will be removing this soon.
For the 2900/3500 XL family of switches, you need to create VLANS via the VLAN database. Starting from the 2950/3550 switches, creating VLANs using the VLAN Database became optional and in later Cisco-related publications, the use of the VLAN Database was discouraged.
I've seen 850/870 series routers running old IOS which still use VLAN Database.
Unless you are using legacy switches like the 2900/3500 switches, try to avoid using the VLAN Database.
Does this information help you in any way?
03-22-2009 08:39 PM
For the 2900/3500 XL family of switches, you need to create VLANS via the VLAN database. Starting from the 2950/3550 switches, creating VLANs using the VLAN Database became optional and in later Cisco-related publications, the use of the VLAN Database was discouraged. Accurate appraisal!!
03-24-2009 02:43 AM
Basically, and what Cisco would like to say is this...whenever possible, create VLAN's from config mode. If not possible, then you have no choice, you must create them in the database.
So, as a general rule, just login to the device and see if you are able to create a vlan from config mode. If so, that is how you should do it...at least that is what Cisco recommends, and I do for the above reason.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide