NOTE: Every Cisco switch has VLAN 1 on it by default.
show vlan
returns:
... 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 ...
NOTE: This shows that all 24 ports are on VLAN1.
vlan 50 exit
interface range fastethernet 0/1 – 4 switchport mode access switchport access vlan 50 exit
show vlan
returns:
... 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 50 VLAN0020 active Fa0/1, Fa0/2, Fa0/3, Fa0/4 ...
NOTE: This shows that ports 1-4 are now on VLAN50.
Remove assigned ports to VLAN 50.
interface range fastethernet 0/1 – 4 switchport mode access switchport access vlan 1
NOTE: This moves them back to VLAN 1.
no vlan 50
show vlan
NOTE: This should show all ports are back to VLAN 1 and VLAN 50 is deleted.