CS FundamentalsModerateGATE CS · Product company CS fundamentals

A host joins VLAN 10 and another joins VLAN 20 on the same switch. Host A (VLAN 10) pings host B (VLAN 20). What is required for the ping to succeed?

  1. A. A router or layer-3 switch routing between the two VLANs
  2. B. Nothing: hosts on the same physical switch can always reach each other
  3. C. Only a trunk port between the two hosts
  4. D. Disabling Spanning Tree on the switch

Correct answer: A. A router or layer-3 switch routing between the two VLANs

Each VLAN is a separate broadcast domain and IP subnet, so traffic between them must be routed. A trunk carries several VLANs between switches but does not route between them.

More Computer Networks questions

Exams that ask this topic