Learn the correct Cisco IOS commands to enable a switch interface for both data and voice VLANs. Understand the difference between access and trunk ports and how to allow specific VLANs.
Table of Contents
Question
Refer to the exhibit.
Network services must be enabled on interface Gi1/0/34. Which configuration meets the needs for this implementation?
A. interface Gi1/0/34
switchport mode trunk
switchport
trunk allowed native vlan 400
switchport
voice vlan 4041
B. interface Gi1/0/34
switchport mode trunk
switchport
trunk allowed vlan 400, 4041
switchport voice vlan 4041
C. interface Gi1/0/34
switchport mode access
switchport
access vlan 400
switchport voice vlan 4041
D. interface Gi1/0/34
switchport mode access
switchport
access vlan 4041
switchport voice vlan 400
Answer
C. interface Gi1/0/34
switchport mode access
switchport
access vlan 400
switchport voice vlan 4041
Explanation
The table in the exhibit shows that interface Gi1/0/34 needs to allow both a data VLAN (PC_LAN 400) and a voice VLAN (V_LAN 4041). To enable both VLANs on the interface, it should be configured as an access port, not a trunk port.
The “switchport mode access” command sets the interface as an access port. The “switchport access vlan 400” command assigns the data VLAN 400 to the access port. Finally, the “switchport voice vlan 4041” command configures the interface to also allow the voice VLAN 4041 traffic, which is automatically tagged.
Answers A and B incorrectly configure the interface as a trunk port. A trunk port would be used to connect to another switch or router and carry traffic for multiple VLANs, which is not the requirement here.
Answer D has the correct commands to make it an access port, but it swaps the VLAN IDs, incorrectly putting the voice VLAN 4041 as the access VLAN and the data VLAN 400 as the voice VLAN.
So in summary, to configure a switch access port for a data VLAN and enable a voice VLAN on that same port, use “switchport mode access”, “switchport access vlan”, and “switchport voice vlan” with the appropriate VLAN IDs as shown in answer C. Let me know if this explanation makes sense!
Cisco 200-301 certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Cisco 200-301 exam and earn Cisco 200-301 certification.