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.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner