3.1.1. Access Ports (Data and Voice)
Access ports belong to exactly one VLAN and are used to connect end devices.
Basic Access Port Configuration:
Switch(config)# vlan 10
Switch(config-vlan)# name HR
Switch(config-vlan)# exit
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Voice VLAN (Data + Voice): IP phones need a dedicated VLAN for QoS. The port carries both data (access VLAN) and voice (voice VLAN) traffic.
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# switchport voice vlan 20
This creates a mini-trunk that tags voice traffic with VLAN 20 while keeping data traffic in VLAN 10.
Verify: show vlan brief lists every VLAN with its name, status and the access ports assigned to it. Trunk ports are not listed, because a trunk carries many VLANs rather than belonging to one; check them with show interfaces trunk.