Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

creating vlans

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?

7 REPLIES
Blue

Re: creating vlans

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

Anonymous
N/A

Re: creating vlans

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

Hall of Fame Super Blue

Re: creating vlans

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

New Member

Re: creating vlans

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.

Hall of Fame Super Gold

Re: creating vlans

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?

New Member

Re: creating vlans

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

New Member

Re: creating vlans

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.

786
Views
0
Helpful
7
Replies