Differences between IP addresses and MAC addresses

Source: Internet
Author: User

An IP address is the IP address used by the Internet protocol, while a MAC address is the IP address used by the Ethernet protocol. There is no inevitable relationship between the IP address and the MAC address. the MAC address is the address on the ethernet card and the length is 48 bits.
Each Ethernet NIC manufacturer must apply for a set of MAC addresses from the IEEE organization and write a unique MAC address to the serial EEPROM of the NIC during Nic production. The MAC addresses of any two Ethernet NICs should not be the same from any manufacturer. Ethernet chip manufacturers do not have to apply for MAC addresses. MAC addresses exist in each Ethernet packet and are part of the Ethernet packet header, the ethernet switch implements packet switching and Transmission Based on the Mac source address and Mac Destination Address in the Ethernet packet header.

An IP address is an Internet Protocol address. Each Internet package must contain an IP address. Each Internet Service Provider (ISP) must apply for a group of IP addresses from the relevant organization, and then dynamically assign them to users. The IP address is now 32-bit long and is being expanded to 128-bit. The IP address has nothing to do with the MAC address, because the Ethernet user can still connect to the Internet through the modem to obtain a dynamic IP address, which can be inconsistent each time. The IP address usually works on the WAN, And the router processes the IP address. MAC addresses work in local networks. The interconnection between local networks is usually through the existing public network or dedicated line, and inter-network protocol conversion is required. IP address information can be transmitted on the Ethernet. At this time, the IP address is only part of the data domain of the Ethernet information package. The ethernet switch or processor does not see the IP address, but uses it as common data processing.

ArticleInput: CSH responsible editor: CSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.