The Switchport Access Vlan [Vlan Number] Cisco command

Command: switchport access vlan [vlan number]

Function: Assigns a specific VLAN to an access port on a Cisco switch, limiting the port's communication to devices within that VLAN.

Usage:

Purpose:

Equipment:

Additional Information:

switchport access vlan [vlan number] Usage Examples

switchport access vlan 10
switchport access vlan 10
switchport mode access
switchport access vlan 10
switchport priority 5
switchport access vlan 10
switchport cost 10
switchport access vlan 10
switchport port-security
switchport access vlan 10
switchport port-security maximum 5
switchport access vlan 10
switchport sticky
switchport access vlan 10
spanning-tree portfast
switchport access vlan 10
spanning-tree portfast disable