Do we need IP address plus MAC address?

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
inherit2
Posts: 10
Joined: Mon 23 Jun 2014, 15:05

Do we need IP address plus MAC address?

#1 Post by inherit2 »

hi,

My question is rather general. I just wonder. Why do we need IP addressing whereas we have MAC addresses. It seems like doing double work. Why hasn't it been possible just to rely on MAC address globally? Why it can't it be that all computers throughout the world are assigned with MAC addresses. Why couldn't we establish sth like MAC-Global-system. Why did internet creators introduced IP addresses.

You live in you home and you have one address, which is globally valid. Be advised that all MAC addresses are unique globally.


thx

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#2 Post by Burn_IT »

That was the original idea - to make every single device have a separate mac address, but unfortunately mass production and in an effort to reduce costs, manufacturers start using generic mac addresses.
Plus spoofing mac addresses is too easy.
IP addresses are not unique either since routers hand out local IP addresses to local devices.

IPV6 should solve that problem, although better control, even of that, is really needed.
"Just think of it as leaving early to avoid the rush" - T Pratchett

inherit2
Posts: 10
Joined: Mon 23 Jun 2014, 15:05

#3 Post by inherit2 »

Burn_IT wrote:, but unfortunately mass production and in an effort to reduce costs, manufacturers start using generic mac addresses.
I am not sure if I get you. generic mac address - what do you mean by that? So is it bad that mac addresses are generic/general?

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#4 Post by Burn_IT »

They made many individual devices of the same design with the same mac address. Every single communication device was supposed to have a different mac address hard coded into it's firmware.
Yes it did matter because every single device was supposed to be identifiable.
As a result there has had to be a new unique scheme devised, IPV6 which gives every device an address.
"Just think of it as leaving early to avoid the rush" - T Pratchett

inherit2
Posts: 10
Joined: Mon 23 Jun 2014, 15:05

#5 Post by inherit2 »

Burn_IT wrote:They made many individual devices of the same design with the same mac address.
I didn't know that. WIKI says about MAC " is a unique identifier assigned to network interface". So if what you say is true, then it is possible that two your computers/NIC have the same MAC addresses. Then you would tear your hair out wondering why your LAN ain't working ...

thanks

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#6 Post by Burn_IT »

I've had two PCI cards with the same MAC address. It wasn't a problem as long as they weren't attached to the same router. - though not an ideal situation.
"Just think of it as leaving early to avoid the rush" - T Pratchett

increa
Posts: 29
Joined: Sat 21 May 2011, 17:24

#7 Post by increa »

inherit2,

The basic reason is MAC addresses are not routable nor are they translatable. They are fixed (you get only one ...well, unless you're an Apple iPhone spoofing everybody).

IP addresses are necessary at the conceptual level of a network if you want to route data onto/off from private networks. For example, you and I both have home networks running at 192.168.1.x but the IP address is translated to a public IP address going through the cable modem box (or whatever). You can't do this network address translation without the concept of an IP address.

Now.. well.. you ~could~ network address translate MAC addresses if everybody agreed to, but then that would basically be an IP address by another name.

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#8 Post by s243a »

Burn_IT wrote:They made many individual devices of the same design with the same mac address. Every single communication device was supposed to have a different mac address hard coded into it's firmware.
Yes it did matter because every single device was supposed to be identifiable.
As a result there has had to be a new unique scheme devised, IPV6 which gives every device an address.
If the MAC address aren't unique then you have to manually configure the IPv6 address:
The purpose of this document is to provide an understanding of IPv6 Link-local address in a network. A link-local address is an IPv6 unicast address that can be automatically configured on any interface using the link-local prefix FE80::/10 (1111 1110 10) and the interface identifier in the modified EUI-64 format. Link-local addresses are not necessarily bound to the MAC address (configured in a EUI-64 format). Link-local addresses can also be manually configured in the FE80::/10 format using the ipv6 address link-local command.
https://www.cisco.com/c/en/us/support/d ... 6-lla.html
This link-local IPv6 is infered from the NIC’s mac address.

A mac address is 48 bits, an IPv6 address is 128 bits. Here’s the conversion process step by step:

1. take the mac address: for example 52:74:f2:b1:a8:7f
2. throw ff:fe in the middle: 52:74:f2:ff:fe:b1:a8:7f
3. reformat to IPv6 notation 5274:f2ff:feb1:a87f
4. convert the first octet from hexadecimal to binary: 52 -> 01010010
5. invert the bit at index 6 (counting from 0): 01010010 -> 01010000
6. convert octet back to hexadecimal: 01010000 -> 50
7. replace first octet with newly calculated one: 5074:f2ff:feb1:a87f
8. prepend the link-local prefix: fe80::5074:f2ff:feb1:a87f
9. done!
https://ben.akrin.com/?p=1347
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

Re: Do we need IP address plus MAC address?

#9 Post by jafadmin »

inherit2 wrote:hi,

My question is rather general. I just wonder. Why do we need IP addressing whereas we have MAC addresses. It seems like doing double work. Why hasn't it been possible just to rely on MAC address globally? Why it can't it be that all computers throughout the world are assigned with MAC addresses. Why couldn't we establish sth like MAC-Global-system. Why did internet creators introduced IP addresses.

You live in you home and you have one address, which is globally valid. Be advised that all MAC addresses are unique globally.


thx
They are two physically different things.

MAC addresses are a Layer 2 identifier. Layer 2 handles the physical link state. They are not routable.

IP addresses are a Layer 3 identifier. Layer 3 is the networking layer.

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

Re: Do we need IP address plus MAC address?

#10 Post by s243a »

jafadmin wrote:
inherit2 wrote:hi,

My question is rather general. I just wonder. Why do we need IP addressing whereas we have MAC addresses. It seems like doing double work. Why hasn't it been possible just to rely on MAC address globally? Why it can't it be that all computers throughout the world are assigned with MAC addresses. Why couldn't we establish sth like MAC-Global-system. Why did internet creators introduced IP addresses.

You live in you home and you have one address, which is globally valid. Be advised that all MAC addresses are unique globally.


thx
They are two physically different things.

MAC addresses are a Layer 2 identifier. Layer 2 handles the physical link state. They are not routable.

IP addresses are a Layer 3 identifier. Layer 3 is the networking layer.
I wonder if you configure each router port to use a separate subnet if you can get around issues with duplicate arp addresses. Using the router in bridged mode with duplicate arp address might be problematic.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

Post Reply