2.3 VLANS

VLAN Creation

How to create a VLAN on a switch


Configuration of Staff VLAN (VLAN 10) on switch S1

Create VLAN ID
S1(config)# vlan [vlan-id]
Name the VLAN
S1(config-vlan)# name [vlan-name]
Creating a VLAN on a Switch Complete Configuration Example
S1# configure terminal 
S1(config)# vlan 10 
S1(config-vlan)# name STAFF 
S1(config-vlan)# exit
S1#

Note: In addition to entering a single VLAN ID, a series of VLAN IDs can be entered separated by commas, or a range of VLAN IDs separated by hyphens using the vlan [vlan-id] command.

For example, entering the vlan 100,102,105-107 global configuration command would create VLANs 100, 102, 105, 106, and 107.