Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

guzhogi

macrumors 68040
Original poster
Aug 31, 2003
3,774
1,892
Wherever my feet take me…
Just thinking about how IPv6 uses 128 bits to identify a host & network, while a MAC address is only 48 bits. Wouldn't it make sense to just use the MAC address as the host portion of an IP address? Then the 80 other bits can be used for network. Maybe the first 8 bits for country, then some for state/province, then county, then city. I know some organizations have multinational so maybe something different.
 

djdawson

macrumors member
Apr 28, 2005
59
0
Minnesota
You could do that...

...but the notion of using MAC addresses for higher layer addressing pretty died years ago (I know DECnet used MAC addresses, and I think Token Ring did, too). Because you might swap hardware in a machine, or swap machines, tying a MAC address to an individual host is less of a good idea than it initially seems, and it's generally better to de-couple Layer 2 addressing from the higher layers and let ARP deal with the necessary association. The typical way IPv6 addresses are used is to imbed your old IPv4 address in the lower order part of the address (assuming there's an existing IPv4 infrastructure), put a locally administered subnet around that (if needed), and the higher layers of network subnetting above that.

Does that seem reasonable?
 

EricNau

Moderator emeritus
Apr 27, 2005
10,730
287
San Francisco, CA
As djdawson already pointed out, MAC addresses can be traced to exactly one piece of hardware worldwide, and thus it's user as well. By separating the IP address from the MAC address, you're keeping the same anonymity that IPv4 has.
 

yg17

macrumors Pentium
Aug 1, 2004
15,028
3,003
St. Louis, MO
Yep, wouldn't be a good idea. Simple example:

You have a server out there on the internet. So I don't have to type out a long IPv6 address or MAC address, lets say the network number is 1.2.3 and the MAC is 4.5.6. Using your example of using the MAC for the host part of the IP, we'd get an IP of (yes, I know this IP is completely invalid. Same with the MAC) 1.2.3.4.5.6, correct? You got your DNS for your domain pointing there, and who knows what else.

Now, that server's NIC card dies. You put in a new NIC, but it's MAC is 7.8.9. So now, that machine's IP becomes 1.2.3.7.8.9. Which means your DNS is invalid and needs updating, and anything else you have pointing to that IP breaks. Just adds a lot of extra work to what would've been a 5 minute NIC swap.

In general, MACs should only matter within the subnet. When 2 hosts are communicating over a network, if the 2 of them are in different subnets, they shouldn't be concerned with the other's MAC. That subnet's router takes care of the MAC stuff
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.