MAC address is unique address associated with network cards. A data frame will have Source MAC and destination MAC, When it transmit through LAN.
MAC address is learned using ARP. To get the destination MAC address, it sues ARP requests. When teh packet reaches the internet gateway, it removes or hides the layer two information and add layer3 info (IP details)
MAC address is layer 2
IP address is layer 3.
Do the rest yourself.
In that case, MAC address is mostly used on your local lan, It is what switches use to get the job done.
IP addresses are used to get packets of data from one network to another.
your MAC is the number of your network card (whether plugged in, or wireless) and your IP is assigned via a dhcp server. FYI the first 6 characters of your MAC address identifies the manufacturer of the device.
I am aware of that. My question is not homework by the way as I am doing research on this.