creating vlans

Unanswered Question
Mar 20th, 2009
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
lamav Fri, 03/20/2009 - 10:21
User Badges:
  • Blue, 1500 points or more

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

GregL Fri, 03/20/2009 - 10:56
User Badges:

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


Jon Marshall Fri, 03/20/2009 - 13:03
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

rpfinneran Sat, 03/21/2009 - 23:38
User Badges:
  • Bronze, 100 points or more

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.

Leo Laohoo Sun, 03/22/2009 - 14:54
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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?

hoangthong Sun, 03/22/2009 - 20:39
User Badges:

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!!

rpfinneran Tue, 03/24/2009 - 02:43
User Badges:
  • Bronze, 100 points or more

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.

Actions

This Discussion