Huawei Certified Network Associate – Routing and Switching (HCNA-RS, legacy) — Question 26

A layer 2 LAN switch generates CAM table entries according to the ( ) of the received frame.

Answer options

Correct answer: A

Explanation

The correct answer is A, as a layer 2 switch uses the source MAC address of each incoming frame to populate its CAM table for future packet forwarding. The destination MAC address is not used for creating entries in the CAM table; rather, it is used for making forwarding decisions. Source and destination IP addresses do not pertain to layer 2 switching, which operates solely at the MAC address level.