1900 Series Switch 1900Switch#config t | | 1900Switch(config)#vlan 2 name Engineering | Creates VLAN 2 and names it Engineering | 1900Switch(config)#vlan 3 name Marketing | Creates VLAN 3 and names it Marketing | 2900 Series Switch 2900Switch#vlan database | Enters VLAN database mode | 2900(vlan)#vlan 2 name Engineering | Creates VLAN 2 and names it Engineering | 2900(vlan)#vlan 3 name Marketing | Creates VLAN 3 and names it Marketing | 2900(vlan)#exit | Applies changes and exits VLAN database mode | 2900# | |
2950 Series Switch 2950Switch#config t | Enters global config mode | 2950Switch(config)#vlan 10 | Creates VLAN 10 and enters VLAN config mode for further definitions | 2950Switch(config-vlan)#name Accounting | Assigns a name to a VLAN | 2950Switch(config-vlan)#exit | Moves back to global config mode | 2950Switch(config)#vlan 20 | Creates VLAN 20 and enters VLAN config mode for further definitions | 2950Switch(config-vlan)#name Sales | Assigns a name to a VLAN | 2950Switch(config-vlan)#exit | Moves back to global config mode |
Tip: For the 2900 series switch, you must apply the changes to the VLAN database for the changes to take effect. You can also use the command apply in the VLAN database, which will apply the changes, but not exit the mode. Using the command to exit out of the VLAN database will not apply the changes to the VLAN database. You must use the command exit to exit the VLAN database and have the changes successfully applied. Tip: For the 2950 series switch, the use of the VLAN database is being phased out, in favor of creating VLANs in the manner demonstrated in the preceding command syntax. If you use the vlan database command at the 2950Switch# prompt, the 2950 IOS will tell you this but will still allow you to use commands the same as the 2900 series switch. Get used to this style; it is the method to be used on all future releases of switches. |