N10-005 · Question #619
Which of the following BEST describes how a layer 2 switch functions?
The correct answer is A. Switches packets within the same subnet based on MAC addresses. A Layer 2 switch uses MAC addresses to forward frames between devices within the same subnet. It does not use IP addresses and does not route between subnets.
Question
Which of the following BEST describes how a layer 2 switch functions?
Options
- ASwitches packets within the same subnet based on MAC addresses
- BSwitches packets between different subnets based on IP addresses
- CSwitches packets between different subnets based on MAC addresses
- DSwitches packets within the same subnet based on IP addresses
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- C6% (2)
- D3% (1)
Why each option
A Layer 2 switch uses MAC addresses to forward frames between devices within the same subnet. It does not use IP addresses and does not route between subnets.
Layer 2 switches operate at the Data Link layer of the OSI model and build a MAC address table by learning source addresses on each port. When a frame arrives, the switch looks up the destination MAC in its table and forwards the frame only to the appropriate port, keeping traffic within the same broadcast domain and subnet.
Routing packets between different subnets based on IP addresses is the function of a Layer 3 router or a Layer 3 switch, not a Layer 2 switch.
A Layer 2 switch does not route between different subnets at all - it only forwards within the same subnet, and it uses MAC addresses, not IP addresses.
Layer 2 switches do not use IP addresses for forwarding decisions - IP-based forwarding is a Layer 3 function performed by routers.
Concept tested: Layer 2 switch MAC-based forwarding within a subnet
Source: https://www.cisco.com/c/en/us/tech/lan-switching/index.html
Topics
Community Discussion
No community discussion yet for this question.