Network Design and Operations

Switches SW1 and SW2 both have ports in VLAN 10 and VLAN 20. The two switches are to be connected with a single cable so that devices in the same VLAN can communicate across the switches. Which configuration of the connecting ports is appropriate?

  1. AOn both switches, make the connecting port an access port in VLAN 10
  2. BRemove VLAN 20, merge it into VLAN 10, and make the connecting port an access port in VLAN 10
  3. COn both switches, make the connecting port a trunk port and send frames with IEEE 802.1Q tags that identify their VLAN
Show answer and explanation

Answer: C. On both switches, make the connecting port a trunk port and send frames with IEEE 802.1Q tags that identify their VLAN

An access port belongs to a single VLAN and is used to connect end devices. To carry frames from several VLANs over one link, the port is made a trunk port and each frame is sent with an IEEE 802.1Q tag holding its VLAN ID. The receiving switch reads the tag to tell which VLAN the frame belongs to and forwards it only to ports in that VLAN. One native VLAN can be chosen whose frames are sent untagged, and it must match on both ends.

  • A. Only VLAN 10 frames would pass, so devices in VLAN 20 could not communicate across the switches.
  • B. Communication would work, but the purpose of separating the VLANs (splitting broadcast domains and isolating traffic for security) would be lost.
  • C. Correct. With tags, a trunk port carries several VLANs over one link.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. In a network where switches are connected with redundant paths, what role does the Spanning Tree Protocol (STP) play?
  2. In STP, the bridge IDs of three switches are known: SW1 has priority 32768 and MAC address 00-00-5E-00-53-01, SW2 has priority 61440 and MAC address 00-00-5E-00-53-05, and SW3 has priority 4096 and MAC address 00-00-5E-00-53-0A. Which switch is elected as the root bridge?
  3. Three switches, SW1, SW2 and SW3, are connected in a triangle with one link between each pair. The STP root bridge is SW1, and SW2 has a lower bridge ID than SW3. All links have the same path cost. Which port is blocked (does not forward frames)?
  4. With default timers, classic STP (IEEE 802.1D) takes about 30 to 50 seconds after a failure before a previously blocked port starts forwarding. Which mechanism lets RSTP switch over faster?
  5. Four 1 Gbps links between two switches are bundled into one logical link with link aggregation. Frames are distributed with the common method that chooses the link for each combination of source and destination addresses and port numbers (each flow). Which is closest to the maximum throughput a single TCP connection can achieve?

Comparisons in this topic