Ready to Start Your Career?

What You Should Know about MAC and IP Addresses

nishan8583 's profile image

By: nishan8583

August 1, 2016

What You Should Know about MAC and IP Addresses - CybraryMAC and IP addresses are two important topics that a person involved in the Computer Networking  and Computer Security fields should know about.These topics are discussed below. 1.MAC AddressA MAC address is a address that is burned into the hardware itself during the manufacturing period and it cannot be changed. MAC addresses are 48 bits. Ex: 01:23:45:67:89:ab. Here, each byte is represented by its hexadecimal value. The first 3 bytes (in this case "01:23:45") are known as Organizational Unique Identifier, which gives the identity of the organization that the MAC address/device belongs to. For Ex: the OUI "01:23:45" may belong to a company called X. The IEEE assigns OUI to vendors. The remaining 3 bytes will uniquely identify the device itself. No two devices will have the same MAC address. MAC addresses are also known as physical addresses/Ethernet Hardware Address (EHA)/Burned In Address (BIA). 2. IP AddressWhile MAC addresses are physical, IP addresses are logical. Devices on a different network can, and most likely will, have the same IP address. IP address are of 32 bits. Ex There are different classes of IP's.Class A = 1 - 126Class B = 128 - 191  # 127 is used as loopback addressClass C = 192 - 223Class D = 224 – 239Class E = 240 – 254The IP address contains network and host bits which are separated using subnet masks. For Ex: an IP address has subnet mask of For basic understanding, the octet whose value is 255 can be considered as network bits. Here, 192.168.5, is the network bit, which identifies a network where as .1 is the host bit that identifies a host. A Technique To RememberConsider a school, which has many classrooms. Each classroom has many students with their own Roll numbers. OH! And, also none of the students have same name.Each class can have Roll numbers which another class may also have.Consider the school as internet, each classroom as a network, the roll number as an IP address and the individual student's name as a MAC address.Note: A MAC address is used only on a LAN and operates on layer 2 of the of  the OSI model. IP address is used for routing and operates on layer 3 of OSI model. More information:OSI:
Schedule Demo
Build your Cybersecurity or IT Career
Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry