IP (internet protocol) address and MAC (machine access control) address are the terms used in the networking of computing devices.
An IP address is used when a device is connected to a computer network, and a MAC address is assigned to the device’s NIC (network interface controller) when it is made in a factory.
Some of the differences between IP address and MAC address are explained below
IP address
It is also called a logical and network address. The IP address helps to identify the device connected on the internet. It is usually assigned by the network administrator. The assigned IP address of a device can be changed. There are two types of IP addresses known as, IPv4, which is 32 bits long, and IPv6, which is 128 bits long.
It works in the data link layer of the OSI model. The assigned IP address can be used again but not in the same network. It controls how devices on the internet communicate on a global scale. RARP (reverse address resolution protocol) can retrieve the IP address of a device. IP address example is 192.168.12.3
MAC address
MAC address is also known as physical or Ethernet address. It helps to identify the device uniquely. It is assigned by the device manufacturer. The assigned MAC address cannot be changed. MAC address is 48 bits long. It works in the network layer of the OSI model. The assigned MAC addresses can never be used twice. It identifies network devices on a low scale. ARP (address resolution protocol) protocol can retrieve the MAC address of a device. MAC address is usually presented as 00:0C:F2:38:48:E9.