Command
Vlan
Use
This is the legacy way to configure VLANs on a switch. While this mode is being depreciated, you will still encounter it on older switches or routers with switch modules. On newer IOS releases, VLANs are configured in configure mode.
Syntax
Switch(vlan)#vlan <number>
OR
Switch(vlan)#vlan <number> name <vlan_name>
Example
In the below example we will enter the VLAN database, configure VLAN 55 and name it MANAGEMENT. First, we will verify that only the default VLANs are configured on the switch.
2950-XL#show vlan brief |
Now we will create the vlan and name it. It is importent that when you create a vlan in the vlan database you either type apply or exit. If you don’t, then your changes will not be saved.
2950-XL#vlan database 2950-XL(vlan)#exit |
A show vlan brief confirms that vlan was created.
2950-XL#show vlan brief |