Cisco Certified Network Associate (CCNA) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Study for the Cisco Certified Network Associate (CCNA) exam with our comprehensive quiz featuring multiple-choice questions and detailed explanations. Prepare effectively and enhance your understanding of networking concepts!

Practice this question and more.


What does the command (config-if)#switchport trunk allowed vlan 10 achieve?

  1. Allows only VLAN 10 on the trunk

  2. Restricts VLAN 10 from accessing the trunk

  3. Sets the native VLAN to 10

  4. Changes the trunking mode to access for VLAN 10

The correct answer is: Allows only VLAN 10 on the trunk

The command (config-if)#switchport trunk allowed vlan 10 configures the switch port to allow only VLAN 10 on the trunk link. This means that any traffic that is tagged with VLAN IDs other than 10 will be dropped. Trunk ports are designed to carry traffic for multiple VLANs, and this command specifically filters the allowed VLANs on the link to just VLAN 10. By restricting the trunk to just one VLAN, it effectively isolates the traffic for that VLAN, ensuring that only devices on VLAN 10 can communicate through that trunk interface. This command is particularly useful in scenarios where you want to enforce strict VLAN segmentation and control, ensuring that only the specified VLAN can traverse a trunk link.