How To Configure A VLAN

Configure a VLAN



sw#configure terminal
sw(config)#vlan 2
this command creates vlan 2 the number could be 2-1005 because vlan 1 exists as the native vlan
sw(config)#name Duffneys-vlan
optional but useful to give the vlan a name to be more recoinizable, I named this one Duffneys-vlan
sw(config)#exit
sw(config)#interface range fastethernet 0/13 - 14
used the interface range command to configure ports 13 and 14 at the same time
sw(config-if)#switchport access vlan 2
switchports need to be in access mode in order to become part of a vlan that services users (NOT A 
TRUNK)
sw(config-if)#exit




Configure a VLAN - Shorter method
sw(config)#interface range fastethernet 0/15 -16
sw(config-if)#switchport access vlan 3



Confirm VLAN
sw#show running-config
sw#show vlan brief