Bitzu

100-150 CCST ยท Network devices, routing and switching

Layer 2 versus layer 3 switches

What layer 2 and layer 3 switches forward on, inter-VLAN routing, and when a router or layer 3 switch is needed.

Key points

  • A layer 2 switch forwards frames using destination MAC addresses and keeps devices in the same VLAN talking.
  • It cannot route between VLANs by itself.
  • A layer 3 switch also forwards packets using IP addresses, so it can route between VLANs and subnets.
  • A router does the same job between networks and typically adds WAN connectivity.
  • Different VLANs need a layer 3 device to communicate.

Practice questions

Single choice

What does a layer 2 switch use to decide where to forward a frame?

  1. The destination IP address
  2. The TCP port number
  3. The destination MAC address
  4. The DNS name
Show answer

Answer: C. The destination MAC address

A layer 2 switch reads the destination MAC address in the Ethernet header. IP addresses are used by layer 3 devices.

Select all that apply

Which statements about a layer 3 switch are correct?

  1. It can route traffic between VLANs
  2. It can make forwarding decisions using IP addresses
  3. It works only if every host is in the same VLAN
  4. It still forwards frames inside a VLAN using MAC addresses
  5. It makes IP addressing unnecessary
Show answer

Answer: A. It can route traffic between VLANs, B. It can make forwarding decisions using IP addresses, D. It still forwards frames inside a VLAN using MAC addresses

A layer 3 switch can route between VLANs and forwards on IP addresses as well as MAC addresses. A pure layer 2 switch cannot route, and a layer 3 switch does not remove the need for IP addressing.

True or false

Two hosts in different VLANs can communicate through a layer 2 switch alone, with no router or layer 3 device.

Show answer

Answer: False

False. A layer 2 switch keeps VLANs separate; traffic between VLANs needs a router or layer 3 switch.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module