Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

With the IP address, is the MAC address still necessary?

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

I don't know if you are confused: why do you need an IP address when you have an MAC address?

What exactly is the connection between them? What's the difference? Is one superfluous?

Rumors spread to the ears of "IP address" and "MAC address", and they were also very distressed. Today, Mr. Archive handed them the microphone to see what they said.

01. MAC&IP 's confession MAC address says:

I am the MAC address, working in the data link layer, living on the physical network card.

I am very dedicated to feelings, never erratic, this life my "CP" is the same network card. Our relationship is very stable, each network card has only a unique MAC address, unlike the IP address.

The IP address says:

I am an IP address, working at the network layer, and living in the IP protocol suite.

Some people say that I am "in the flowers, leaves do not touch the body", often with different equipment "group CP", especially the MAC address, often said that I want to change.

But in fact, life is not easy. I have only one "CP" at the same time, and the CP combination of this device has expired. I was arranged to "group CP" with another device before I could take a break.

Stop, stop, stop! Are you two beside the point?

Let the document gentleman make a serious introduction!

02. What is the MAC address? MAC address, the full name is Media Access Control Address, literally translated into media access control address, also known as physical address, hardware address.

When each network card leaves the factory, the manufacturer will mark it with a unique serial number in the world, just like our ID number.

In other words, the MAC address is not for the device, but for the network card.

Take a computer as an example. If there are several network cards on the computer, there are several MAC addresses. For example, the laptop networking mode has both wired and wireless, and the network card has two wired network cards and wireless network cards, that is, there are two MAC addresses.

03. What is the IP address? IP address, the full name is Internet Protocol Address, literally translated into Internet protocol address.

It is mainly used to distinguish different networking devices in the Internet.

The IP address provides a unique logical address identification for each device connected to the Internet (public network). Through the IP address, we can accurately find the target device on the Internet and establish communication with it. Just like the pick-up address you fill in when you shop online in real life.

The difference between the IP address and the MAC address is that in order to ensure the efficient operation of the network, the IP address is assigned dynamically or can be modified artificially, just like you can move everywhere, or you can go to a "windy place" to have a look.

But the MAC address can not be changed at will, just like your ID number, no matter where you move to, the ID number is the most effective proof that "you are you".

04, the difference between IP&MAC? In fact, there are many differences between MAC address and IP address. The document gentleman sorted out the difference between MAC address and IP address, so that you can understand it at a glance.

MAC address

IP address

Format

00:16:3E:00:F3:C96 hexadecimal numbers, separated by ":"

The first six hexadecimal digits represent the number of the network hardware manufacturer

196.168.10.10

4 8-bit binary numbers, with "." Separate

(take the most widely used IPv4 address as an example)

Address Typ

Is the physical address logical address changeable?

Under normal circumstances, it can not be changed. It can be changed manually or automatically assigned.

Fixed / static allocation dynamic / static allocation of use

Identify network adapters and devices for data transmission and determine the network level of packet sending and receiving

Data link layer (layer 2) network layer (layer 3) 05, why is it indispensable? To put it simply, IP addresses and MAC addresses are generated to facilitate devices in the network to find each other accurately.

Following the previous example, we compare the MAC address to the ID card number and the IP address to the residential address.

If you only have ID card number (MAC address), you will not find your beloved document gentleman in the vast crowd.

If you only have the address (IP address), you will find the document master's home, but which person in the family is the document master? It's still hard to tell.

However, if you use the residential address (IP address) with the ID card number (MAC address), you can first find the → community in → Street, → District, → City, Province, and then you can easily catch the document gentleman of the code word in front of the screen through the ID card number (MAC address).

Similarly, when the device is communicating, the IP address and MAC address are also indispensable.

On the network, it is rare for both sides of the communication to be in the same local area network (LAN). It is usually through the transit of multiple computers and network devices to connect to each other. Because the IP address is unique in a LAN, the IP address may be the same in different Lans, and the IP address can be changed manually, which can lead to duplicate IP addresses. But the MAC address is unique, and the MAC address on different devices is completely different, so different Lans rely on MAC address to identify different devices, so as to avoid IP address conflict.

Therefore, "IP address + MAC address" is the real "CP", they work together to determine the only device in the network, so that data transmission will not go wrong.

06, how is the test time? today, together with the document, you have learned something useful.

Then let's do a quiz to verify the effectiveness of our study.

If your computer network card is broken and you buy a new network card, the computer can be used again after installation.

1. Will your MAC address change?

a. No.

b. Will

two。 Can you still use the previous IP address?

a. No

b. Sure

This article comes from the official account of Wechat: ZTE documents (ID:ztedoc)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report