how to add a port to vlan cisco switch

Adding or assigning a port to VLAN is three step process or you need to type three commands on your CLI interface.

1. Go the port interface in configuraiton mode
2. Set the port to access port
3. Assign the access port a VLAN

In the example bellow, we are adding port 21 to VLAN 1 using a Gigabit switch.

Cisco-sw#conf t
Cisco-sw(config)#interface g1/0/21
Cisco-sw(config-if)#switchport mode access
Cisco-sw(config-if)#switchport access vlan 1

Publisher: abdirahman isse

Share this post