Difficulty: Easy
Correct Answer: A MAC address is a unique hardware identifier assigned to a network interface card, used at the data link layer to deliver frames on a local network segment.
Explanation:
Introduction / Context:
A MAC (Media Access Control) address is one of the most basic concepts in computer networking and appears in almost every interview on LAN technologies. It operates at the data link layer (Layer 2) of the OSI model and is used to uniquely identify network interfaces within a local network segment such as an Ethernet LAN or Wi-Fi network. Understanding what a MAC address is and how it is used in frame forwarding is essential to troubleshoot connectivity and design secure networks.
Given Data / Assumptions:
Concept / Approach:
A MAC address is usually a 48-bit value represented as six groups of two hexadecimal digits (for example 00-1A-2B-3C-4D-5E). The first part typically identifies the vendor, and the remaining bits are unique per device from that vendor. At the data link layer, Ethernet frames include both a source MAC address (the sender's NIC) and a destination MAC address (the intended receiver's NIC). Switches learn which MAC addresses are reachable on which ports and use this information to deliver frames only to the correct port instead of flooding traffic everywhere. MAC addresses operate only within the same broadcast domain and are not routed across the internet.
Step-by-Step Solution:
Step 1: Define a MAC address as a hardware level identifier associated with a physical or virtual NIC.
Step 2: Note that it exists at the OSI data link layer and is used inside Ethernet frames.
Step 3: Explain that when a device sends a frame, it sets its own MAC as the source and the target device's MAC as the destination.
Step 4: Describe how switches maintain MAC address tables mapping MAC addresses to switch ports.
Step 5: Conclude that frames are forwarded based on MAC addresses only within the local network segment, not across Layer 3 routers.
Verification / Alternative check:
You can view MAC addresses on a computer using commands such as ipconfig /all on Windows or ip link / ifconfig on Linux. Packet capture tools like Wireshark show Ethernet frames with explicit source and destination MAC fields, confirming their role at the data link layer. Observing switch MAC address tables with show mac-address-table on managed switches further demonstrates how forwarding decisions rely on MAC addresses rather than IP addresses inside the LAN.
Why Other Options Are Wrong:
Option B incorrectly describes a logical, router level address, which refers more to IP addresses. Option C mixes up MAC addressing with authentication credentials used for Wi-Fi security. Option D confuses MAC addresses with customer identifiers or IP addresses assigned by an internet service provider. None of these alternatives match the hardware, Layer 2 nature of MAC addresses on a LAN.
Common Pitfalls:
A common misconception is that MAC addresses never change and are always globally unique; in practice, they can be overridden (MAC spoofing) and some virtual environments reuse ranges. Another pitfall is assuming that routers use MAC addresses to make wide area routing decisions; in reality, routing is based on IP addresses, while MAC addresses are used only on each individual link. Understanding the limited scope and purpose of MAC addresses helps avoid confusion in network design and troubleshooting.
Final Answer:
A MAC address is a unique hardware identifier assigned to a network interface card, used at the data link layer to deliver frames on a local network segment.
Discussion & Comments