cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1270
Views
0
Helpful
7
Replies

creating vlans

nygenxny123
Level 1
Level 1

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 7

lamav
Level 8
Level 8

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

Not applicable

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
Hall of Fame
Hall of Fame

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
Level 1
Level 1

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
Hall of Fame
Hall of Fame

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?

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

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: