Cisco Switch: VLAN Commands

Modified on Wed, 5 Nov at 12:05 PM

Connect to the switch console, telnet or SSH, login and enable.


To make the VLAN:

vlan [VLANNUMBER]
name [VLANNAME]


To make a port an access port on that VLAN:

interface [INTERFACENAME]
switchport access vlan [VLANNUMBER]


To make a port a trunk port (which allows all VLANs):

interface [INTERFACENAME]
switchport mode trunk


To show a list of VLANs and the ports on them (only access ports):

show vlan brief


To show a list of trunk ports:

show interfaces trunk

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article