User Tools

Site Tools


cisco:switch:vlans

This is an old revision of the document!


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/14
switchport mode access
switchport access vlan 50
exit

Check that VLAN has been configured

show vlan

returns:

...
50   VLAN0020   active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
...

Delete VLAN

Remove assigned ports to VLAN 50.

interface range fastethernet 0/14
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.1613735430.txt.gz · Last modified: 2021/02/19 11:50 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki