cisco:switch:vlans
Table of Contents
Cisco - Switch - VLANs
NOTE: Every Cisco switch has VLAN 1 on it by default.
Check the VLANs
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.
Create a new VLAN
vlan 50 exit
Assign port FA0/1-FA0/4 to that VLAN
interface range fastethernet 0/1 – 4 switchport mode access switchport access vlan 50 exit
Check that VLAN has been configured
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.
Delete VLAN
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.
Remove the VLAN
no vlan 50
Check that the VLAN has been removed
show vlan
NOTE: This should show all ports are back to VLAN 1 and VLAN 50 is deleted.
cisco/switch/vlans.txt · Last modified: 2021/02/19 11:52 by peter