A PC connected to switch port Gi0/10 should be in VLAN 20 but receives broadcasts only from VLAN 1. Which switchport setting is most likely wrong?
The access VLAN assignment on a switchport determines which untagged (native) VLAN the port belongs to. If a PC on interface Gi0/10 should be in VLAN 20 but is not, the most direct cause is that the port is either left in the default VLAN (often VLAN 1) or configured with a different access VLAN via the 'switchport access vlan' command. Without this correct mapping, the PC's frames are forwarded in the wrong broadcast domain and cannot reach VLAN 20 resources. This is the primary configuration that controls the behavior described.
Why this answer
The PC is receiving broadcasts only from VLAN 1, which indicates the switchport is not correctly assigned to VLAN 20. The most likely cause is that the 'switchport access vlan 20' command is missing or incorrect, leaving the port in its default VLAN (VLAN 1). This prevents the PC from participating in VLAN 20 and receiving its broadcasts.
Exam trap
Cisco often tests the misconception that a trunk port is needed for VLAN membership, but for a single end device, an access port with the correct VLAN assignment is required.
Why the other options are wrong
The switchport mode trunk setting is incorrect because a trunk port allows multiple VLANs to pass, while the question indicates that the PC should only receive broadcasts from VLAN 20. Therefore, the issue lies with the access VLAN configuration.
The speed setting of 1000 Mbps (1 Gbps) does not influence VLAN membership or broadcast traffic; it only affects the data transfer rate. Therefore, this option does not address the issue of the PC receiving broadcasts only from VLAN 1.
The duplex setting of the switch port does not influence VLAN membership or broadcast traffic. Therefore, a duplex configuration of 'full' does not affect the ability of a PC to receive broadcasts from VLAN 20.
When would these options actually be correct?
In a scenario where the question specifies that a switch port should be configured to allow multiple VLANs for a server that needs to communicate across VLANs, the correct answer would be that the switchport mode trunk is incorrectly set to access mode. This would lead to the server not receiving broadcasts from the required VLANs.
In a different scenario, if a question asked about a switch port configuration issue causing a device to experience connectivity problems due to mismatched speeds between the switch and the connected device, then 'speed 1000' could be the correct answer if the device only supports lower speeds, leading to a failure in communication.
In a different scenario where the question asks about the performance of a network connection, a candidate might be asked what could cause a device to experience packet loss or communication issues. If the question specifies that the switch port is set to 'half duplex', then 'duplex full' would be the correct answer as it would resolve the communication issue.
Why candidates pick the wrong answer
Candidates may choose this option because they associate trunking with VLAN communication and might overlook the specific requirement for the PC to be in a single VLAN, leading to confusion about the port's intended configuration.
Candidates might choose this option because they associate speed settings with connectivity issues, mistakenly believing that incorrect speed configurations could impact VLAN membership or broadcast traffic.
Candidates may mistakenly believe that duplex settings impact VLAN functionality, leading them to choose this option when they see issues with broadcast traffic, despite it being unrelated.