nerdexam
CompTIA

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.

Networking concepts

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)
  • A
    87% (27)
  • B
    3% (1)
  • C
    6% (2)
  • D
    3% (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.

ASwitches packets within the same subnet based on MAC addressesCorrect

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.

BSwitches packets between different subnets based on IP addresses

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.

CSwitches packets between different subnets based on MAC addresses

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.

DSwitches packets within the same subnet based on 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

#Layer 2 switching#MAC addresses#switch operation#data link layer

Community Discussion

No community discussion yet for this question.

Full N10-005 Practice