Network Access
Gi0/3 has switchport mode access and switchport access vlan 10, and connects an IP phone with a PC behind it. The phone must use VLAN 20 while the PC stays in VLAN 10. Which command achieves this?
Show the answer
Correct answerD. switchport voice vlan 20
AWhy not this: A trunk command that filters allowed VLANs; it does not give an access port a voice VLAN.
BWhy not this: A trunk native VLAN command; it does not configure a voice VLAN on an access port.
CWhy not this: Changes the data VLAN, so the PC would move to VLAN 20 along with the phone.
DWhy this is right: Adds a voice VLAN to the access port; the phone uses VLAN 20 and the PC stays in access VLAN 10.
The voice VLAN command keeps the port an access port, puts the phone in VLAN 20 (via CDP/LLDP-MED), and leaves PC traffic untagged in the access VLAN 10. Changing the access VLAN to 20 would move the PC into VLAN 20 as well.