Cisco 2900 Switch: Create a VLAN
A VLAN (Virtual Local Area Network) makes a single physical switch behave like several separate switches. A host connected to one VLAN cannot communicate through the switch to a host connected to another (although a router can permit communication between VLANs if desired). Here’s how to configure a new VLAN on a 2900 switch.
To create a VLAN number 5 called ‘engineering’ use these commands:
# vlan database
(vlan)# vlan 5 name engineering
(vlan)# exit
#
The ‘vlan database’ command is necessary to enter VLAN configuration mode (analagous to entering an interface configuration mode when configuring a router or switch interface). Note that the switch’s prompt changes after this command.
Once in the VLAN configuration mode, more than one VLAN may be created using multiple ‘vlan id# name vlan-name’ commands, one per line. The exit command leaves the VLAN configuration mode.











shaun said on February 15, 2009
Thanks so much
Easy to understand.. Worked 1st Time