Interview Prep/Networking/Network Models, TCP, UDP & Ports

What is a MAC address and how is it different from an IP address?

BeginnerConceptNetwork Models, TCP, UDP & Ports
Answer

A MAC is a 48-bit hardware-level identifier used within a single L2 network and rewritten at every router hop. An IP is a logical L3 address used end to end across networks. The MAC says which interface on this segment, the IP says which host in the internetwork.

Containers and VMs get virtual MACs; changing MACs is rarely meaningful in cloud networks, but MAC allow-lists on a physical switch still exist in on-prem environments.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports