Page 1 of 1

Do we need IP address plus MAC address?

Posted: Mon 26 Mar 2018, 13:55
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

Posted: Mon 26 Mar 2018, 14:33
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.

Posted: Tue 27 Mar 2018, 16:18
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?

Posted: Tue 27 Mar 2018, 16:43
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.

Posted: Tue 27 Mar 2018, 19:32
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

Posted: Tue 27 Mar 2018, 20:18
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.

Posted: Fri 21 Jun 2019, 11:19
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.

Posted: Fri 21 Jun 2019, 16:29
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

Re: Do we need IP address plus MAC address?

Posted: Sat 22 Jun 2019, 01:31
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.

Re: Do we need IP address plus MAC address?

Posted: Sat 22 Jun 2019, 01:43
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.