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
What does a layer 2 switch use to decide where to forward a frame?
- The destination IP address
- The TCP port number
- The destination MAC address
- 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.
Which statements about a layer 3 switch are correct?
- It can route traffic between VLANs
- It can make forwarding decisions using IP addresses
- It works only if every host is in the same VLAN
- It still forwards frames inside a VLAN using MAC addresses
- 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.
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.
