What Is the Difference Between MAC Address and IP Address

Both MAC address and IP address are used to identify a device in a network but the only difference between a MAC address and an IP address is that, MAC address is available on a local network while an IP address is available on a global network (Internet).

What is MAC address?

MAC address which stands for Media Access Control is a unique address assigned to every network device and it cannot be changed. This MAC address is often imprinted on the device by the NIC manufacturer.

MAC address can be found at the data link layer which is layer 2 of the OSI model. It consists of 48bits and can be written as XX:XX:XX:XX:XX:XX. For example 2A:23:12:10:12:4A.

The first 24-bits (or 3 bytes) are assigned the Organizational Unique Identifier (OUI) while the last 24-bits are designated as the Network Interface Card.

There are three types of MAC addresses which are unicast, multicast and broadcast.

  1. Unicast MAC address is often the address of a single device.

  2. Multicast MAC address is the address which represent group of computers in a network.

  3. Broadcast MAC address is used for broadcasting messages across different network.

More on MAC address.

What is IP address?

An IP address which stands for Internet Protocol is an address which is used to identify devices connected to the internet. An IP address resides on the network layer of the OSI model.

IP address is of two versions which is IPv4 (initial version) and IPv6 (later version).

IPv4 consists of 32-bits and is often written as XXX.XXX.XXX.XXX and it has value ranging from 0 – 255. For example, 192.168.48.5.

IPv4 consists of 128-bits and is it consists of eight set of four hexadecimal digits which are separated by colons. e.g. ECDA:BC12:4711:1034:5341:56BC:BACF.

As you can see IPv6 address is quite complex and it is so because IPv4 which is originally used in the 90’s and it is expected that with the over four billion address that is available in an IPv4 it would be sufficient but unfortunately, internet grow so fast and there is need to expand the available address and hence the IPv6.

You can read more on why IPv4 needs to be transitioned to IPv6.

Difference between MAC address and IP address

MAC AddressIP address
1MAC address stands for Media Access Control address.IP address stands for Internet Protocol Address.
2It is used to identify a device on a local network.It is used to identify a device on a global network.
3It is a physical address attached to a device by NIC manufacturer.It is a logical address attached to a device by ISP (Internet Service Provider).
4The address cannot be altered.The address can be altered.
5MAC address is hardware oriented.IP address is software oriented.
6It operates on the layer 2 (Data link layer) of the OSI model.It operates on the layer 3 (Network layer) of the OSI model.
7It consists of 48-bits or 6 bytes which is seperated by either a semi-colon(:) or dash(-) For example, 2A:23:12:10:12:4A or 2A-23-12-10-12-4A.It consists of 32-bits which is seperated by dots. For example, 192.168.48.5.
8There are three types of MAC address, unicast, multicast and broadcast MAC address.There are two versions of IP address, IPv4 and IPv6 address.
9MAC address can be used to resolve IP address issues.IP address cannot be used to resolve MAC address issues.
10MAC address identifies a deviceIP address identifies a connection to a device